From e58881aabf3716f2e5d2387b1569fd250fbc08a5 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Fri, 1 Nov 2024 15:46:37 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-2c26140d.js => ClipLoader-1133ece3.js} | 2 +- ...on-6aad69b1.js => DailyMotion-58525f0c.js} | 2 +- ...ebook-72db1bb1.js => Facebook-0eaa552b.js} | 2 +- ...yer-55e9654a.js => FilePlayer-fc88a86a.js} | 2 +- ...altura-87b4078c.js => Kaltura-224cb42f.js} | 2 +- ...cloud-df4ac210.js => Mixcloud-861653d1.js} | 2 +- ...review-7d6901d8.js => Preview-c02fc834.js} | 2 +- ...leton-1ccdf5c1.js => Skeleton-6c0412b8.js} | 2 +- ...oud-87105b88.js => SoundCloud-46971a94.js} | 2 +- .../{Stack-06c1211e.js => Stack-522c22e1.js} | 2 +- ...ble-2865f475.js => Streamable-90db1f21.js} | 2 +- .../{Tabs-07181cd3.js => Tabs-fb6d3947.js} | 2 +- ...a84af0.js => TextareaAutosize-d45e3579.js} | 2 +- ...{Twitch-7cd6ba27.js => Twitch-2b3c9b6a.js} | 2 +- ...phy-0d19ae0d.js => Typography-efec7f9a.js} | 2 +- ...idyard-6c124b56.js => Vidyard-c0c0cf04.js} | 2 +- .../{Vimeo-0612272f.js => Vimeo-89fe52c3.js} | 2 +- ...{Wistia-30b5d4b3.js => Wistia-a7308b3f.js} | 2 +- ...ouTube-8d639dcb.js => YouTube-c3554acb.js} | 2 +- ...ants-a3da365e.js => constants-4d05840e.js} | 2 +- ...-016a2106.js => createSvgIcon-6e5d30bd.js} | 2 +- .../{index-427bda35.js => index-037ae40a.js} | 2 +- .../{index-04235dc5.js => index-05851a42.js} | 60 +++--- .../{index-5c574277.js => index-067fb061.js} | 6 +- .../{index-b6fe9242.js => index-0e384091.js} | 2 +- .../{index-bde6e5ef.js => index-10403053.js} | 2 +- .../{index-e0614544.js => index-1880407d.js} | 2 +- .../{index-2a7ba5ab.js => index-20063332.js} | 2 +- .../{index-da03d4e9.js => index-2b725117.js} | 2 +- .../{index-52cf0cef.js => index-41b34622.js} | 2 +- .../{index-00fbfb7a.js => index-490ab3b4.js} | 2 +- .../{index-bd13c6c5.js => index-57e1aba8.js} | 2 +- .../{index-a01f56a3.js => index-609421b3.js} | 184 +++++++++--------- .../{index-4d73db1d.js => index-6a674a65.js} | 2 +- .../{index-bf769610.js => index-7a81ddcc.js} | 2 +- .../{index-c99ee90f.js => index-85549638.js} | 2 +- .../{index-738555e7.js => index-9c99377f.js} | 122 ++++++------ .../{index-a24c814f.js => index-c5587235.js} | 82 +++++--- .../{index-569ae916.js => index-c8ae45d4.js} | 2 +- .../{index-746c11fc.js => index-e3a56368.js} | 2 +- .../{index-59e95d3e.js => index-e7533f23.js} | 2 +- .../{index-0f75a7d3.js => index-f0bfe2ee.js} | 2 +- .../{map-3259c6de.js => map-5327e6bd.js} | 2 +- build/index.html | 2 +- 44 files changed, 276 insertions(+), 256 deletions(-) rename build/assets/{ClipLoader-2c26140d.js => ClipLoader-1133ece3.js} (97%) rename build/assets/{DailyMotion-6aad69b1.js => DailyMotion-58525f0c.js} (95%) rename build/assets/{Facebook-72db1bb1.js => Facebook-0eaa552b.js} (96%) rename build/assets/{FilePlayer-55e9654a.js => FilePlayer-fc88a86a.js} (98%) rename build/assets/{Kaltura-87b4078c.js => Kaltura-224cb42f.js} (95%) rename build/assets/{Mixcloud-df4ac210.js => Mixcloud-861653d1.js} (95%) rename build/assets/{Preview-7d6901d8.js => Preview-c02fc834.js} (97%) rename build/assets/{Skeleton-1ccdf5c1.js => Skeleton-6c0412b8.js} (97%) rename build/assets/{SoundCloud-87105b88.js => SoundCloud-46971a94.js} (95%) rename build/assets/{Stack-06c1211e.js => Stack-522c22e1.js} (99%) rename build/assets/{Streamable-2865f475.js => Streamable-90db1f21.js} (95%) rename build/assets/{Tabs-07181cd3.js => Tabs-fb6d3947.js} (98%) rename build/assets/{TextareaAutosize-f9a84af0.js => TextareaAutosize-d45e3579.js} (97%) rename build/assets/{Twitch-7cd6ba27.js => Twitch-2b3c9b6a.js} (95%) rename build/assets/{Typography-0d19ae0d.js => Typography-efec7f9a.js} (93%) rename build/assets/{Vidyard-6c124b56.js => Vidyard-c0c0cf04.js} (95%) rename build/assets/{Vimeo-0612272f.js => Vimeo-89fe52c3.js} (96%) rename build/assets/{Wistia-30b5d4b3.js => Wistia-a7308b3f.js} (96%) rename build/assets/{YouTube-8d639dcb.js => YouTube-c3554acb.js} (97%) rename build/assets/{constants-a3da365e.js => constants-4d05840e.js} (80%) rename build/assets/{createSvgIcon-016a2106.js => createSvgIcon-6e5d30bd.js} (97%) rename build/assets/{index-427bda35.js => index-037ae40a.js} (92%) rename build/assets/{index-04235dc5.js => index-05851a42.js} (63%) rename build/assets/{index-5c574277.js => index-067fb061.js} (99%) rename build/assets/{index-b6fe9242.js => index-0e384091.js} (93%) rename build/assets/{index-bde6e5ef.js => index-10403053.js} (99%) rename build/assets/{index-e0614544.js => index-1880407d.js} (95%) rename build/assets/{index-2a7ba5ab.js => index-20063332.js} (69%) rename build/assets/{index-da03d4e9.js => index-2b725117.js} (96%) rename build/assets/{index-52cf0cef.js => index-41b34622.js} (95%) rename build/assets/{index-00fbfb7a.js => index-490ab3b4.js} (96%) rename build/assets/{index-bd13c6c5.js => index-57e1aba8.js} (85%) rename build/assets/{index-a01f56a3.js => index-609421b3.js} (91%) rename build/assets/{index-4d73db1d.js => index-6a674a65.js} (93%) rename build/assets/{index-bf769610.js => index-7a81ddcc.js} (99%) rename build/assets/{index-c99ee90f.js => index-85549638.js} (98%) rename build/assets/{index-738555e7.js => index-9c99377f.js} (71%) rename build/assets/{index-a24c814f.js => index-c5587235.js} (64%) rename build/assets/{index-569ae916.js => index-c8ae45d4.js} (97%) rename build/assets/{index-746c11fc.js => index-e3a56368.js} (98%) rename build/assets/{index-59e95d3e.js => index-e7533f23.js} (92%) rename build/assets/{index-0f75a7d3.js => index-f0bfe2ee.js} (97%) rename build/assets/{map-3259c6de.js => map-5327e6bd.js} (98%) diff --git a/build/assets/ClipLoader-2c26140d.js b/build/assets/ClipLoader-1133ece3.js similarity index 97% rename from build/assets/ClipLoader-2c26140d.js rename to build/assets/ClipLoader-1133ece3.js index 06f5fd15e..6cbfbb7c4 100644 --- a/build/assets/ClipLoader-2c26140d.js +++ b/build/assets/ClipLoader-1133ece3.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-bde6e5ef.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-10403053.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-6aad69b1.js b/build/assets/DailyMotion-58525f0c.js similarity index 95% rename from build/assets/DailyMotion-6aad69b1.js rename to build/assets/DailyMotion-58525f0c.js index e1767f5fd..d718fda94 100644 --- a/build/assets/DailyMotion-6aad69b1.js +++ b/build/assets/DailyMotion-58525f0c.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-bde6e5ef.js";import{u as D,p as O}from"./index-a01f56a3.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 g=u.player;this.player=new g(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:m=>a(m)}})},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{g as P,r as v}from"./index-10403053.js";import{u as D,p as O}from"./index-609421b3.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 g=u.player;this.player=new g(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:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-72db1bb1.js b/build/assets/Facebook-0eaa552b.js similarity index 96% rename from build/assets/Facebook-72db1bb1.js rename to build/assets/Facebook-0eaa552b.js index ea500014d..d9ff93625 100644 --- a/build/assets/Facebook-72db1bb1.js +++ b/build/assets/Facebook-0eaa552b.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-bde6e5ef.js";import{u as P,p as m}from"./index-a01f56a3.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(g),n=P,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{g as _,r as g}from"./index-10403053.js";import{u as P,p as m}from"./index-609421b3.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(g),n=P,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-55e9654a.js b/build/assets/FilePlayer-fc88a86a.js similarity index 98% rename from build/assets/FilePlayer-55e9654a.js rename to build/assets/FilePlayer-fc88a86a.js index 5ba9d7e21..5b16a1c31 100644 --- a/build/assets/FilePlayer-55e9654a.js +++ b/build/assets/FilePlayer-fc88a86a.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-bde6e5ef.js";import{u as O,p as A}from"./index-a01f56a3.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{g as b,r as _}from"./index-10403053.js";import{u as O,p as A}from"./index-609421b3.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-87b4078c.js b/build/assets/Kaltura-224cb42f.js similarity index 95% rename from build/assets/Kaltura-87b4078c.js rename to build/assets/Kaltura-224cb42f.js index d4c25cfa5..01142f521 100644 --- a/build/assets/Kaltura-87b4078c.js +++ b/build/assets/Kaltura-224cb42f.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-bde6e5ef.js";import{u as _,p as m}from"./index-a01f56a3.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{g as y,r as f}from"./index-10403053.js";import{u as _,p as m}from"./index-609421b3.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-df4ac210.js b/build/assets/Mixcloud-861653d1.js similarity index 95% rename from build/assets/Mixcloud-df4ac210.js rename to build/assets/Mixcloud-861653d1.js index db3a99f73..17d91334d 100644 --- a/build/assets/Mixcloud-df4ac210.js +++ b/build/assets/Mixcloud-861653d1.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-bde6e5ef.js";import{u as m,p as g}from"./index-a01f56a3.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{g as _,r as f}from"./index-10403053.js";import{u as m,p as g}from"./index-609421b3.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/Preview-7d6901d8.js b/build/assets/Preview-c02fc834.js similarity index 97% rename from build/assets/Preview-7d6901d8.js rename to build/assets/Preview-c02fc834.js index f710ed059..fe8e0bb82 100644 --- a/build/assets/Preview-7d6901d8.js +++ b/build/assets/Preview-c02fc834.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-bde6e5ef.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{g as y,r as b}from"./index-10403053.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Skeleton-1ccdf5c1.js b/build/assets/Skeleton-6c0412b8.js similarity index 97% rename from build/assets/Skeleton-1ccdf5c1.js rename to build/assets/Skeleton-6c0412b8.js index afab97c9c..383b633e0 100644 --- a/build/assets/Skeleton-1ccdf5c1.js +++ b/build/assets/Skeleton-6c0412b8.js @@ -1,4 +1,4 @@ -import{c as x,d as y,bu as b,s as R,e as o,f as S,bv as u,r as _,u as $,a as U,j as M,h as j,i as A}from"./index-bde6e5ef.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=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"]},B,a)},K=b(p||(p=r` +import{c as x,d as y,bu as b,s as R,e as o,f as S,bv as u,r as _,u as $,a as U,j as M,h as j,i as A}from"./index-10403053.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=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"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-87105b88.js b/build/assets/SoundCloud-46971a94.js similarity index 95% rename from build/assets/SoundCloud-87105b88.js rename to build/assets/SoundCloud-46971a94.js index dfb221b95..d1f9232f0 100644 --- a/build/assets/SoundCloud-87105b88.js +++ b/build/assets/SoundCloud-46971a94.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-bde6e5ef.js";import{u as b,p as v}from"./index-a01f56a3.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{g as P,r as g}from"./index-10403053.js";import{u as b,p as v}from"./index-609421b3.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-06c1211e.js b/build/assets/Stack-522c22e1.js similarity index 99% rename from build/assets/Stack-06c1211e.js rename to build/assets/Stack-522c22e1.js index bcfe4b07d..6e981811c 100644 --- a/build/assets/Stack-06c1211e.js +++ b/build/assets/Stack-522c22e1.js @@ -1 +1 @@ -import{r as E,$ as Mt,a as ae,e as T,c2 as Ft,c3 as Wt,c4 as Vt,c5 as Lt,c6 as Nt,by as Qe,bx as Ae,c7 as Ht,c1 as It,c8 as Ut,j as Q,c9 as Ze,i as je,c as Te,d as ht,l as et,m as tt,s as Be,ca as qt,u as Me,k as gt,h as zt}from"./index-bde6e5ef.js";import{y as rt,a_ as Xt,U as Yt}from"./index-5c574277.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=()=>je({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 L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var 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&&L(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 Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function 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!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return 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 kr=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 Dr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=kr(n.padding,r),h=Ve(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 jr(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:Dr,effect:jr,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),j=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=j.x,d=j.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 Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(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:L(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 ke(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?ke(Ir(e,r)):Z(t)?qr(t,r):ke(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(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?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),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=ke(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 j=$[n];Object.keys(R).forEach(function(S){var D=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=j[V]*D})}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,V=D?"width":"height",k=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=D?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(k[j]<=0),s&&G.push(k[B]<=0,k[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=Le(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,j={x:0,y:0};if(y){if(a){var S,D=u==="y"?M:F,V=u==="y"?N:H,k=u==="y"?"height":"width",B=y[u],z=B+m[D],G=B-m[V],me=p?-A[k]/2:0,Oe=O===te?P[k]:A[k],ie=O===te?-A[k]:-P[k],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[D],ge=X[V],_=ce(0,P[k],ee[k]),Ee=b?P[k]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[k]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),kt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,Dt=B+Ee-Ue-kt,jt=B+$t-Ue,qe=ce(p?we(z,Dt):z,B,p?K(G,jt):G);y[u]=qe,j[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,j[g]=Ke-J}t.modifiersData[o]=j}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=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)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return 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;rje({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(De(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(De(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(k=k.concat(i)),v&&v.modifiers!=null&&(k=k.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:k}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const j=Eo(),S=(o=x.root)!=null?o:"div",D=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:j.root});return Q.jsx(S,T({},D,{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=De(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})({}),ko=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=ko;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 Do=E.createContext(void 0),St=Do;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 jo(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 je(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,D=>{if(!Se(D,["Input","Select"]))return;const V=Se(D,["Select"])?D.props.input:D;V&&jo(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,D=>{Se(D,["Input","Select"])&&(mt(D.props,!0)||mt(D.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 j=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:j,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;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}; +import{r as E,$ as Mt,a as ae,e as T,c2 as Ft,c3 as Wt,c4 as Vt,c5 as Lt,c6 as Nt,by as Qe,bx as Ae,c7 as Ht,c1 as It,c8 as Ut,j as Q,c9 as Ze,i as je,c as Te,d as ht,l as et,m as tt,s as Be,ca as qt,u as Me,k as gt,h as zt}from"./index-10403053.js";import{y as rt,a_ as Xt,U as Yt}from"./index-067fb061.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=()=>je({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 L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var 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&&L(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 Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function 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!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return 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 kr=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 Dr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=kr(n.padding,r),h=Ve(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 jr(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:Dr,effect:jr,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),j=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=j.x,d=j.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 Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(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:L(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 ke(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?ke(Ir(e,r)):Z(t)?qr(t,r):ke(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(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?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),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=ke(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 j=$[n];Object.keys(R).forEach(function(S){var D=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=j[V]*D})}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,V=D?"width":"height",k=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=D?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(k[j]<=0),s&&G.push(k[B]<=0,k[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=Le(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,j={x:0,y:0};if(y){if(a){var S,D=u==="y"?M:F,V=u==="y"?N:H,k=u==="y"?"height":"width",B=y[u],z=B+m[D],G=B-m[V],me=p?-A[k]/2:0,Oe=O===te?P[k]:A[k],ie=O===te?-A[k]:-P[k],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[D],ge=X[V],_=ce(0,P[k],ee[k]),Ee=b?P[k]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[k]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),kt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,Dt=B+Ee-Ue-kt,jt=B+$t-Ue,qe=ce(p?we(z,Dt):z,B,p?K(G,jt):G);y[u]=qe,j[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,j[g]=Ke-J}t.modifiersData[o]=j}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=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)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return 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;rje({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(De(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(De(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(k=k.concat(i)),v&&v.modifiers!=null&&(k=k.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:k}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const j=Eo(),S=(o=x.root)!=null?o:"div",D=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:j.root});return Q.jsx(S,T({},D,{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=De(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})({}),ko=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=ko;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 Do=E.createContext(void 0),St=Do;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 jo(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 je(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,D=>{if(!Se(D,["Input","Select"]))return;const V=Se(D,["Select"])?D.props.input:D;V&&jo(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,D=>{Se(D,["Input","Select"])&&(mt(D.props,!0)||mt(D.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 j=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:j,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;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-2865f475.js b/build/assets/Streamable-90db1f21.js similarity index 95% rename from build/assets/Streamable-2865f475.js rename to build/assets/Streamable-90db1f21.js index 99160a49a..833aacc29 100644 --- a/build/assets/Streamable-2865f475.js +++ b/build/assets/Streamable-90db1f21.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-bde6e5ef.js";import{u as _,p as b}from"./index-a01f56a3.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{g as m,r as f}from"./index-10403053.js";import{u as _,p as b}from"./index-609421b3.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Tabs-07181cd3.js b/build/assets/Tabs-fb6d3947.js similarity index 98% rename from build/assets/Tabs-07181cd3.js rename to build/assets/Tabs-fb6d3947.js index c613d24c9..1fb69c496 100644 --- a/build/assets/Tabs-07181cd3.js +++ b/build/assets/Tabs-fb6d3947.js @@ -1 +1 @@ -import{d as ft,c as pt,s as O,B as Pt,k as Lt,e as b,r as c,u as ht,a as rt,h as L,j as S,i as St,m as Zt,q as Nt,p as ut}from"./index-bde6e5ef.js";import{J as $t,B as kt,U as lt,y as te}from"./index-5c574277.js";import{c as Ft}from"./createSvgIcon-016a2106.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(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:B,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,B),x&&x(R)},_=R=>{g&&!I&&y&&y(R,B),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(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),B=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({},B))}))}),Be=ye;function Ce(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"]},Ce,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Be,scrollButtons:B="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",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",Z=C?"bottom":"right",at=C?"clientHeight":"clientWidth",V=C?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:C,scrollButtons:B,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!C,scrollableY:E&&C,centered:m&&!E,scrollButtonsHideMobile:!x}),W=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(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Bt,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Ct=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[Ct.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(C)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];C?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(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(B==="auto"&&(xt||gt)||B===!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(W.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(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&B!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&B!==!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)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,B,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.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;Ct.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(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Bt.overflow,[C?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Bt.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{d as ft,c as pt,s as O,B as Pt,k as Lt,e as b,r as c,u as ht,a as rt,h as L,j as S,i as St,m as Zt,q as Nt,p as ut}from"./index-10403053.js";import{J as $t,B as kt,U as lt,y as te}from"./index-067fb061.js";import{c as Ft}from"./createSvgIcon-6e5d30bd.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(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:B,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,B),x&&x(R)},_=R=>{g&&!I&&y&&y(R,B),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(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),B=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({},B))}))}),Be=ye;function Ce(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"]},Ce,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Be,scrollButtons:B="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",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",Z=C?"bottom":"right",at=C?"clientHeight":"clientWidth",V=C?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:C,scrollButtons:B,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!C,scrollableY:E&&C,centered:m&&!E,scrollButtonsHideMobile:!x}),W=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(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Bt,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Ct=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[Ct.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(C)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];C?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(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(B==="auto"&&(xt||gt)||B===!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(W.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(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&B!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&B!==!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)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,B,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.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;Ct.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(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Bt.overflow,[C?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Bt.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-f9a84af0.js b/build/assets/TextareaAutosize-d45e3579.js similarity index 97% rename from build/assets/TextareaAutosize-f9a84af0.js rename to build/assets/TextareaAutosize-d45e3579.js index d8ab9cec5..1c71bc148 100644 --- a/build/assets/TextareaAutosize-f9a84af0.js +++ b/build/assets/TextareaAutosize-d45e3579.js @@ -1,2 +1,2 @@ -import{r as o,a as _,l as I,m as T,j as v,e as b,o as D}from"./index-bde6e5ef.js";import{B as F,J}from"./index-5c574277.js";const P=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const U={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,P),{current:A}=o.useRef(y!=null),p=o.useRef(null),B=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,a as _,l as I,m as T,j as v,e as b,o as D}from"./index-10403053.js";import{B as F,J}from"./index-067fb061.js";const P=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const U={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,P),{current:A}=o.useRef(y!=null),p=o.useRef(null),B=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?m+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:j,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)||D.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=J(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const N=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:N,ref:B,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},U.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-7cd6ba27.js b/build/assets/Twitch-2b3c9b6a.js similarity index 95% rename from build/assets/Twitch-7cd6ba27.js rename to build/assets/Twitch-2b3c9b6a.js index 9245223f4..c8cb728e0 100644 --- a/build/assets/Twitch-7cd6ba27.js +++ b/build/assets/Twitch-2b3c9b6a.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-bde6e5ef.js";import{u as C,p as N}from"./index-a01f56a3.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:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,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{g as w,r as D}from"./index-10403053.js";import{u as C,p as N}from"./index-609421b3.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:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,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-0d19ae0d.js b/build/assets/Typography-efec7f9a.js similarity index 93% rename from build/assets/Typography-0d19ae0d.js rename to build/assets/Typography-efec7f9a.js index fa274279b..66061b491 100644 --- a/build/assets/Typography-0d19ae0d.js +++ b/build/assets/Typography-efec7f9a.js @@ -1 +1 @@ -import{c as b,d as B,s as W,k as u,e as s,r as C,u as M,a as R,j as P,h as j,i as U}from"./index-bde6e5ef.js";import{e as N}from"./Stack-06c1211e.js";function _(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"],E=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 U(i,_,p)},L=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"},k={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z=a=>k[a]||a,A=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=z(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=R(o,$),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(T.root,i)},x))}),O=A;export{O as T}; +import{c as b,d as B,s as W,k as u,e as s,r as C,u as M,a as R,j as P,h as j,i as U}from"./index-10403053.js";import{e as N}from"./Stack-522c22e1.js";function _(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"],E=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 U(i,_,p)},L=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"},k={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z=a=>k[a]||a,A=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=z(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=R(o,$),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(T.root,i)},x))}),O=A;export{O as T}; diff --git a/build/assets/Vidyard-6c124b56.js b/build/assets/Vidyard-c0c0cf04.js similarity index 95% rename from build/assets/Vidyard-6c124b56.js rename to build/assets/Vidyard-c0c0cf04.js index 2d7a01882..65d744bd6 100644 --- a/build/assets/Vidyard-6c124b56.js +++ b/build/assets/Vidyard-c0c0cf04.js @@ -1 +1 @@ -import{g,r as v}from"./index-bde6e5ef.js";import{u as b,p as O}from"./index-a01f56a3.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{g,r as v}from"./index-10403053.js";import{u as b,p as O}from"./index-609421b3.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-0612272f.js b/build/assets/Vimeo-89fe52c3.js similarity index 96% rename from build/assets/Vimeo-0612272f.js rename to build/assets/Vimeo-89fe52c3.js index 3fbe96577..c78e28ce4 100644 --- a/build/assets/Vimeo-0612272f.js +++ b/build/assets/Vimeo-89fe52c3.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-bde6e5ef.js";import{u as m,p as _}from"./index-a01f56a3.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{g as d,r as f}from"./index-10403053.js";import{u as m,p as _}from"./index-609421b3.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-30b5d4b3.js b/build/assets/Wistia-a7308b3f.js similarity index 96% rename from build/assets/Wistia-30b5d4b3.js rename to build/assets/Wistia-a7308b3f.js index e476f28e6..645224184 100644 --- a/build/assets/Wistia-30b5d4b3.js +++ b/build/assets/Wistia-a7308b3f.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-bde6e5ef.js";import{u as v,p as w}from"./index-a01f56a3.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{g as m,r as g}from"./index-10403053.js";import{u as v,p as w}from"./index-609421b3.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-8d639dcb.js b/build/assets/YouTube-c3554acb.js similarity index 97% rename from build/assets/YouTube-8d639dcb.js rename to build/assets/YouTube-c3554acb.js index c19ae3d90..4cf2e43b5 100644 --- a/build/assets/YouTube-8d639dcb.js +++ b/build/assets/YouTube-c3554acb.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-bde6e5ef.js";import{u as L,p as Y}from"./index-a01f56a3.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{g as U,r as I}from"./index-10403053.js";import{u as L,p as Y}from"./index-609421b3.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-a3da365e.js b/build/assets/constants-4d05840e.js similarity index 80% rename from build/assets/constants-a3da365e.js rename to build/assets/constants-4d05840e.js index f76ba2afe..c579a620c 100644 --- a/build/assets/constants-a3da365e.js +++ b/build/assets/constants-4d05840e.js @@ -1,4 +1,4 @@ -import{w as t,a_ as s,aY as a,aZ as o,a$ as n}from"./index-bde6e5ef.js";import{ap as c}from"./index-5c574277.js";const i={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",p="date",u="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=t(c)` +import{w as t,a_ as s,aY as a,aZ as o,a$ as n}from"./index-10403053.js";import{ap as c}from"./index-067fb061.js";const i={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",p="date",u="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=t(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-016a2106.js b/build/assets/createSvgIcon-6e5d30bd.js similarity index 97% rename from build/assets/createSvgIcon-016a2106.js rename to build/assets/createSvgIcon-6e5d30bd.js index d52b61c57..1141faaaf 100644 --- a/build/assets/createSvgIcon-016a2106.js +++ b/build/assets/createSvgIcon-6e5d30bd.js @@ -1 +1 @@ -import{c as I,d as C,s as w,k as f,r as v,u as R,a as b,e as g,j as S,h as j,i as N}from"./index-bde6e5ef.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"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,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 z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;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}; +import{c as I,d as C,s as w,k as f,r as v,u as R,a as b,e as g,j as S,h as j,i as N}from"./index-10403053.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"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,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 z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;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-427bda35.js b/build/assets/index-037ae40a.js similarity index 92% rename from build/assets/index-427bda35.js rename to build/assets/index-037ae40a.js index 3fa21cfc4..1278c9645 100644 --- a/build/assets/index-427bda35.js +++ b/build/assets/index-037ae40a.js @@ -1,4 +1,4 @@ -import{w as i,x as t,F as c,j as e,M as j,r as l,v as B,z as w,bs as C,bt as R,at as z}from"./index-bde6e5ef.js";import{aS as I,e as D,u as E}from"./index-5c574277.js";import{S as L}from"./Skeleton-1ccdf5c1.js";import{C as M}from"./ClipLoader-2c26140d.js";const T=({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(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` +import{w as i,x as t,F as c,j as e,M as j,r as l,v as B,z as w,bs as C,bt as R,at as z}from"./index-10403053.js";import{aS as I,e as D,u as E}from"./index-067fb061.js";import{S as L}from"./Skeleton-6c0412b8.js";import{C as M}from"./ClipLoader-1133ece3.js";const T=({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(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-04235dc5.js b/build/assets/index-05851a42.js similarity index 63% rename from build/assets/index-04235dc5.js rename to build/assets/index-05851a42.js index f720dcca6..1f8998569 100644 --- a/build/assets/index-04235dc5.js +++ b/build/assets/index-05851a42.js @@ -1,4 +1,4 @@ -import{r as P,g as Cc,e as yi,bH as _c,bI as ed,j as L,b as td,x as Ji,bJ as nd,bK as rd,bL as id}from"./index-bde6e5ef.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{aW as _t,w as Fd,e as Ad}from"./index-5c574277.js";var Pc={exports:{}},Gr={};/** +import{r as k,g as Cc,e as Nr,bH as _c,bI as td,j as L,b as nd,x as Ji,bJ as rd,bK as id,bL as od}from"./index-10403053.js";import{H as fl,I as Vl,J as ad,U as ld,d as Ec,k as sd,C as ro,K as ud,O as Zl,y as Ql,N as da,X as dl,Y as cd,Z as fd,_ as dd,$ as hd,a0 as pd,a1 as vd,a2 as md,V as st,b as Gr,a3 as gd,h as yd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as vi,a7 as xd,t as Yl,a8 as wd,a9 as Fl,aa as Fu,ab as Sd,ac as xi,j as Mc,ad as Cd,l as io,o as kc,ae as _d,af as Ed,ag as Td,ah as Md,ai as kd,aj as Au,ak as Pd,al as Ld,M as Ud,r as Rd,am as Jl,an as Du,ao as Ir,ap as Fd,i as hl}from"./three.module-26d3b3c0.js";import{aW as _t,w as Ad,e as Dd}from"./index-067fb061.js";var Pc={exports:{}},Wr={};/** * @license React * react-reconciler-constants.production.min.js * @@ -6,7 +6,7 @@ import{r as P,g as Cc,e as yi,bH as _c,bI as ed,j as L,b as td,x as Ji,bJ as nd, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Gr.ConcurrentRoot=1;Gr.ContinuousEventPriority=4;Gr.DefaultEventPriority=16;Gr.DiscreteEventPriority=1;Gr.IdleEventPriority=536870912;Gr.LegacyRoot=0;Pc.exports=Gr;var vi=Pc.exports;function Dd(l){let n;const c=new Set,v=(h,d)=>{const m=typeof h=="function"?h(n):h;if(m!==n){const y=n;n=d?m:Object.assign({},n,m),c.forEach(x=>x(n,y))}},i=()=>n,r=(h,d=i,m=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let y=d(n);function x(){const C=d(n);if(!m(y,C)){const T=y;h(y=C,T)}}return c.add(x),()=>c.delete(x)},u={setState:v,getState:i,subscribe:(h,d,m)=>d||m?r(h,d,m):(c.add(h),()=>c.delete(h)),destroy:()=>c.clear()};return n=l(v,i,u),u}const Od=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ou=Od?P.useEffect:P.useLayoutEffect;function zd(l){const n=typeof l=="function"?Dd(l):l,c=(v=n.getState,i=Object.is)=>{const[,r]=P.useReducer(S=>S+1,0),s=n.getState(),f=P.useRef(s),u=P.useRef(v),h=P.useRef(i),d=P.useRef(!1),m=P.useRef();m.current===void 0&&(m.current=v(s));let y,x=!1;(f.current!==s||u.current!==v||h.current!==i||d.current)&&(y=v(s),x=!i(m.current,y)),Ou(()=>{x&&(m.current=y),f.current=s,u.current=v,h.current=i,d.current=!1});const C=P.useRef(s);Ou(()=>{const S=()=>{try{const w=n.getState(),M=u.current(w);h.current(m.current,M)||(f.current=w,m.current=M,r())}catch{d.current=!0,r()}},_=n.subscribe(S);return n.getState()!==C.current&&S(),_},[]);const T=x?y:m.current;return P.useDebugValue(T),T};return Object.assign(c,n),c[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const v=[c,n];return{next(){const i=v.length<=0;return{value:v.shift(),done:i}}}},c}var Lc={exports:{}},Uc={exports:{}},Rc={};/** + */Wr.ConcurrentRoot=1;Wr.ContinuousEventPriority=4;Wr.DefaultEventPriority=16;Wr.DiscreteEventPriority=1;Wr.IdleEventPriority=536870912;Wr.LegacyRoot=0;Pc.exports=Wr;var mi=Pc.exports;function Od(a){let n;const c=new Set,v=(h,d)=>{const m=typeof h=="function"?h(n):h;if(m!==n){const y=n;n=d?m:Object.assign({},n,m),c.forEach(x=>x(n,y))}},i=()=>n,r=(h,d=i,m=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let y=d(n);function x(){const C=d(n);if(!m(y,C)){const T=y;h(y=C,T)}}return c.add(x),()=>c.delete(x)},u={setState:v,getState:i,subscribe:(h,d,m)=>d||m?r(h,d,m):(c.add(h),()=>c.delete(h)),destroy:()=>c.clear()};return n=a(v,i,u),u}const zd=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ou=zd?k.useEffect:k.useLayoutEffect;function Id(a){const n=typeof a=="function"?Od(a):a,c=(v=n.getState,i=Object.is)=>{const[,r]=k.useReducer(S=>S+1,0),s=n.getState(),f=k.useRef(s),u=k.useRef(v),h=k.useRef(i),d=k.useRef(!1),m=k.useRef();m.current===void 0&&(m.current=v(s));let y,x=!1;(f.current!==s||u.current!==v||h.current!==i||d.current)&&(y=v(s),x=!i(m.current,y)),Ou(()=>{x&&(m.current=y),f.current=s,u.current=v,h.current=i,d.current=!1});const C=k.useRef(s);Ou(()=>{const S=()=>{try{const w=n.getState(),M=u.current(w);h.current(m.current,M)||(f.current=w,m.current=M,r())}catch{d.current=!0,r()}},_=n.subscribe(S);return n.getState()!==C.current&&S(),_},[]);const T=x?y:m.current;return k.useDebugValue(T),T};return Object.assign(c,n),c[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const v=[c,n];return{next(){const i=v.length<=0;return{value:v.shift(),done:i}}}},c}var Lc={exports:{}},Uc={exports:{}},Rc={};/** * @license React * scheduler.production.min.js * @@ -14,7 +14,7 @@ import{r as P,g as Cc,e as yi,bH as _c,bI as ed,j as L,b as td,x as Ji,bJ as nd, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(l){function n(Z,j){var W=Z.length;Z.push(j);e:for(;0>>1,I=Z[k];if(0>>1;ki(H,W))rei(X,H)?(Z[k]=X,Z[re]=W,k=re):(Z[k]=H,Z[Y]=W,k=Y);else if(rei(X,W))Z[k]=X,Z[re]=W,k=re;else break e}}return j}function i(Z,j){var W=Z.sortIndex-j.sortIndex;return W!==0?W:Z.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;l.unstable_now=function(){return r.now()}}else{var s=Date,f=s.now();l.unstable_now=function(){return s.now()-f}}var u=[],h=[],d=1,m=null,y=3,x=!1,C=!1,T=!1,S=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 M(Z){for(var j=c(h);j!==null;){if(j.callback===null)v(h);else if(j.startTime<=Z)v(h),j.sortIndex=j.expirationTime,n(u,j);else break;j=c(h)}}function D(Z){if(T=!1,M(Z),!C)if(c(u)!==null)C=!0,ae(R);else{var j=c(h);j!==null&&ve(D,j.startTime-Z)}}function R(Z,j){C=!1,T&&(T=!1,_(B),B=-1),x=!0;var W=y;try{for(M(j),m=c(u);m!==null&&(!(m.expirationTime>j)||Z&&!G());){var k=m.callback;if(typeof k=="function"){m.callback=null,y=m.priorityLevel;var I=k(m.expirationTime<=j);j=l.unstable_now(),typeof I=="function"?m.callback=I:m===c(u)&&v(u),M(j)}else v(u);m=c(u)}if(m!==null)var Q=!0;else{var Y=c(h);Y!==null&&ve(D,Y.startTime-j),Q=!1}return Q}finally{m=null,y=W,x=!1}}var A=!1,b=null,B=-1,J=5,oe=-1;function G(){return!(l.unstable_now()-oeZ||125k?(Z.sortIndex=W,n(h,Z),c(u)===null&&Z===c(h)&&(T?(_(B),B=-1):T=!0,ve(D,W-k))):(Z.sortIndex=I,n(u,Z),C||x||(C=!0,ae(R))),Z},l.unstable_shouldYield=G,l.unstable_wrapCallback=function(Z){var j=y;return function(){var W=y;y=j;try{return Z.apply(this,arguments)}finally{y=W}}}})(Rc);Uc.exports=Rc;var Al=Uc.exports;/** + */(function(a){function n(Z,j){var W=Z.length;Z.push(j);e:for(;0>>1,I=Z[P];if(0>>1;Pi(H,W))rei(X,H)?(Z[P]=X,Z[re]=W,P=re):(Z[P]=H,Z[Y]=W,P=Y);else if(rei(X,W))Z[P]=X,Z[re]=W,P=re;else break e}}return j}function i(Z,j){var W=Z.sortIndex-j.sortIndex;return W!==0?W:Z.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;a.unstable_now=function(){return r.now()}}else{var s=Date,f=s.now();a.unstable_now=function(){return s.now()-f}}var u=[],h=[],d=1,m=null,y=3,x=!1,C=!1,T=!1,S=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 M(Z){for(var j=c(h);j!==null;){if(j.callback===null)v(h);else if(j.startTime<=Z)v(h),j.sortIndex=j.expirationTime,n(u,j);else break;j=c(h)}}function D(Z){if(T=!1,M(Z),!C)if(c(u)!==null)C=!0,ae(R);else{var j=c(h);j!==null&&ve(D,j.startTime-Z)}}function R(Z,j){C=!1,T&&(T=!1,_(B),B=-1),x=!0;var W=y;try{for(M(j),m=c(u);m!==null&&(!(m.expirationTime>j)||Z&&!G());){var P=m.callback;if(typeof P=="function"){m.callback=null,y=m.priorityLevel;var I=P(m.expirationTime<=j);j=a.unstable_now(),typeof I=="function"?m.callback=I:m===c(u)&&v(u),M(j)}else v(u);m=c(u)}if(m!==null)var Q=!0;else{var Y=c(h);Y!==null&&ve(D,Y.startTime-j),Q=!1}return Q}finally{m=null,y=W,x=!1}}var A=!1,b=null,B=-1,J=5,oe=-1;function G(){return!(a.unstable_now()-oeZ||125P?(Z.sortIndex=W,n(h,Z),c(u)===null&&Z===c(h)&&(T?(_(B),B=-1):T=!0,ve(D,W-P))):(Z.sortIndex=I,n(u,Z),C||x||(C=!0,ae(R))),Z},a.unstable_shouldYield=G,a.unstable_wrapCallback=function(Z){var j=y;return function(){var W=y;y=j;try{return Z.apply(this,arguments)}finally{y=W}}}})(Rc);Uc.exports=Rc;var Al=Uc.exports;/** * @license React * react-reconciler.production.min.js * @@ -22,17 +22,17 @@ import{r as P,g as Cc,e as yi,bH as _c,bI as ed,j as L,b as td,x as Ji,bJ as nd, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Id=function(n){var c={},v=P,i=Al,r=Object.assign;function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;oU||p[E]!==g[U]){var V=` -`+p[E].replace(" at new "," at ");return e.displayName&&V.includes("")&&(V=V.replace("",e.displayName)),V}while(1<=E&&0<=U);break}}}finally{Ti=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Rn(e):""}var Hr=Object.prototype.hasOwnProperty,Vr=[],In=-1;function ln(e){return{current:e}}function Ye(e){0>In||(e.current=Vr[In],Vr[In]=null,In--)}function Ke(e,t){In++,Vr[In]=e.current,e.current=t}var sn={},St=ln(sn),Et=ln(!1),jn=sn;function yn(e,t){var o=e.type.contextTypes;if(!o)return sn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in o)p[g]=t[g];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=p),p}function Tt(e){return e=e.childContextTypes,e!=null}function Fn(){Ye(Et),Ye(St)}function Zr(e,t,o){if(St.current!==sn)throw Error(s(168));Ke(St,t),Ke(Et,o)}function Qr(e,t,o){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var p in a)if(!(p in t))throw Error(s(108,B(e)||"Unknown",p));return r({},o,a)}function sr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,jn=St.current,Ke(St,e),Ke(Et,Et.current),!0}function un(e,t,o){var a=e.stateNode;if(!a)throw Error(s(169));o?(e=Qr(e,t,jn),a.__reactInternalMemoizedMergedChildContext=e,Ye(Et),Ye(St),Ke(St,e)):Ye(Et),Ke(Et,o)}var cn=Math.clz32?Math.clz32:fo,Xr=Math.log,wr=Math.LN2;function fo(e){return e>>>=0,e===0?32:31-(Xr(e)/wr|0)|0}var Kn=64,qn=4194304;function $n(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 Sr(e,t){var o=e.pendingLanes;if(o===0)return 0;var a=0,p=e.suspendedLanes,g=e.pingedLanes,E=o&268435455;if(E!==0){var U=E&~p;U!==0?a=$n(U):(g&=E,g!==0&&(a=$n(g)))}else E=o&~p,E!==0?a=$n(E):g!==0&&(a=$n(g));if(a===0)return 0;if(t!==0&&t!==a&&!(t&p)&&(p=a&-a,g=t&-t,p>=g||p===16&&(g&4194240)!==0))return t;if(a&4&&(a|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0o;o++)t.push(e);return t}function bn(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=o}function ur(e,t){var o=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 a=e.eventTimes;for(e=e.expirationTimes;0>=E,p-=E,rr=1<<32-cn(t)+p|o<Ve?(Lt=Ae,Ae=null):Lt=Ae.sibling;var Ze=Le(z,Ae,N[Ve],he);if(Ze===null){Ae===null&&(Ae=Lt);break}e&&Ae&&Ze.alternate===null&&t(z,Ae),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze,Ae=Lt}if(Ve===N.length)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;VeVe?(Lt=Ae,Ae=null):Lt=Ae.sibling;var yr=Le(z,Ae,Ze.value,he);if(yr===null){Ae===null&&(Ae=Lt);break}e&&Ae&&yr.alternate===null&&t(z,Ae),F=g(yr,F,Ve),je===null?Ee=yr:je.sibling=yr,je=yr,Ae=Lt}if(Ze.done)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;!Ze.done;Ve++,Ze=N.next())Ze=Fe(z,Ze.value,he),Ze!==null&&(F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return ot&&Pr(z,Ve),Ee}for(Ae=a(z,Ae);!Ze.done;Ve++,Ze=N.next())Ze=$e(Ae,z,Ve,Ze.value,he),Ze!==null&&(e&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Ve:Ze.key),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return e&&Ae.forEach(function($f){return t(z,$f)}),ot&&Pr(z,Ve),Ee}function Mn(z,F,N,he){if(typeof N=="object"&&N!==null&&N.type===d&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case u:e:{for(var Ee=N.key,je=F;je!==null;){if(je.key===Ee){if(Ee=N.type,Ee===d){if(je.tag===7){o(z,je.sibling),F=p(je,N.props.children),F.return=z,z=F;break e}}else if(je.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===M&&ms(Ee)===je.type){o(z,je.sibling),F=p(je,N.props),F.ref=Oi(z,je,N),F.return=z,z=F;break e}o(z,je);break}else t(z,je);je=je.sibling}N.type===d?(F=Or(N.props.children,z.mode,he,N.key),F.return=z,z=F):(he=ea(N.type,N.key,N.props,null,z.mode,he),he.ref=Oi(z,F,N),he.return=z,z=he)}return E(z);case h:e:{for(je=N.key;F!==null;){if(F.key===je)if(F.tag===4&&F.stateNode.containerInfo===N.containerInfo&&F.stateNode.implementation===N.implementation){o(z,F.sibling),F=p(F,N.children||[]),F.return=z,z=F;break e}else{o(z,F);break}else t(z,F);F=F.sibling}F=ul(N,z.mode,he),F.return=z,z=F}return E(z);case M:return je=N._init,Mn(z,F,je(N._payload),he)}if(ne(N))return Te(z,F,N,he);if(A(N))return bt(z,F,N,he);_o(z,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,F!==null&&F.tag===6?(o(z,F.sibling),F=p(F,N),F.return=z,z=F):(o(z,F),F=sl(N,z.mode,he),F.return=z,z=F),E(z)):o(z,F)}return Mn}var ni=gs(!0),ys=gs(!1),zi={},Cn=ln(zi),Ii=ln(zi),ri=ln(zi);function Gn(e){if(e===zi)throw Error(s(174));return e}function Ma(e,t){Ke(ri,t),Ke(Ii,e),Ke(Cn,zi),e=ve(t),Ye(Cn),Ke(Cn,e)}function ii(){Ye(Cn),Ye(Ii),Ye(ri)}function xs(e){var t=Gn(ri.current),o=Gn(Cn.current);t=Z(o,e.type,t),o!==t&&(Ke(Ii,e),Ke(Cn,t))}function ka(e){Ii.current===e&&(Ye(Cn),Ye(Ii))}var lt=ln(0);function Eo(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Xe(o)||ht(o)))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 Pa=[];function La(){for(var e=0;eo?o:4,e(!0);var a=_n.transition;_n.transition={};try{e(!1),t()}finally{Ne=o,_n.transition=a}}function As(){return Wn().memoizedState}function Mf(e,t,o){var a=vr(e);o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)?Os(t,o):(zs(e,t,o),o=Kt(),e=En(e,a,o),e!==null&&Is(e,t,a))}function kf(e,t,o){var a=vr(e),p={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))Os(t,p);else{zs(e,t,p);var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null))try{var E=t.lastRenderedState,U=g(E,o);if(p.hasEagerState=!0,p.eagerState=U,dn(U,E))return}catch{}finally{}o=Kt(),e=En(e,a,o),e!==null&&Is(e,t,a)}}function Ds(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function Os(e,t){ji=Mo=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function zs(e,t,o){xt!==null&&e.mode&1&&!(Be&2)?(e=t.interleaved,e===null?(o.next=o,hn===null?hn=[t]:hn.push(t)):(o.next=e.next,e.next=o),t.interleaved=o):(e=t.pending,e===null?o.next=o:(o.next=e.next,e.next=o),t.pending=o)}function Is(e,t,o){if(o&4194240){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,Bn(e,o)}}var Ro={readContext:vt,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},Pf={readContext:vt,useCallback:function(e,t){return or().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Da,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Lo(4194308,4,Ls.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Lo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var o=or();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var a=or();return t=o!==void 0?o(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=Mf.bind(null,dt,e),[a.memoizedState,e]},useRef:function(e){var t=or();return e={current:e},t.memoizedState=e},useState:Aa,useDebugValue:Oa,useDeferredValue:function(e){var t=Aa(e),o=t[0],a=t[1];return Da(function(){var p=_n.transition;_n.transition={};try{a(e)}finally{_n.transition=p}},[e]),o},useTransition:function(){var e=Aa(!1),t=e[0];return e=Tf.bind(null,e[1]),or().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var a=dt,p=or();if(ot){if(o===void 0)throw Error(s(407));o=o()}else{if(o=t(),xt===null)throw Error(s(349));oi&30||Cs(a,t,o)}p.memoizedState=o;var g={value:o,getSnapshot:t};return p.queue=g,Da(Es.bind(null,a,g,e),[e]),a.flags|=2048,Bi(9,_s.bind(null,a,g,o,t),void 0,null),o},useId:function(){var e=or(),t=xt.identifierPrefix;if(ot){var o=ir,a=rr;o=(a&~(1<<32-cn(a)-1)).toString(32)+o,t=":"+t+"R"+o,o=bi++,0")&&(V=V.replace("",e.displayName)),V}while(1<=E&&0<=U);break}}}finally{Ti=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Rn(e):""}var Vr=Object.prototype.hasOwnProperty,Zr=[],In=-1;function ln(e){return{current:e}}function Ye(e){0>In||(e.current=Zr[In],Zr[In]=null,In--)}function Ke(e,t){In++,Zr[In]=e.current,e.current=t}var sn={},St=ln(sn),Et=ln(!1),jn=sn;function yn(e,t){var o=e.type.contextTypes;if(!o)return sn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in o)p[g]=t[g];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=p),p}function Tt(e){return e=e.childContextTypes,e!=null}function Fn(){Ye(Et),Ye(St)}function Qr(e,t,o){if(St.current!==sn)throw Error(s(168));Ke(St,t),Ke(Et,o)}function Xr(e,t,o){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var p in l)if(!(p in t))throw Error(s(108,B(e)||"Unknown",p));return r({},o,l)}function sr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,jn=St.current,Ke(St,e),Ke(Et,Et.current),!0}function un(e,t,o){var l=e.stateNode;if(!l)throw Error(s(169));o?(e=Xr(e,t,jn),l.__reactInternalMemoizedMergedChildContext=e,Ye(Et),Ye(St),Ke(St,e)):Ye(Et),Ke(Et,o)}var cn=Math.clz32?Math.clz32:fo,Yr=Math.log,wr=Math.LN2;function fo(e){return e>>>=0,e===0?32:31-(Yr(e)/wr|0)|0}var Kn=64,qn=4194304;function $n(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 Sr(e,t){var o=e.pendingLanes;if(o===0)return 0;var l=0,p=e.suspendedLanes,g=e.pingedLanes,E=o&268435455;if(E!==0){var U=E&~p;U!==0?l=$n(U):(g&=E,g!==0&&(l=$n(g)))}else E=o&~p,E!==0?l=$n(E):g!==0&&(l=$n(g));if(l===0)return 0;if(t!==0&&t!==l&&!(t&p)&&(p=l&-l,g=t&-t,p>=g||p===16&&(g&4194240)!==0))return t;if(l&4&&(l|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0o;o++)t.push(e);return t}function bn(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=o}function ur(e,t){var o=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 l=e.eventTimes;for(e=e.expirationTimes;0>=E,p-=E,rr=1<<32-cn(t)+p|o<Ve?(Lt=Ae,Ae=null):Lt=Ae.sibling;var Ze=Le(z,Ae,N[Ve],he);if(Ze===null){Ae===null&&(Ae=Lt);break}e&&Ae&&Ze.alternate===null&&t(z,Ae),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze,Ae=Lt}if(Ve===N.length)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;VeVe?(Lt=Ae,Ae=null):Lt=Ae.sibling;var yr=Le(z,Ae,Ze.value,he);if(yr===null){Ae===null&&(Ae=Lt);break}e&&Ae&&yr.alternate===null&&t(z,Ae),F=g(yr,F,Ve),je===null?Ee=yr:je.sibling=yr,je=yr,Ae=Lt}if(Ze.done)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;!Ze.done;Ve++,Ze=N.next())Ze=Fe(z,Ze.value,he),Ze!==null&&(F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return ot&&Pr(z,Ve),Ee}for(Ae=l(z,Ae);!Ze.done;Ve++,Ze=N.next())Ze=$e(Ae,z,Ve,Ze.value,he),Ze!==null&&(e&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Ve:Ze.key),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return e&&Ae.forEach(function(ed){return t(z,ed)}),ot&&Pr(z,Ve),Ee}function Mn(z,F,N,he){if(typeof N=="object"&&N!==null&&N.type===d&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case u:e:{for(var Ee=N.key,je=F;je!==null;){if(je.key===Ee){if(Ee=N.type,Ee===d){if(je.tag===7){o(z,je.sibling),F=p(je,N.props.children),F.return=z,z=F;break e}}else if(je.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===M&&ms(Ee)===je.type){o(z,je.sibling),F=p(je,N.props),F.ref=Oi(z,je,N),F.return=z,z=F;break e}o(z,je);break}else t(z,je);je=je.sibling}N.type===d?(F=Or(N.props.children,z.mode,he,N.key),F.return=z,z=F):(he=ea(N.type,N.key,N.props,null,z.mode,he),he.ref=Oi(z,F,N),he.return=z,z=he)}return E(z);case h:e:{for(je=N.key;F!==null;){if(F.key===je)if(F.tag===4&&F.stateNode.containerInfo===N.containerInfo&&F.stateNode.implementation===N.implementation){o(z,F.sibling),F=p(F,N.children||[]),F.return=z,z=F;break e}else{o(z,F);break}else t(z,F);F=F.sibling}F=ul(N,z.mode,he),F.return=z,z=F}return E(z);case M:return je=N._init,Mn(z,F,je(N._payload),he)}if(ne(N))return Te(z,F,N,he);if(A(N))return bt(z,F,N,he);_o(z,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,F!==null&&F.tag===6?(o(z,F.sibling),F=p(F,N),F.return=z,z=F):(o(z,F),F=sl(N,z.mode,he),F.return=z,z=F),E(z)):o(z,F)}return Mn}var ri=gs(!0),ys=gs(!1),zi={},Cn=ln(zi),Ii=ln(zi),ii=ln(zi);function Gn(e){if(e===zi)throw Error(s(174));return e}function Ma(e,t){Ke(ii,t),Ke(Ii,e),Ke(Cn,zi),e=ve(t),Ye(Cn),Ke(Cn,e)}function oi(){Ye(Cn),Ye(Ii),Ye(ii)}function xs(e){var t=Gn(ii.current),o=Gn(Cn.current);t=Z(o,e.type,t),o!==t&&(Ke(Ii,e),Ke(Cn,t))}function ka(e){Ii.current===e&&(Ye(Cn),Ye(Ii))}var lt=ln(0);function Eo(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Xe(o)||ht(o)))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 Pa=[];function La(){for(var e=0;eo?o:4,e(!0);var l=_n.transition;_n.transition={};try{e(!1),t()}finally{Ne=o,_n.transition=l}}function As(){return Wn().memoizedState}function kf(e,t,o){var l=vr(e);o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)?Os(t,o):(zs(e,t,o),o=Kt(),e=En(e,l,o),e!==null&&Is(e,t,l))}function Pf(e,t,o){var l=vr(e),p={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))Os(t,p);else{zs(e,t,p);var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null))try{var E=t.lastRenderedState,U=g(E,o);if(p.hasEagerState=!0,p.eagerState=U,dn(U,E))return}catch{}finally{}o=Kt(),e=En(e,l,o),e!==null&&Is(e,t,l)}}function Ds(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function Os(e,t){ji=Mo=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function zs(e,t,o){xt!==null&&e.mode&1&&!(Be&2)?(e=t.interleaved,e===null?(o.next=o,hn===null?hn=[t]:hn.push(t)):(o.next=e.next,e.next=o),t.interleaved=o):(e=t.pending,e===null?o.next=o:(o.next=e.next,e.next=o),t.pending=o)}function Is(e,t,o){if(o&4194240){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Bn(e,o)}}var Ro={readContext:vt,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},Lf={readContext:vt,useCallback:function(e,t){return or().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Da,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Lo(4194308,4,Ls.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Lo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var o=or();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var l=or();return t=o!==void 0?o(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=kf.bind(null,dt,e),[l.memoizedState,e]},useRef:function(e){var t=or();return e={current:e},t.memoizedState=e},useState:Aa,useDebugValue:Oa,useDeferredValue:function(e){var t=Aa(e),o=t[0],l=t[1];return Da(function(){var p=_n.transition;_n.transition={};try{l(e)}finally{_n.transition=p}},[e]),o},useTransition:function(){var e=Aa(!1),t=e[0];return e=Mf.bind(null,e[1]),or().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var l=dt,p=or();if(ot){if(o===void 0)throw Error(s(407));o=o()}else{if(o=t(),xt===null)throw Error(s(349));ai&30||Cs(l,t,o)}p.memoizedState=o;var g={value:o,getSnapshot:t};return p.queue=g,Da(Es.bind(null,l,g,e),[e]),l.flags|=2048,Bi(9,_s.bind(null,l,g,o,t),void 0,null),o},useId:function(){var e=or(),t=xt.identifierPrefix;if(ot){var o=ir,l=rr;o=(l&~(1<<32-cn(l)-1)).toString(32)+o,t=":"+t+"R"+o,o=bi++,0el&&(t.flags|=128,a=!0,Hi(p,!1),t.lanes=4194304)}else{if(!a)if(e=Eo(g),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),Hi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!ot)return jt(t),null}else 2*at()-p.renderingStartTime>el&&o!==1073741824&&(t.flags|=128,a=!0,Hi(p,!1),t.lanes=4194304);p.isBackwards?(g.sibling=t.child,t.child=g):(e=p.last,e!==null?e.sibling=g:t.child=g,p.last=g)}return p.tail!==null?(t=p.tail,p.rendering=t,p.tail=t.sibling,p.renderingStartTime=at(),t.sibling=null,e=lt.current,Ke(lt,a?e&1|2:e&1),t):(jt(t),null);case 22:case 23:return ol(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?gn&1073741824&&(jt(t),K&&t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}var Af=f.ReactCurrentOwner,mn=!1;function Jt(e,t,o,a){t.child=e===null?ys(t,null,o,a):ni(t,e.child,o,a)}function Vs(e,t,o,a,p){o=o.render;var g=t.ref;return pt(t,p),a=Ra(e,t,o,a,g,p),o=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&o&&Sa(t),t.flags|=1,Jt(e,t,a,p),t.child)}function Zs(e,t,o,a,p){if(e===null){var g=o.type;return typeof g=="function"&&!ll(g)&&g.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=g,Qs(e,t,g,a,p)):(e=ea(o.type,null,a,t,t.mode,p),e.ref=t.ref,e.return=t,t.child=e)}if(g=e.child,!(e.lanes&p)){var E=g.memoizedProps;if(o=o.compare,o=o!==null?o:Tr,o(E,a)&&e.ref===t.ref)return ar(e,t,p)}return t.flags|=1,e=gr(g,a),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,o,a,p){if(e!==null&&Tr(e.memoizedProps,a)&&e.ref===t.ref)if(mn=!1,(e.lanes&p)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,ar(e,t,p);return ja(e,t,o,a,p)}function Xs(e,t,o){var a=t.pendingProps,p=a.children,g=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},Ke(ai,gn),gn|=o;else if(o&1073741824)t.memoizedState={baseLanes:0,cachePool:null},a=g!==null?g.baseLanes:o,Ke(ai,gn),gn|=a;else return e=g!==null?g.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,Ke(ai,gn),gn|=e,null;else g!==null?(a=g.baseLanes|o,t.memoizedState=null):a=o,Ke(ai,gn),gn|=a;return Jt(e,t,p,o),t.child}function Ys(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function ja(e,t,o,a,p){var g=Tt(o)?jn:St.current;return g=yn(t,g),pt(t,p),o=Ra(e,t,o,a,g,p),a=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&a&&Sa(t),t.flags|=1,Jt(e,t,o,p),t.child)}function Js(e,t,o,a,p){if(Tt(o)){var g=!0;sr(t)}else g=!1;if(pt(t,p),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),cs(t,o,a),wa(t,o,a,p),a=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var V=E.context,se=o.contextType;typeof se=="object"&&se!==null?se=vt(se):(se=Tt(o)?jn:St.current,se=yn(t,se));var ge=o.getDerivedStateFromProps,Fe=typeof ge=="function"||typeof E.getSnapshotBeforeUpdate=="function";Fe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==a||V!==se)&&fs(t,E,a,se),fr=!1;var Le=t.memoizedState;E.state=Le,xo(t,a,E,p),V=t.memoizedState,U!==a||Le!==V||Et.current||fr?(typeof ge=="function"&&(xa(t,o,ge,a),V=t.memoizedState),(U=fr||us(t,o,U,a,Le,V,se))?(Fe||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=a,t.memoizedState=V),E.props=a,E.state=V,E.context=se,a=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{E=t.stateNode,os(e,t),U=t.memoizedProps,se=t.type===t.elementType?U:Xt(t.type,U),E.props=se,Fe=t.pendingProps,Le=E.context,V=o.contextType,typeof V=="object"&&V!==null?V=vt(V):(V=Tt(o)?jn:St.current,V=yn(t,V));var $e=o.getDerivedStateFromProps;(ge=typeof $e=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Fe||Le!==V)&&fs(t,E,a,V),fr=!1,Le=t.memoizedState,E.state=Le,xo(t,a,E,p);var Te=t.memoizedState;U!==Fe||Le!==Te||Et.current||fr?(typeof $e=="function"&&(xa(t,o,$e,a),Te=t.memoizedState),(se=fr||us(t,o,se,a,Le,Te,V)||!1)?(ge||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(a,Te,V),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(a,Te,V)),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=a,t.memoizedState=Te),E.props=a,E.state=Te,E.context=V,a=se):(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),a=!1)}return ba(e,t,o,a,g,p)}function ba(e,t,o,a,p,g){Ys(e,t);var E=(t.flags&128)!==0;if(!a&&!E)return p&&un(t,o,!1),ar(e,t,g);a=t.stateNode,Af.current=t;var U=E&&typeof o.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&E?(t.child=ni(t,e.child,null,g),t.child=ni(t,null,U,g)):Jt(e,t,U,g),t.memoizedState=a.state,p&&un(t,o,!0),t.child}function Ks(e){var t=e.stateNode;t.pendingContext?Zr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zr(e,t.context,!1),Ma(e,t.containerInfo)}function qs(e,t,o,a,p){return ti(),Ta(p),t.flags|=256,Jt(e,t,o,a),t.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Oo(e){return{baseLanes:e,cachePool:null}}function $s(e,t,o){var a=t.pendingProps,p=lt.current,g=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(p&2)!==0),U?(g=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(p|=1),Ke(lt,p&1),e===null)return Ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?ht(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(p=a.children,e=a.fallback,g?(a=t.mode,g=t.child,p={mode:"hidden",children:p},!(a&1)&&g!==null?(g.childLanes=0,g.pendingProps=p):g=ta(p,a,0,null),e=Or(e,a,o,null),g.return=t,e.return=t,g.sibling=e,t.child=g,t.child.memoizedState=Oo(o),t.memoizedState=Do,e):Ba(t,p));if(p=e.memoizedState,p!==null){if(U=p.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,zo(e,t,o,Error(s(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(g=a.fallback,p=t.mode,a=ta({mode:"visible",children:a.children},p,0,null),g=Or(g,p,o,null),g.flags|=2,a.return=t,g.return=t,a.sibling=g,t.child=a,t.mode&1&&ni(t,e.child,null,o),t.child.memoizedState=Oo(o),t.memoizedState=Do,g);if(!(t.mode&1))t=zo(e,t,o,null);else if(ht(U))t=zo(e,t,o,Error(s(419)));else if(a=(o&e.childLanes)!==0,mn||a){if(a=xt,a!==null){switch(o&-o){case 4:g=2;break;case 16:g=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:g=32;break;case 536870912:g=268435456;break;default:g=0}a=g&(a.suspendedLanes|o)?0:g,a!==0&&a!==p.retryLane&&(p.retryLane=a,En(e,a,-1))}al(),t=zo(e,t,o,Error(s(421)))}else Xe(U)?(t.flags|=128,t.child=e.child,t=Zf.bind(null,e),qt(U,t),t=null):(o=p.treeContext,xe&&(vn=On(U),pn=t,ot=!0,Dn=null,Ai=!1,o!==null&&(wn[Sn++]=rr,wn[Sn++]=ir,wn[Sn++]=kr,rr=o.id,ir=o.overflow,kr=t)),t=Ba(t,t.pendingProps.children),t.flags|=4096);return t}return g?(a=tu(e,t,a.children,a.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,a):(o=eu(e,t,a.children,o),t.memoizedState=null,o)}return g?(a=tu(e,t,a.children,a.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,a):(o=eu(e,t,a.children,o),t.memoizedState=null,o)}function Ba(e,t){return t=ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,o,a){var p=e.child;return e=p.sibling,o=gr(p,{mode:"visible",children:o}),!(t.mode&1)&&(o.lanes=a),o.return=t,o.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=o}function tu(e,t,o,a,p){var g=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:o};return!(g&1)&&t.child!==e?(o=t.child,o.childLanes=0,o.pendingProps=U,t.deletions=null):(o=gr(e,U),o.subtreeFlags=e.subtreeFlags&14680064),E!==null?a=gr(E,a):(a=Or(a,g,p,null),a.flags|=2),a.return=t,o.return=t,o.sibling=a,t.child=o,a}function zo(e,t,o,a){return a!==null&&Ta(a),ni(t,e.child,null,o),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nu(e,t,o){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Yt(e.return,t,o)}function Na(e,t,o,a,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=o,g.tailMode=p)}function ru(e,t,o){var a=t.pendingProps,p=a.revealOrder,g=a.tail;if(Jt(e,t,a.children,o),a=lt.current,a&2)a=a&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&&nu(e,o,t);else if(e.tag===19)nu(e,o,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}a&=1}if(Ke(lt,a),!(t.mode&1))t.memoizedState=null;else switch(p){case"forwards":for(o=t.child,p=null;o!==null;)e=o.alternate,e!==null&&Eo(e)===null&&(p=o),o=o.sibling;o=p,o===null?(p=t.child,t.child=null):(p=o.sibling,o.sibling=null),Na(t,!1,p,o,g);break;case"backwards":for(o=null,p=t.child,t.child=null;p!==null;){if(e=p.alternate,e!==null&&Eo(e)===null){t.child=p;break}e=p.sibling,p.sibling=o,o=p,p=e}Na(t,!0,o,null,g);break;case"together":Na(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ar(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),li|=t.lanes,!(o&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,o=gr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=gr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Df(e,t,o){switch(t.tag){case 3:Ks(t),ti();break;case 5:xs(t);break;case 1:Tt(t.type)&&sr(t);break;case 4:Ma(t,t.stateNode.containerInfo);break;case 10:go(t,t.type._context,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ke(lt,lt.current&1),t.flags|=128,null):o&t.child.childLanes?$s(e,t,o):(Ke(lt,lt.current&1),e=ar(e,t,o),e!==null?e.sibling:null);Ke(lt,lt.current&1);break;case 19:if(a=(o&t.childLanes)!==0,e.flags&128){if(a)return ru(e,t,o);t.flags|=128}var p=t.memoizedState;if(p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(lt,lt.current),a)break;return null;case 22:case 23:return t.lanes=0,Xs(e,t,o)}return ar(e,t,o)}function Of(e,t){switch(Ca(t),t.tag){case 1:return Tt(t.type)&&Fn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ii(),Ye(Et),Ye(St),La(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ka(t),null;case 13:if(Ye(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(lt),null;case 4:return ii(),null;case 10:return kt(t.type._context),null;case 22:case 23:return ol(),null;case 24:return null;default:return null}}var Io=!1,Ur=!1,zf=typeof WeakSet=="function"?WeakSet:Set,de=null;function jo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){nn(e,t,a)}else o.current=null}function Ga(e,t,o){try{o()}catch(a){nn(e,t,a)}}var iu=!1;function If(e,t){for(j(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 o=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var a=o.memoizedProps,p=o.memoizedState,g=e.stateNode,E=g.getSnapshotBeforeUpdate(e.elementType===e.type?a:Xt(e.type,a),p);g.__reactInternalSnapshotBeforeUpdate=E}break;case 3:K&&Ln(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(U){nn(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return o=iu,iu=!1,o}function Rr(e,t,o){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var p=a=a.next;do{if((p.tag&e)===e){var g=p.destroy;p.destroy=void 0,g!==void 0&&Ga(t,o,g)}p=p.next}while(p!==a)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==t)}}function Wa(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=ae(o);break;default:e=o}typeof t=="function"?t(e):t.current=e}}function ou(e,t,o){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(_r,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 a=e=e.next;do{var p=a,g=p.destroy;p=p.tag,g!==void 0&&(p&2||p&4)&&Ga(t,o,g),a=a.next}while(a!==e)}break;case 1:if(jo(t,o),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){nn(t,o,E)}break;case 5:jo(t,o);break;case 4:K?fu(e,t,o):$&&$&&(t=t.stateNode.containerInfo,o=Un(t),tt(t,o))}}function au(e,t,o){for(var a=t;;)if(ou(e,a,o),a.child===null||K&&a.tag===4){if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}else a.child.return=a,a=a.child}function lu(e){var t=e.alternate;t!==null&&(e.alternate=null,lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ke(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 su(e){return e.tag===5||e.tag===3||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||su(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 cu(e){if(K){e:{for(var t=e.return;t!==null;){if(su(t))break e;t=t.return}throw Error(s(160))}var o=t;switch(o.tag){case 5:t=o.stateNode,o.flags&32&&(Je(t),o.flags&=-33),o=uu(e),Va(e,o,t);break;case 3:case 4:t=o.stateNode.containerInfo,o=uu(e),Ha(e,o,t);break;default:throw Error(s(161))}}}function Ha(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?be(o,e,t):ze(o,e);else if(a!==4&&(e=e.child,e!==null))for(Ha(e,t,o),e=e.sibling;e!==null;)Ha(e,t,o),e=e.sibling}function Va(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?qe(o,e,t):Me(o,e);else if(a!==4&&(e=e.child,e!==null))for(Va(e,t,o),e=e.sibling;e!==null;)Va(e,t,o),e=e.sibling}function fu(e,t,o){for(var a=t,p=!1,g,E;;){if(!p){p=a.return;e:for(;;){if(p===null)throw Error(s(160));switch(g=p.stateNode,p.tag){case 5:E=!1;break e;case 3:g=g.containerInfo,E=!0;break e;case 4:g=g.containerInfo,E=!0;break e}p=p.return}p=!0}if(a.tag===5||a.tag===6)au(e,a,o),E?Qe(g,a.stateNode):Ue(g,a.stateNode);else if(a.tag===18)E?co(g,a.stateNode):ga(g,a.stateNode);else if(a.tag===4){if(a.child!==null){g=a.stateNode.containerInfo,E=!0,a.child.return=a,a=a.child;continue}}else if(ou(e,a,o),a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return,a.tag===4&&(p=!1)}a.sibling.return=a.return,a=a.sibling}}function Za(e,t){if(K){switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Vi(3,t),Rr(5,t,t.return);return;case 1:return;case 5:var o=t.stateNode;if(o!=null){var a=t.memoizedProps;e=e!==null?e.memoizedProps:a;var p=t.type,g=t.updateQueue;t.updateQueue=null,g!==null&&De(o,g,p,e,a,t)}return;case 6:if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,He(t.stateNode,e!==null?e.memoizedProps:o,o);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 17:return}throw Error(s(163))}switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Vi(3,t),Rr(5,t,t.return);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if($){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,tt(t.containerInfo,t.pendingChildren);break e}throw Error(s(163))}}function bo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new zf),t.forEach(function(a){var p=Qf.bind(null,e,a);o.has(a)||(o.add(a),a.then(p,p))})}}function jf(e,t){for(de=t;de!==null;){t=de;var o=t.deletions;if(o!==null)for(var a=0;a";case No:return":has("+(Ya(e)||"")+")";case Go:return'[role="'+e.value+'"]';case Ho:return'"'+e.value+'"';case Wo:return'[data-testname="'+e.value+'"]';default:throw Error(s(365))}}function mu(e,t){var o=[];e=[e,0];for(var a=0;ap&&(p=E),a&=~g}if(a=p,a=at()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Bf(a/1960))-a,10e?16:e,pr===null)var a=!1;else{if(e=pr,pr=null,Yo=0,Be&6)throw Error(s(331));var p=Be;for(Be|=4,de=e.current;de!==null;){var g=de,E=g.child;if(de.flags&16){var U=g.deletions;if(U!==null){for(var V=0;Vat()-$a?Fr(e,0):qa|=o),tn(e,t)}function Tu(e,t){t===0&&(e.mode&1?(t=qn,qn<<=1,!(qn&130023424)&&(qn=4194304)):t=1);var o=Kt();e=qo(e,t),e!==null&&(bn(e,t,o),tn(e,o))}function Zf(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Tu(e,o)}function Qf(e,t){var o=0;switch(e.tag){case 13:var a=e.stateNode,p=e.memoizedState;p!==null&&(o=p.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(s(314))}a!==null&&a.delete(t),Tu(e,o)}var Mu;Mu=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)mn=!0;else{if(!(e.lanes&o)&&!(t.flags&128))return mn=!1,Df(e,t,o);mn=!!(e.flags&131072)}else mn=!1,ot&&t.flags&1048576&&ds(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var p=yn(t,St.current);pt(t,o),p=Ra(null,t,a,e,p,o);var g=Fa();return t.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(a)?(g=!0,sr(t)):g=!1,t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,ya(t),p.updater=wo,t.stateNode=p,p._reactInternals=t,wa(t,a,e,o),t=ba(null,t,a,!0,g,o)):(t.tag=0,ot&&g&&Sa(t),Jt(null,t,p,o),t=t.child),t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,p=a._init,a=p(a._payload),t.type=a,p=t.tag=Yf(a),e=Xt(a,e),p){case 0:t=ja(null,t,a,e,o);break e;case 1:t=Js(null,t,a,e,o);break e;case 11:t=Vs(null,t,a,e,o);break e;case 14:t=Zs(null,t,a,Xt(a.type,e),o);break e}throw Error(s(306,a,""))}return t;case 0:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Xt(a,p),ja(e,t,a,p,o);case 1:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Xt(a,p),Js(e,t,a,p,o);case 3:e:{if(Ks(t),e===null)throw Error(s(387));a=t.pendingProps,g=t.memoizedState,p=g.element,os(e,t),xo(t,a,null,o);var E=t.memoizedState;if(a=E.element,xe&&g.isDehydrated)if(g={element:a,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=g,t.memoizedState=g,t.flags&256){p=Error(s(423)),t=qs(e,t,a,o,p);break e}else if(a!==p){p=Error(s(424)),t=qs(e,t,a,o,p);break e}else for(xe&&(vn=Rt(t.stateNode.containerInfo),pn=t,ot=!0,Dn=null,Ai=!1),o=ys(t,null,a,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ti(),a===p){t=ar(e,t,o);break e}Jt(e,t,a,o)}t=t.child}return t;case 5:return xs(t),e===null&&Ea(t),a=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,H(a,p)?E=null:g!==null&&H(a,g)&&(t.flags|=32),Ys(e,t),Jt(e,t,E,o),t.child;case 6:return e===null&&Ea(t),null;case 13:return $s(e,t,o);case 4:return Ma(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ni(t,null,a,o):Jt(e,t,a,o),t.child;case 11:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Xt(a,p),Vs(e,t,a,p,o);case 7:return Jt(e,t,t.pendingProps,o),t.child;case 8:return Jt(e,t,t.pendingProps.children,o),t.child;case 12:return Jt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(a=t.type._context,p=t.pendingProps,g=t.memoizedProps,E=p.value,go(t,a,E),g!==null)if(dn(g.value,E)){if(g.children===p.children&&!Et.current){t=ar(e,t,o);break e}}else for(g=t.child,g!==null&&(g.return=t);g!==null;){var U=g.dependencies;if(U!==null){E=g.child;for(var V=U.firstContext;V!==null;){if(V.context===a){if(g.tag===1){V=nr(-1,o&-o),V.tag=2;var se=g.updateQueue;if(se!==null){se=se.shared;var ge=se.pending;ge===null?V.next=V:(V.next=ge.next,ge.next=V),se.pending=V}}g.lanes|=o,V=g.alternate,V!==null&&(V.lanes|=o),Yt(g.return,o,t),U.lanes|=o;break}V=V.next}}else if(g.tag===10)E=g.type===t.type?null:g.child;else if(g.tag===18){if(E=g.return,E===null)throw Error(s(341));E.lanes|=o,U=E.alternate,U!==null&&(U.lanes|=o),Yt(E,o,t),E=g.sibling}else E=g.child;if(E!==null)E.return=g;else for(E=g;E!==null;){if(E===t){E=null;break}if(g=E.sibling,g!==null){g.return=E.return,E=g;break}E=E.return}g=E}Jt(e,t,p.children,o),t=t.child}return t;case 9:return p=t.type,a=t.pendingProps.children,pt(t,o),p=vt(p),a=a(p),t.flags|=1,Jt(e,t,a,o),t.child;case 14:return a=t.type,p=Xt(a,t.pendingProps),p=Xt(a.type,p),Zs(e,t,a,p,o);case 15:return Qs(e,t,t.type,t.pendingProps,o);case 17:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Xt(a,p),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Tt(a)?(e=!0,sr(t)):e=!1,pt(t,o),cs(t,a,p),wa(t,a,p,o),ba(null,t,a,!0,e,o);case 19:return ru(e,t,o);case 22:return Xs(e,t,o)}throw Error(s(156,t.tag))};function ku(e,t){return tr(e,t)}function Xf(e,t,o,a){this.tag=e,this.key=o,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(e,t,o,a){return new Xf(e,t,o,a)}function ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yf(e){if(typeof e=="function")return ll(e)?1:0;if(e!=null){if(e=e.$$typeof,e===T)return 11;if(e===w)return 14}return 2}function gr(e,t){var o=e.alternate;return o===null?(o=Tn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ea(e,t,o,a,p,g){var E=2;if(a=e,typeof e=="function")ll(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case d:return Or(o.children,p,g,t);case m:E=8,p|=8;break;case y:return e=Tn(12,o,t,p|2),e.elementType=y,e.lanes=g,e;case S:return e=Tn(13,o,t,p),e.elementType=S,e.lanes=g,e;case _:return e=Tn(19,o,t,p),e.elementType=_,e.lanes=g,e;case D:return ta(o,p,g,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case C:E=9;break e;case T:E=11;break e;case w:E=14;break e;case M:E=16,a=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tn(E,o,t,p),t.elementType=e,t.type=a,t.lanes=g,t}function Or(e,t,o,a){return e=Tn(7,e,a,t),e.lanes=o,e}function ta(e,t,o,a){return e=Tn(22,e,a,t),e.elementType=D,e.lanes=o,e.stateNode={},e}function sl(e,t,o){return e=Tn(6,e,null,t),e.lanes=o,e}function ul(e,t,o){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jf(e,t,o,a,p){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=Yr(0),this.expirationTimes=Yr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yr(0),this.identifierPrefix=a,this.onRecoverableError=p,xe&&(this.mutableSourceEagerHydrationData=null)}function Pu(e,t,o,a,p,g,E,U,V){return e=new Jf(e,t,o,U,V),t===1?(t=1,g===!0&&(t|=8)):t=0,g=Tn(3,null,null,t),e.current=g,g.stateNode=e,g.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null},ya(g),e}function Lu(e){if(!e)return sn;e=e._reactInternals;e:{if(J(e)!==e||e.tag!==1)throw Error(s(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(s(171))}if(e.tag===1){var o=e.type;if(Tt(o))return Qr(e,o,t)}return t}function Uu(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=O(t),e===null?null:e.stateNode}function Ru(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o=se&&g>=Fe&&p<=ge&&E<=Le){e.splice(t,1);break}else if(a!==se||o.width!==V.width||LeE){if(!(g!==Fe||o.height!==V.height||gep)){se>a&&(V.width+=se-a,V.x=a),geg&&(V.height+=Fe-g,V.y=g),Leo&&(o=E)),E ")+` +`+g.stack}return{value:e,source:t,stack:p}}function Ia(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var Ff=typeof WeakMap=="function"?WeakMap:Map;function js(e,t,o){o=nr(-1,o),o.tag=3,o.payload={element:null};var l=t.value;return o.callback=function(){Qo||(Qo=!0,tl=l),Ia(e,t)},o}function bs(e,t,o){o=nr(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var p=t.value;o.payload=function(){return l(p)},o.callback=function(){Ia(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(o.callback=function(){Ia(e,t),typeof l!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var E=t.stack;this.componentDidCatch(t.value,{componentStack:E!==null?E:""})}),o}function Bs(e,t,o){var l=e.pingCache;if(l===null){l=e.pingCache=new Ff;var p=new Set;l.set(t,p)}else p=l.get(t),p===void 0&&(p=new Set,l.set(t,p));p.has(o)||(p.add(o),e=Zf.bind(null,e,t,o),t.then(e,e))}function Ns(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gs(e,t,o,l,p){return e.mode&1?(e.flags|=65536,e.lanes=p,e):(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=nr(-1,1),t.tag=2,dr(o,t))),o.lanes|=1),e)}function Hn(e){e.flags|=4}function Ws(e,t){if(e!==null&&e.child===t.child)return!0;if(t.flags&16)return!1;for(e=t.child;e!==null;){if(e.flags&12854||e.subtreeFlags&12854)return!1;e=e.sibling}return!0}var Gi,Wi,Fo,Ao;if(K)Gi=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)I(e,o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Wi=function(){},Fo=function(e,t,o,l,p){if(e=e.memoizedProps,e!==l){var g=t.stateNode,E=Gn(Cn.current);o=Y(g,o,e,l,p,E),(t.updateQueue=o)&&Hn(t)}},Ao=function(e,t,o,l){o!==l&&Hn(t)};else if($){Gi=function(e,t,o,l){for(var p=t.child;p!==null;){if(p.tag===5){var g=p.stateNode;o&&l&&(g=lr(g,p.type,p.memoizedProps,p)),I(e,g)}else if(p.tag===6)g=p.stateNode,o&&l&&(g=rt(g,p.memoizedProps,p)),I(e,g);else if(p.tag!==4){if(p.tag===22&&p.memoizedState!==null)g=p.child,g!==null&&(g.return=p),Gi(e,p,!0,!0);else if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)break;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}};var Hs=function(e,t,o,l){for(var p=t.child;p!==null;){if(p.tag===5){var g=p.stateNode;o&&l&&(g=lr(g,p.type,p.memoizedProps,p)),Wt(e,g)}else if(p.tag===6)g=p.stateNode,o&&l&&(g=rt(g,p.memoizedProps,p)),Wt(e,g);else if(p.tag!==4){if(p.tag===22&&p.memoizedState!==null)g=p.child,g!==null&&(g.return=p),Hs(e,p,!0,!0);else if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)break;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}};Wi=function(e,t){var o=t.stateNode;if(!Ws(e,t)){e=o.containerInfo;var l=Un(e);Hs(l,t,!1,!1),o.pendingChildren=l,Hn(t),Ht(e,l)}},Fo=function(e,t,o,l,p){var g=e.stateNode,E=e.memoizedProps;if((e=Ws(e,t))&&E===l)t.stateNode=g;else{var U=t.stateNode,V=Gn(Cn.current),se=null;E!==l&&(se=Y(U,o,E,l,p,V)),e&&se===null?t.stateNode=g:(g=Yn(g,se,o,E,l,t,e,U),Q(g,o,l,p,V)&&Hn(t),t.stateNode=g,e?Hn(t):Gi(g,t,!1,!1))}},Ao=function(e,t,o,l){o!==l?(e=Gn(ii.current),o=Gn(Cn.current),t.stateNode=re(l,e,o,t),Hn(t)):t.stateNode=e.stateNode}}else Wi=function(){},Fo=function(){},Ao=function(){};function Hi(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(t)for(var p=e.child;p!==null;)o|=p.lanes|p.childLanes,l|=p.subtreeFlags&14680064,l|=p.flags&14680064,p.return=e,p=p.sibling;else for(p=e.child;p!==null;)o|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=e,p=p.sibling;return e.subtreeFlags|=l,e.childLanes=o,t}function Af(e,t,o){var l=t.pendingProps;switch(Ca(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return Tt(t.type)&&Fn(),jt(t),null;case 3:return l=t.stateNode,oi(),Ye(Et),Ye(St),La(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Di(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(il(Dn),Dn=null))),Wi(e,t),jt(t),null;case 5:ka(t),o=Gn(ii.current);var p=t.type;if(e!==null&&t.stateNode!=null)Fo(e,t,p,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(s(166));return jt(t),null}if(e=Gn(Cn.current),Di(t)){if(!xe)throw Error(s(175));e=an(t.stateNode,t.type,t.memoizedProps,o,e,t,!Ai),t.updateQueue=e,e!==null&&Hn(t)}else{var g=P(p,l,o,e,t);Gi(g,t,!1,!1),t.stateNode=g,Q(g,p,l,o,e)&&Hn(t)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jt(t),null;case 6:if(e&&t.stateNode!=null)Ao(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Gn(ii.current),o=Gn(Cn.current),Di(t)){if(!xe)throw Error(s(176));if(e=t.stateNode,l=t.memoizedProps,(o=Jn(e,l,t,!Ai))&&(p=pn,p!==null))switch(g=(p.mode&1)!==0,p.tag){case 3:_i(p.stateNode.containerInfo,e,l,g);break;case 5:Ei(p.type,p.memoizedProps,p.stateNode,e,l,g)}o&&Hn(t)}else t.stateNode=re(l,e,o,t)}return jt(t),null;case 13:if(Ye(lt),l=t.memoizedState,ot&&vn!==null&&t.mode&1&&!(t.flags&128)){for(e=vn;e;)e=ft(e);return ni(),t.flags|=98560,t}if(l!==null&&l.dehydrated!==null){if(l=Di(t),e===null){if(!l)throw Error(s(318));if(!xe)throw Error(s(344));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ma(e,t)}else ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return jt(t),null}return Dn!==null&&(il(Dn),Dn=null),t.flags&128?(t.lanes=o,t):(l=l!==null,o=!1,e===null?Di(t):o=e.memoizedState!==null,l&&!o&&(t.child.flags|=8192,t.mode&1&&(e===null||lt.current&1?Ct===0&&(Ct=3):al())),t.updateQueue!==null&&(t.flags|=4),jt(t),null);case 4:return oi(),Wi(e,t),e===null&&ce(t.stateNode.containerInfo),jt(t),null;case 10:return kt(t.type._context),jt(t),null;case 17:return Tt(t.type)&&Fn(),jt(t),null;case 19:if(Ye(lt),p=t.memoizedState,p===null)return jt(t),null;if(l=(t.flags&128)!==0,g=p.rendering,g===null)if(l)Hi(p,!1);else{if(Ct!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(g=Eo(e),g!==null){for(t.flags|=128,Hi(p,!1),e=g.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=o,l=t.child;l!==null;)o=l,p=e,o.flags&=14680066,g=o.alternate,g===null?(o.childLanes=0,o.lanes=p,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=g.childLanes,o.lanes=g.lanes,o.child=g.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=g.memoizedProps,o.memoizedState=g.memoizedState,o.updateQueue=g.updateQueue,o.type=g.type,p=g.dependencies,o.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),l=l.sibling;return Ke(lt,lt.current&1|2),t.child}e=e.sibling}p.tail!==null&&at()>el&&(t.flags|=128,l=!0,Hi(p,!1),t.lanes=4194304)}else{if(!l)if(e=Eo(g),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),Hi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!ot)return jt(t),null}else 2*at()-p.renderingStartTime>el&&o!==1073741824&&(t.flags|=128,l=!0,Hi(p,!1),t.lanes=4194304);p.isBackwards?(g.sibling=t.child,t.child=g):(e=p.last,e!==null?e.sibling=g:t.child=g,p.last=g)}return p.tail!==null?(t=p.tail,p.rendering=t,p.tail=t.sibling,p.renderingStartTime=at(),t.sibling=null,e=lt.current,Ke(lt,l?e&1|2:e&1),t):(jt(t),null);case 22:case 23:return ol(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?gn&1073741824&&(jt(t),K&&t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}var Df=f.ReactCurrentOwner,mn=!1;function Jt(e,t,o,l){t.child=e===null?ys(t,null,o,l):ri(t,e.child,o,l)}function Vs(e,t,o,l,p){o=o.render;var g=t.ref;return pt(t,p),l=Ra(e,t,o,l,g,p),o=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&o&&Sa(t),t.flags|=1,Jt(e,t,l,p),t.child)}function Zs(e,t,o,l,p){if(e===null){var g=o.type;return typeof g=="function"&&!ll(g)&&g.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=g,Qs(e,t,g,l,p)):(e=ea(o.type,null,l,t,t.mode,p),e.ref=t.ref,e.return=t,t.child=e)}if(g=e.child,!(e.lanes&p)){var E=g.memoizedProps;if(o=o.compare,o=o!==null?o:Tr,o(E,l)&&e.ref===t.ref)return ar(e,t,p)}return t.flags|=1,e=gr(g,l),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,o,l,p){if(e!==null&&Tr(e.memoizedProps,l)&&e.ref===t.ref)if(mn=!1,(e.lanes&p)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,ar(e,t,p);return ja(e,t,o,l,p)}function Xs(e,t,o){var l=t.pendingProps,p=l.children,g=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},Ke(li,gn),gn|=o;else if(o&1073741824)t.memoizedState={baseLanes:0,cachePool:null},l=g!==null?g.baseLanes:o,Ke(li,gn),gn|=l;else return e=g!==null?g.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,Ke(li,gn),gn|=e,null;else g!==null?(l=g.baseLanes|o,t.memoizedState=null):l=o,Ke(li,gn),gn|=l;return Jt(e,t,p,o),t.child}function Ys(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function ja(e,t,o,l,p){var g=Tt(o)?jn:St.current;return g=yn(t,g),pt(t,p),o=Ra(e,t,o,l,g,p),l=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&l&&Sa(t),t.flags|=1,Jt(e,t,o,p),t.child)}function Js(e,t,o,l,p){if(Tt(o)){var g=!0;sr(t)}else g=!1;if(pt(t,p),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),cs(t,o,l),wa(t,o,l,p),l=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var V=E.context,se=o.contextType;typeof se=="object"&&se!==null?se=vt(se):(se=Tt(o)?jn:St.current,se=yn(t,se));var ge=o.getDerivedStateFromProps,Fe=typeof ge=="function"||typeof E.getSnapshotBeforeUpdate=="function";Fe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==l||V!==se)&&fs(t,E,l,se),fr=!1;var Le=t.memoizedState;E.state=Le,xo(t,l,E,p),V=t.memoizedState,U!==l||Le!==V||Et.current||fr?(typeof ge=="function"&&(xa(t,o,ge,l),V=t.memoizedState),(U=fr||us(t,o,U,l,Le,V,se))?(Fe||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=l,t.memoizedState=V),E.props=l,E.state=V,E.context=se,l=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{E=t.stateNode,os(e,t),U=t.memoizedProps,se=t.type===t.elementType?U:Xt(t.type,U),E.props=se,Fe=t.pendingProps,Le=E.context,V=o.contextType,typeof V=="object"&&V!==null?V=vt(V):(V=Tt(o)?jn:St.current,V=yn(t,V));var $e=o.getDerivedStateFromProps;(ge=typeof $e=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Fe||Le!==V)&&fs(t,E,l,V),fr=!1,Le=t.memoizedState,E.state=Le,xo(t,l,E,p);var Te=t.memoizedState;U!==Fe||Le!==Te||Et.current||fr?(typeof $e=="function"&&(xa(t,o,$e,l),Te=t.memoizedState),(se=fr||us(t,o,se,l,Le,Te,V)||!1)?(ge||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(l,Te,V),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(l,Te,V)),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=l,t.memoizedState=Te),E.props=l,E.state=Te,E.context=V,l=se):(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),l=!1)}return ba(e,t,o,l,g,p)}function ba(e,t,o,l,p,g){Ys(e,t);var E=(t.flags&128)!==0;if(!l&&!E)return p&&un(t,o,!1),ar(e,t,g);l=t.stateNode,Df.current=t;var U=E&&typeof o.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&E?(t.child=ri(t,e.child,null,g),t.child=ri(t,null,U,g)):Jt(e,t,U,g),t.memoizedState=l.state,p&&un(t,o,!0),t.child}function Ks(e){var t=e.stateNode;t.pendingContext?Qr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qr(e,t.context,!1),Ma(e,t.containerInfo)}function qs(e,t,o,l,p){return ni(),Ta(p),t.flags|=256,Jt(e,t,o,l),t.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Oo(e){return{baseLanes:e,cachePool:null}}function $s(e,t,o){var l=t.pendingProps,p=lt.current,g=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(p&2)!==0),U?(g=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(p|=1),Ke(lt,p&1),e===null)return Ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?ht(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(p=l.children,e=l.fallback,g?(l=t.mode,g=t.child,p={mode:"hidden",children:p},!(l&1)&&g!==null?(g.childLanes=0,g.pendingProps=p):g=ta(p,l,0,null),e=Or(e,l,o,null),g.return=t,e.return=t,g.sibling=e,t.child=g,t.child.memoizedState=Oo(o),t.memoizedState=Do,e):Ba(t,p));if(p=e.memoizedState,p!==null){if(U=p.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,zo(e,t,o,Error(s(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(g=l.fallback,p=t.mode,l=ta({mode:"visible",children:l.children},p,0,null),g=Or(g,p,o,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,t.mode&1&&ri(t,e.child,null,o),t.child.memoizedState=Oo(o),t.memoizedState=Do,g);if(!(t.mode&1))t=zo(e,t,o,null);else if(ht(U))t=zo(e,t,o,Error(s(419)));else if(l=(o&e.childLanes)!==0,mn||l){if(l=xt,l!==null){switch(o&-o){case 4:g=2;break;case 16:g=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:g=32;break;case 536870912:g=268435456;break;default:g=0}l=g&(l.suspendedLanes|o)?0:g,l!==0&&l!==p.retryLane&&(p.retryLane=l,En(e,l,-1))}al(),t=zo(e,t,o,Error(s(421)))}else Xe(U)?(t.flags|=128,t.child=e.child,t=Qf.bind(null,e),qt(U,t),t=null):(o=p.treeContext,xe&&(vn=On(U),pn=t,ot=!0,Dn=null,Ai=!1,o!==null&&(wn[Sn++]=rr,wn[Sn++]=ir,wn[Sn++]=kr,rr=o.id,ir=o.overflow,kr=t)),t=Ba(t,t.pendingProps.children),t.flags|=4096);return t}return g?(l=tu(e,t,l.children,l.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,l):(o=eu(e,t,l.children,o),t.memoizedState=null,o)}return g?(l=tu(e,t,l.children,l.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,l):(o=eu(e,t,l.children,o),t.memoizedState=null,o)}function Ba(e,t){return t=ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,o,l){var p=e.child;return e=p.sibling,o=gr(p,{mode:"visible",children:o}),!(t.mode&1)&&(o.lanes=l),o.return=t,o.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=o}function tu(e,t,o,l,p){var g=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:o};return!(g&1)&&t.child!==e?(o=t.child,o.childLanes=0,o.pendingProps=U,t.deletions=null):(o=gr(e,U),o.subtreeFlags=e.subtreeFlags&14680064),E!==null?l=gr(E,l):(l=Or(l,g,p,null),l.flags|=2),l.return=t,o.return=t,o.sibling=l,t.child=o,l}function zo(e,t,o,l){return l!==null&&Ta(l),ri(t,e.child,null,o),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nu(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yt(e.return,t,o)}function Na(e,t,o,l,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=o,g.tailMode=p)}function ru(e,t,o){var l=t.pendingProps,p=l.revealOrder,g=l.tail;if(Jt(e,t,l.children,o),l=lt.current,l&2)l=l&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&&nu(e,o,t);else if(e.tag===19)nu(e,o,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}l&=1}if(Ke(lt,l),!(t.mode&1))t.memoizedState=null;else switch(p){case"forwards":for(o=t.child,p=null;o!==null;)e=o.alternate,e!==null&&Eo(e)===null&&(p=o),o=o.sibling;o=p,o===null?(p=t.child,t.child=null):(p=o.sibling,o.sibling=null),Na(t,!1,p,o,g);break;case"backwards":for(o=null,p=t.child,t.child=null;p!==null;){if(e=p.alternate,e!==null&&Eo(e)===null){t.child=p;break}e=p.sibling,p.sibling=o,o=p,p=e}Na(t,!0,o,null,g);break;case"together":Na(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ar(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),si|=t.lanes,!(o&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,o=gr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=gr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Of(e,t,o){switch(t.tag){case 3:Ks(t),ni();break;case 5:xs(t);break;case 1:Tt(t.type)&&sr(t);break;case 4:Ma(t,t.stateNode.containerInfo);break;case 10:go(t,t.type._context,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ke(lt,lt.current&1),t.flags|=128,null):o&t.child.childLanes?$s(e,t,o):(Ke(lt,lt.current&1),e=ar(e,t,o),e!==null?e.sibling:null);Ke(lt,lt.current&1);break;case 19:if(l=(o&t.childLanes)!==0,e.flags&128){if(l)return ru(e,t,o);t.flags|=128}var p=t.memoizedState;if(p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(lt,lt.current),l)break;return null;case 22:case 23:return t.lanes=0,Xs(e,t,o)}return ar(e,t,o)}function zf(e,t){switch(Ca(t),t.tag){case 1:return Tt(t.type)&&Fn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oi(),Ye(Et),Ye(St),La(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ka(t),null;case 13:if(Ye(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(lt),null;case 4:return oi(),null;case 10:return kt(t.type._context),null;case 22:case 23:return ol(),null;case 24:return null;default:return null}}var Io=!1,Ur=!1,If=typeof WeakSet=="function"?WeakSet:Set,de=null;function jo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){nn(e,t,l)}else o.current=null}function Ga(e,t,o){try{o()}catch(l){nn(e,t,l)}}var iu=!1;function jf(e,t){for(j(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 o=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var l=o.memoizedProps,p=o.memoizedState,g=e.stateNode,E=g.getSnapshotBeforeUpdate(e.elementType===e.type?l:Xt(e.type,l),p);g.__reactInternalSnapshotBeforeUpdate=E}break;case 3:K&&Ln(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(U){nn(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return o=iu,iu=!1,o}function Rr(e,t,o){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&e)===e){var g=p.destroy;p.destroy=void 0,g!==void 0&&Ga(t,o,g)}p=p.next}while(p!==l)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==t)}}function Wa(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=ae(o);break;default:e=o}typeof t=="function"?t(e):t.current=e}}function ou(e,t,o){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(_r,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 l=e=e.next;do{var p=l,g=p.destroy;p=p.tag,g!==void 0&&(p&2||p&4)&&Ga(t,o,g),l=l.next}while(l!==e)}break;case 1:if(jo(t,o),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){nn(t,o,E)}break;case 5:jo(t,o);break;case 4:K?fu(e,t,o):$&&$&&(t=t.stateNode.containerInfo,o=Un(t),tt(t,o))}}function au(e,t,o){for(var l=t;;)if(ou(e,l,o),l.child===null||K&&l.tag===4){if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return;l=l.return}l.sibling.return=l.return,l=l.sibling}else l.child.return=l,l=l.child}function lu(e){var t=e.alternate;t!==null&&(e.alternate=null,lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ke(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 su(e){return e.tag===5||e.tag===3||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||su(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 cu(e){if(K){e:{for(var t=e.return;t!==null;){if(su(t))break e;t=t.return}throw Error(s(160))}var o=t;switch(o.tag){case 5:t=o.stateNode,o.flags&32&&(Je(t),o.flags&=-33),o=uu(e),Va(e,o,t);break;case 3:case 4:t=o.stateNode.containerInfo,o=uu(e),Ha(e,o,t);break;default:throw Error(s(161))}}}function Ha(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?be(o,e,t):ze(o,e);else if(l!==4&&(e=e.child,e!==null))for(Ha(e,t,o),e=e.sibling;e!==null;)Ha(e,t,o),e=e.sibling}function Va(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?qe(o,e,t):Me(o,e);else if(l!==4&&(e=e.child,e!==null))for(Va(e,t,o),e=e.sibling;e!==null;)Va(e,t,o),e=e.sibling}function fu(e,t,o){for(var l=t,p=!1,g,E;;){if(!p){p=l.return;e:for(;;){if(p===null)throw Error(s(160));switch(g=p.stateNode,p.tag){case 5:E=!1;break e;case 3:g=g.containerInfo,E=!0;break e;case 4:g=g.containerInfo,E=!0;break e}p=p.return}p=!0}if(l.tag===5||l.tag===6)au(e,l,o),E?Qe(g,l.stateNode):Ue(g,l.stateNode);else if(l.tag===18)E?co(g,l.stateNode):ga(g,l.stateNode);else if(l.tag===4){if(l.child!==null){g=l.stateNode.containerInfo,E=!0,l.child.return=l,l=l.child;continue}}else if(ou(e,l,o),l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return;l=l.return,l.tag===4&&(p=!1)}l.sibling.return=l.return,l=l.sibling}}function Za(e,t){if(K){switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Vi(3,t),Rr(5,t,t.return);return;case 1:return;case 5:var o=t.stateNode;if(o!=null){var l=t.memoizedProps;e=e!==null?e.memoizedProps:l;var p=t.type,g=t.updateQueue;t.updateQueue=null,g!==null&&De(o,g,p,e,l,t)}return;case 6:if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,He(t.stateNode,e!==null?e.memoizedProps:o,o);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 17:return}throw Error(s(163))}switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Vi(3,t),Rr(5,t,t.return);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if($){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,tt(t.containerInfo,t.pendingChildren);break e}throw Error(s(163))}}function bo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new If),t.forEach(function(l){var p=Xf.bind(null,e,l);o.has(l)||(o.add(l),l.then(p,p))})}}function bf(e,t){for(de=t;de!==null;){t=de;var o=t.deletions;if(o!==null)for(var l=0;l";case No:return":has("+(Ya(e)||"")+")";case Go:return'[role="'+e.value+'"]';case Ho:return'"'+e.value+'"';case Wo:return'[data-testname="'+e.value+'"]';default:throw Error(s(365))}}function mu(e,t){var o=[];e=[e,0];for(var l=0;lp&&(p=E),l&=~g}if(l=p,l=at()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Nf(l/1960))-l,10e?16:e,pr===null)var l=!1;else{if(e=pr,pr=null,Yo=0,Be&6)throw Error(s(331));var p=Be;for(Be|=4,de=e.current;de!==null;){var g=de,E=g.child;if(de.flags&16){var U=g.deletions;if(U!==null){for(var V=0;Vat()-$a?Fr(e,0):qa|=o),tn(e,t)}function Tu(e,t){t===0&&(e.mode&1?(t=qn,qn<<=1,!(qn&130023424)&&(qn=4194304)):t=1);var o=Kt();e=qo(e,t),e!==null&&(bn(e,t,o),tn(e,o))}function Qf(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Tu(e,o)}function Xf(e,t){var o=0;switch(e.tag){case 13:var l=e.stateNode,p=e.memoizedState;p!==null&&(o=p.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(t),Tu(e,o)}var Mu;Mu=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)mn=!0;else{if(!(e.lanes&o)&&!(t.flags&128))return mn=!1,Of(e,t,o);mn=!!(e.flags&131072)}else mn=!1,ot&&t.flags&1048576&&ds(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var p=yn(t,St.current);pt(t,o),p=Ra(null,t,l,e,p,o);var g=Fa();return t.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(l)?(g=!0,sr(t)):g=!1,t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,ya(t),p.updater=wo,t.stateNode=p,p._reactInternals=t,wa(t,l,e,o),t=ba(null,t,l,!0,g,o)):(t.tag=0,ot&&g&&Sa(t),Jt(null,t,p,o),t=t.child),t;case 16:l=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,p=l._init,l=p(l._payload),t.type=l,p=t.tag=Jf(l),e=Xt(l,e),p){case 0:t=ja(null,t,l,e,o);break e;case 1:t=Js(null,t,l,e,o);break e;case 11:t=Vs(null,t,l,e,o);break e;case 14:t=Zs(null,t,l,Xt(l.type,e),o);break e}throw Error(s(306,l,""))}return t;case 0:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),ja(e,t,l,p,o);case 1:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),Js(e,t,l,p,o);case 3:e:{if(Ks(t),e===null)throw Error(s(387));l=t.pendingProps,g=t.memoizedState,p=g.element,os(e,t),xo(t,l,null,o);var E=t.memoizedState;if(l=E.element,xe&&g.isDehydrated)if(g={element:l,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=g,t.memoizedState=g,t.flags&256){p=Error(s(423)),t=qs(e,t,l,o,p);break e}else if(l!==p){p=Error(s(424)),t=qs(e,t,l,o,p);break e}else for(xe&&(vn=Rt(t.stateNode.containerInfo),pn=t,ot=!0,Dn=null,Ai=!1),o=ys(t,null,l,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ni(),l===p){t=ar(e,t,o);break e}Jt(e,t,l,o)}t=t.child}return t;case 5:return xs(t),e===null&&Ea(t),l=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,H(l,p)?E=null:g!==null&&H(l,g)&&(t.flags|=32),Ys(e,t),Jt(e,t,E,o),t.child;case 6:return e===null&&Ea(t),null;case 13:return $s(e,t,o);case 4:return Ma(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ri(t,null,l,o):Jt(e,t,l,o),t.child;case 11:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),Vs(e,t,l,p,o);case 7:return Jt(e,t,t.pendingProps,o),t.child;case 8:return Jt(e,t,t.pendingProps.children,o),t.child;case 12:return Jt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(l=t.type._context,p=t.pendingProps,g=t.memoizedProps,E=p.value,go(t,l,E),g!==null)if(dn(g.value,E)){if(g.children===p.children&&!Et.current){t=ar(e,t,o);break e}}else for(g=t.child,g!==null&&(g.return=t);g!==null;){var U=g.dependencies;if(U!==null){E=g.child;for(var V=U.firstContext;V!==null;){if(V.context===l){if(g.tag===1){V=nr(-1,o&-o),V.tag=2;var se=g.updateQueue;if(se!==null){se=se.shared;var ge=se.pending;ge===null?V.next=V:(V.next=ge.next,ge.next=V),se.pending=V}}g.lanes|=o,V=g.alternate,V!==null&&(V.lanes|=o),Yt(g.return,o,t),U.lanes|=o;break}V=V.next}}else if(g.tag===10)E=g.type===t.type?null:g.child;else if(g.tag===18){if(E=g.return,E===null)throw Error(s(341));E.lanes|=o,U=E.alternate,U!==null&&(U.lanes|=o),Yt(E,o,t),E=g.sibling}else E=g.child;if(E!==null)E.return=g;else for(E=g;E!==null;){if(E===t){E=null;break}if(g=E.sibling,g!==null){g.return=E.return,E=g;break}E=E.return}g=E}Jt(e,t,p.children,o),t=t.child}return t;case 9:return p=t.type,l=t.pendingProps.children,pt(t,o),p=vt(p),l=l(p),t.flags|=1,Jt(e,t,l,o),t.child;case 14:return l=t.type,p=Xt(l,t.pendingProps),p=Xt(l.type,p),Zs(e,t,l,p,o);case 15:return Qs(e,t,t.type,t.pendingProps,o);case 17:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Tt(l)?(e=!0,sr(t)):e=!1,pt(t,o),cs(t,l,p),wa(t,l,p,o),ba(null,t,l,!0,e,o);case 19:return ru(e,t,o);case 22:return Xs(e,t,o)}throw Error(s(156,t.tag))};function ku(e,t){return tr(e,t)}function Yf(e,t,o,l){this.tag=e,this.key=o,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(e,t,o,l){return new Yf(e,t,o,l)}function ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jf(e){if(typeof e=="function")return ll(e)?1:0;if(e!=null){if(e=e.$$typeof,e===T)return 11;if(e===w)return 14}return 2}function gr(e,t){var o=e.alternate;return o===null?(o=Tn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ea(e,t,o,l,p,g){var E=2;if(l=e,typeof e=="function")ll(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case d:return Or(o.children,p,g,t);case m:E=8,p|=8;break;case y:return e=Tn(12,o,t,p|2),e.elementType=y,e.lanes=g,e;case S:return e=Tn(13,o,t,p),e.elementType=S,e.lanes=g,e;case _:return e=Tn(19,o,t,p),e.elementType=_,e.lanes=g,e;case D:return ta(o,p,g,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case C:E=9;break e;case T:E=11;break e;case w:E=14;break e;case M:E=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tn(E,o,t,p),t.elementType=e,t.type=l,t.lanes=g,t}function Or(e,t,o,l){return e=Tn(7,e,l,t),e.lanes=o,e}function ta(e,t,o,l){return e=Tn(22,e,l,t),e.elementType=D,e.lanes=o,e.stateNode={},e}function sl(e,t,o){return e=Tn(6,e,null,t),e.lanes=o,e}function ul(e,t,o){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kf(e,t,o,l,p){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=Jr(0),this.expirationTimes=Jr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jr(0),this.identifierPrefix=l,this.onRecoverableError=p,xe&&(this.mutableSourceEagerHydrationData=null)}function Pu(e,t,o,l,p,g,E,U,V){return e=new Kf(e,t,o,U,V),t===1?(t=1,g===!0&&(t|=8)):t=0,g=Tn(3,null,null,t),e.current=g,g.stateNode=e,g.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null},ya(g),e}function Lu(e){if(!e)return sn;e=e._reactInternals;e:{if(J(e)!==e||e.tag!==1)throw Error(s(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(s(171))}if(e.tag===1){var o=e.type;if(Tt(o))return Xr(e,o,t)}return t}function Uu(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=O(t),e===null?null:e.stateNode}function Ru(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o=se&&g>=Fe&&p<=ge&&E<=Le){e.splice(t,1);break}else if(l!==se||o.width!==V.width||LeE){if(!(g!==Fe||o.height!==V.height||gep)){se>l&&(V.width+=se-l,V.x=l),geg&&(V.height+=Fe-g,V.y=g),Leo&&(o=E)),E ")+` No matching component was found for: - `)+e.join(" > ")}return null},c.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return ae(e.child.stateNode);default:return e.child.stateNode}},c.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:Kf,findFiberByHostInstance:e.findFiberByHostInstance||qf,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{_r=t.inject(e),fn=t}catch{}e=!!t.checkDCE}}return e},c.isAlreadyRendering=function(){return!1},c.observeVisibleRects=function(e,t,o,a){if(!pe)throw Error(s(363));e=Ja(e,t);var p=Oe(e,o,a).disconnect;return{disconnect:function(){p()}}},c.registerMutableSourceForHydration=function(e,t){var o=t._getVersion;o=o(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)},c.runWithPriority=function(e,t){var o=Ne;try{return Ne=e,t()}finally{Ne=o}},c.shouldError=function(){return null},c.shouldSuspend=function(){return!1},c.updateContainer=function(e,t,o,a){var p=t.current,g=Kt(),E=vr(p);return o=Lu(o),t.context===null?t.context=o:t.pendingContext=o,t=nr(g,E),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),dr(p,t),e=En(p,E,g),e!==null&&yo(e,p,E),E},c};Lc.exports=Id;var jd=Lc.exports;const bd=Cc(jd),Bd=l=>typeof l=="object"&&typeof l.then=="function",jr=[];function Fc(l,n,c=(v,i)=>v===i){if(l===n)return!0;if(!l||!n)return!1;const v=l.length;if(n.length!==v)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,v.lifespan)),r.response;if(!c)throw r.promise}const i={keys:n,equal:v.equal,remove:()=>{const r=jr.indexOf(i);r!==-1&&jr.splice(r,1)},promise:(Bd(l)?l:l(...n)).then(r=>{i.response=r,v.lifespan&&v.lifespan>0&&(i.timeout=setTimeout(i.remove,v.lifespan))}).catch(r=>i.error=r)};if(jr.push(i),!c)throw i.promise}const Nd=(l,n,c)=>Ac(l,n,!1,c),Gd=(l,n,c)=>void Ac(l,n,!0,c),Wd=l=>{if(l===void 0||l.length===0)jr.splice(0,jr.length);else{const n=jr.find(c=>Fc(l,c.keys,c.equal));n&&n.remove()}},Kl={},Hd=l=>void Object.assign(Kl,l);function Vd(l,n){function c(d,{args:m=[],attach:y,...x},C){let T=`${d[0].toUpperCase()}${d.slice(1)}`,S;if(d==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const _=x.object;S=di(_,{type:d,root:C,attach:y,primitive:!0})}else{const _=Kl[T];if(!_)throw new Error(`R3F: ${T} 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(m))throw new Error("R3F: The args prop must be an array!");S=di(new _(...m),{type:d,root:C,attach:y,memoizedProps:{args:m}})}return S.__r3f.attach===void 0&&(S instanceof Ec?S.__r3f.attach="geometry":S instanceof ld&&(S.__r3f.attach="material")),T!=="inject"&&ml(S,x),S}function v(d,m){let y=!1;if(m){var x,C;(x=m.__r3f)!=null&&x.attach?vl(d,m,m.__r3f.attach):m.isObject3D&&d.isObject3D&&(d.add(m),y=!0),y||(C=d.__r3f)==null||C.objects.push(m),m.__r3f||di(m,{}),m.__r3f.parent=d,Ol(m),hi(m)}}function i(d,m,y){let x=!1;if(m){var C,T;if((C=m.__r3f)!=null&&C.attach)vl(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){m.parent=d,m.dispatchEvent({type:"added"});const S=d.children.filter(w=>w!==m),_=S.indexOf(y);d.children=[...S.slice(0,_),m,...S.slice(_)],x=!0}x||(T=d.__r3f)==null||T.objects.push(m),m.__r3f||di(m,{}),m.__r3f.parent=d,Ol(m),hi(m)}}function r(d,m,y=!1){d&&[...d].forEach(x=>s(m,x,y))}function s(d,m,y){if(m){var x,C,T;if(m.__r3f&&(m.__r3f.parent=null),(x=d.__r3f)!=null&&x.objects&&(d.__r3f.objects=d.__r3f.objects.filter(D=>D!==m)),(C=m.__r3f)!=null&&C.attach)Bu(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){var S;d.remove(m),(S=m.__r3f)!=null&&S.root&&e1(m.__r3f.root,m)}const w=(T=m.__r3f)==null?void 0:T.primitive,M=!w&&(y===void 0?m.dispose!==null:y);if(!w){var _;r((_=m.__r3f)==null?void 0:_.objects,m,M),r(m.children,m,M)}if(delete m.__r3f,M&&m.dispose&&m.type!=="Scene"){const D=()=>{try{m.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?Al.unstable_scheduleCallback(Al.unstable_IdlePriority,D):D()}hi(d)}}function f(d,m,y,x){var C;const T=(C=d.__r3f)==null?void 0:C.parent;if(!T)return;const S=c(m,y,d.__r3f.root);if(d.children){for(const _ of d.children)_.__r3f&&v(S,_);d.children=d.children.filter(_=>!_.__r3f)}d.__r3f.objects.forEach(_=>v(S,_)),d.__r3f.objects=[],d.__r3f.autoRemovedBeforeAppend||s(T,d),S.parent&&(S.__r3f.autoRemovedBeforeAppend=!0),v(T,S),S.raycast&&S.__r3f.eventCount&&S.__r3f.root.getState().internal.interaction.push(S),[x,x.alternate].forEach(_=>{_!==null&&(_.stateNode=S,_.ref&&(typeof _.ref=="function"?_.ref(S):_.ref.current=S))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:bd({createInstance:c,removeChild:s,appendChild:v,appendInitialChild:v,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(d,m)=>{if(!m)return;const y=d.getState().scene;y.__r3f&&(y.__r3f.root=d,v(y,m))},removeChildFromContainer:(d,m)=>{m&&s(d.getState().scene,m)},insertInContainerBefore:(d,m,y)=>{if(!m||!y)return;const x=d.getState().scene;x.__r3f&&i(x,m,y)},getRootHostContext:()=>null,getChildHostContext:d=>d,finalizeInitialChildren(d){var m;return!!((m=d==null?void 0:d.__r3f)!=null?m:{}).handlers},prepareUpdate(d,m,y,x){var C;if(((C=d==null?void 0:d.__r3f)!=null?C:{}).primitive&&x.object&&x.object!==d)return[!0];{const{args:S=[],children:_,...w}=x,{args:M=[],children:D,...R}=y;if(!Array.isArray(S))throw new Error("R3F: the args prop must be an array!");if(S.some((b,B)=>b!==M[B]))return[!0];const A=Bc(d,w,R,!0);return A.changes.length?[!1,A]:null}},commitUpdate(d,[m,y],x,C,T,S){m?f(d,x,T,S):ml(d,y)},commitMount(d,m,y,x){var C;const T=(C=d.__r3f)!=null?C:{};d.raycast&&T.handlers&&T.eventCount&&d.__r3f.root.getState().internal.interaction.push(d)},getPublicInstance:d=>d,prepareForCommit:()=>null,preparePortalMount:d=>di(d.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(d){var m;const{attach:y,parent:x}=(m=d.__r3f)!=null?m:{};y&&x&&Bu(x,d,y),d.isObject3D&&(d.visible=!1),hi(d)},unhideInstance(d,m){var y;const{attach:x,parent:C}=(y=d.__r3f)!=null?y:{};x&&C&&vl(C,d,x),(d.isObject3D&&m.visible==null||m.visible)&&(d.visible=!0),hi(d)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():vi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&nt.fun(performance.now)?performance.now:nt.fun(Date.now)?Date.now:()=>0,scheduleTimeout:nt.fun(setTimeout)?setTimeout:void 0,cancelTimeout:nt.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ml}}var zu,Iu;const pl=l=>"colorSpace"in l||"outputColorSpace"in l,Dc=()=>{var l;return(l=Kl.ColorManagement)!=null?l:null},Oc=l=>l&&l.isOrthographicCamera,Zd=l=>l&&l.hasOwnProperty("current"),oo=typeof window<"u"&&((zu=window.document)!=null&&zu.createElement||((Iu=window.navigator)==null?void 0:Iu.product)==="ReactNative")?P.useLayoutEffect:P.useEffect;function zc(l){const n=P.useRef(l);return oo(()=>void(n.current=l),[l]),n}function Qd({set:l}){return oo(()=>(l(new Promise(()=>null)),()=>l(!1)),[l]),null}class Ic 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}}Ic.getDerivedStateFromError=()=>({error:!0});const jc="__default",ju=new Map,Xd=l=>l&&!!l.memoized&&!!l.changes;function bc(l){var n;const c=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(l)?Math.min(Math.max(l[0],c),l[1]):l}const Ki=l=>{var n;return(n=l.__r3f)==null?void 0:n.root.getState()},nt={obj:l=>l===Object(l)&&!nt.arr(l)&&typeof l!="function",fun:l=>typeof l=="function",str:l=>typeof l=="string",num:l=>typeof l=="number",boo:l=>typeof l=="boolean",und:l=>l===void 0,arr:l=>Array.isArray(l),equ(l,n,{arrays:c="shallow",objects:v="reference",strict:i=!0}={}){if(typeof l!=typeof n||!!l!=!!n)return!1;if(nt.str(l)||nt.num(l))return l===n;const r=nt.obj(l);if(r&&v==="reference")return l===n;const s=nt.arr(l);if(s&&c==="reference")return l===n;if((s||r)&&l===n)return!0;let f;for(f in l)if(!(f in n))return!1;if(r&&c==="shallow"&&v==="shallow"){for(f in i?n:l)if(!nt.equ(l[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:l)if(l[f]!==n[f])return!1;if(nt.und(f)){if(s&&l.length===0&&n.length===0||r&&Object.keys(l).length===0&&Object.keys(n).length===0)return!0;if(l!==n)return!1}return!0}};function Yd(l){const n={nodes:{},materials:{}};return l&&l.traverse(c=>{c.name&&(n.nodes[c.name]=c),c.material&&!n.materials[c.material.name]&&(n.materials[c.material.name]=c.material)}),n}function Jd(l){l.dispose&&l.type!=="Scene"&&l.dispose();for(const n in l)n.dispose==null||n.dispose(),delete l[n]}function di(l,n){const c=l;return c.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},l}function Dl(l,n){let c=l;if(n.includes("-")){const v=n.split("-"),i=v.pop();return c=v.reduce((r,s)=>r[s],l),{target:c,key:i}}else return{target:c,key:n}}const bu=/-\d+$/;function vl(l,n,c){if(nt.str(c)){if(bu.test(c)){const r=c.replace(bu,""),{target:s,key:f}=Dl(l,r);Array.isArray(s[f])||(s[f]=[])}const{target:v,key:i}=Dl(l,c);n.__r3f.previousAttach=v[i],v[i]=n}else n.__r3f.previousAttach=c(l,n)}function Bu(l,n,c){var v,i;if(nt.str(c)){const{target:r,key:s}=Dl(l,c),f=n.__r3f.previousAttach;f===void 0?delete r[s]:r[s]=f}else(v=n.__r3f)==null||v.previousAttach==null||v.previousAttach(l,n);(i=n.__r3f)==null||delete i.previousAttach}function Bc(l,{children:n,key:c,ref:v,...i},{children:r,key:s,ref:f,...u}={},h=!1){var d;const m=(d=l==null?void 0:l.__r3f)!=null?d:{},y=Object.entries(i),x=[];if(h){const T=Object.keys(u);for(let S=0;S{var _;if((_=l.__r3f)!=null&&_.primitive&&T==="object"||nt.equ(S,u[T]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(T))return x.push([T,S,!0,[]]);let w=[];T.includes("-")&&(w=T.split("-")),x.push([T,S,!1,w]);for(const M in i){const D=i[M];M.startsWith(`${T}-`)&&x.push([M,D,!1,M.split("-")])}});const C={...i};return m.memoizedProps&&m.memoizedProps.args&&(C.args=m.memoizedProps.args),m.memoizedProps&&m.memoizedProps.attach&&(C.attach=m.memoizedProps.attach),{memoized:C,changes:x}}const Kd=typeof process<"u"&&!1;function ml(l,n){var c,v,i;const r=(c=l.__r3f)!=null?c:{},s=r.root,f=(v=s==null||s.getState==null?void 0:s.getState())!=null?v:{},{memoized:u,changes:h}=Xd(n)?n:Bc(l,n),d=r.eventCount;l.__r3f&&(l.__r3f.memoizedProps=u);for(let y=0;yM[D],l),!(w&&w.set))){const[M,...D]=S.reverse();_=D.reverse().reduce((R,A)=>R[A],l),x=M}if(C===jc+"remove")if(_.constructor){let M=ju.get(_.constructor);M||(M=new _.constructor,ju.set(_.constructor,M)),C=M[x]}else C=0;if(T)C?r.handlers[x]=C:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(w&&w.set&&(w.copy||w instanceof fl)){if(Array.isArray(C))w.fromArray?w.fromArray(C):w.set(...C);else if(w.copy&&C&&C.constructor&&(Kd?w.constructor.name===C.constructor.name:w.constructor===C.constructor))w.copy(C);else if(C!==void 0){const M=w instanceof ro;!M&&w.setScalar?w.setScalar(C):w instanceof fl&&C instanceof fl?w.mask=C.mask:w.set(C),!Dc()&&!f.linear&&M&&w.convertSRGBToLinear()}}else if(_[x]=C,_[x]instanceof Vl&&_[x].format===od&&_[x].type===ad){const M=_[x];pl(M)&&pl(f.gl)?M.colorSpace=f.gl.outputColorSpace:M.encoding=f.gl.outputEncoding}hi(l)}if(r.parent&&f.internal&&l.raycast&&d!==r.eventCount){const y=f.internal.interaction.indexOf(l);y>-1&&f.internal.interaction.splice(y,1),r.eventCount&&f.internal.interaction.push(l)}return!(h.length===1&&h[0][0]==="onUpdate")&&h.length&&(i=l.__r3f)!=null&&i.parent&&Ol(l),l}function hi(l){var n,c;const v=(n=l.__r3f)==null||(c=n.root)==null||c.getState==null?void 0:c.getState();v&&v.internal.frames===0&&v.invalidate()}function Ol(l){l.onUpdate==null||l.onUpdate(l)}function qd(l,n){l.manual||(Oc(l)?(l.left=n.width/-2,l.right=n.width/2,l.top=n.height/2,l.bottom=n.height/-2):l.aspect=n.width/n.height,l.updateProjectionMatrix(),l.updateMatrixWorld())}function na(l){return(l.eventObject||l.object).uuid+"/"+l.index+l.instanceId}function $d(){var l;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return vi.DefaultEventPriority;switch((l=n.event)==null?void 0:l.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return vi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return vi.ContinuousEventPriority;default:return vi.DefaultEventPriority}}function Nc(l,n,c,v){const i=c.get(n);i&&(c.delete(n),c.size===0&&(l.delete(v),i.target.releasePointerCapture(v)))}function e1(l,n){const{internal:c}=l.getState();c.interaction=c.interaction.filter(v=>v!==n),c.initialHits=c.initialHits.filter(v=>v!==n),c.hovered.forEach((v,i)=>{(v.eventObject===n||v.object===n)&&c.hovered.delete(i)}),c.capturedMap.forEach((v,i)=>{Nc(c.capturedMap,n,v,i)})}function t1(l){function n(u){const{internal:h}=l.getState(),d=u.offsetX-h.initialClick[0],m=u.offsetY-h.initialClick[1];return Math.round(Math.sqrt(d*d+m*m))}function c(u){return u.filter(h=>["Move","Over","Enter","Out","Leave"].some(d=>{var m;return(m=h.__r3f)==null?void 0:m.handlers["onPointer"+d]}))}function v(u,h){const d=l.getState(),m=new Set,y=[],x=h?h(d.internal.interaction):d.internal.interaction;for(let _=0;_{const M=Ki(_.object),D=Ki(w.object);return!M||!D?_.distance-w.distance:D.events.priority-M.events.priority||_.distance-w.distance}).filter(_=>{const w=na(_);return m.has(w)?!1:(m.add(w),!0)});d.events.filter&&(T=d.events.filter(T,d));for(const _ of T){let w=_.object;for(;w;){var S;(S=w.__r3f)!=null&&S.eventCount&&y.push({..._,eventObject:w}),w=w.parent}}if("pointerId"in u&&d.internal.capturedMap.has(u.pointerId))for(let _ of d.internal.capturedMap.get(u.pointerId).values())m.has(na(_.intersection))||y.push(_.intersection);return y}function i(u,h,d,m){const y=l.getState();if(u.length){const x={stopped:!1};for(const C of u){const T=Ki(C.object)||y,{raycaster:S,pointer:_,camera:w,internal:M}=T,D=new st(_.x,_.y,0).unproject(w),R=oe=>{var G,O;return(G=(O=M.capturedMap.get(oe))==null?void 0:O.has(C.eventObject))!=null?G:!1},A=oe=>{const G={intersection:C,target:h.target};M.capturedMap.has(oe)?M.capturedMap.get(oe).set(C.eventObject,G):M.capturedMap.set(oe,new Map([[C.eventObject,G]])),h.target.setPointerCapture(oe)},b=oe=>{const G=M.capturedMap.get(oe);G&&Nc(M.capturedMap,C.eventObject,G,oe)};let B={};for(let oe in h){let G=h[oe];typeof G!="function"&&(B[oe]=G)}let J={...C,...B,pointer:_,intersections:u,stopped:x.stopped,delta:d,unprojectedPoint:D,ray:S.ray,camera:w,stopPropagation(){const oe="pointerId"in h&&M.capturedMap.get(h.pointerId);if((!oe||oe.has(C.eventObject))&&(J.stopped=x.stopped=!0,M.hovered.size&&Array.from(M.hovered.values()).find(G=>G.eventObject===C.eventObject))){const G=u.slice(0,u.indexOf(C));r([...G,C])}},target:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},currentTarget:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},nativeEvent:h};if(m(J),x.stopped===!0)break}}return u}function r(u){const{internal:h}=l.getState();for(const d of h.hovered.values())if(!u.length||!u.find(m=>m.object===d.object&&m.index===d.index&&m.instanceId===d.instanceId)){const y=d.eventObject.__r3f,x=y==null?void 0:y.handlers;if(h.hovered.delete(na(d)),y!=null&&y.eventCount){const C={...d,intersections:u};x.onPointerOut==null||x.onPointerOut(C),x.onPointerLeave==null||x.onPointerLeave(C)}}}function s(u,h){for(let d=0;dr([]);case"onLostPointerCapture":return h=>{const{internal:d}=l.getState();"pointerId"in h&&d.capturedMap.has(h.pointerId)&&requestAnimationFrame(()=>{d.capturedMap.has(h.pointerId)&&(d.capturedMap.delete(h.pointerId),r([]))})}}return function(d){const{onPointerMissed:m,internal:y}=l.getState();y.lastEvent.current=d;const x=u==="onPointerMove",C=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",S=v(d,x?c:void 0),_=C?n(d):0;u==="onPointerDown"&&(y.initialClick=[d.offsetX,d.offsetY],y.initialHits=S.map(M=>M.eventObject)),C&&!S.length&&_<=2&&(s(d,y.interaction),m&&m(d)),x&&r(S);function w(M){const D=M.eventObject,R=D.__r3f,A=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(A.onPointerOver||A.onPointerEnter||A.onPointerOut||A.onPointerLeave){const b=na(M),B=y.hovered.get(b);B?B.stopped&&M.stopPropagation():(y.hovered.set(b,M),A.onPointerOver==null||A.onPointerOver(M),A.onPointerEnter==null||A.onPointerEnter(M))}A.onPointerMove==null||A.onPointerMove(M)}else{const b=A[u];b?(!C||y.initialHits.includes(D))&&(s(d,y.interaction.filter(B=>!y.initialHits.includes(B))),b(M)):C&&y.initialHits.includes(D)&&s(d,y.interaction.filter(B=>!y.initialHits.includes(B)))}}i(S,d,_,w)}}return{handlePointer:f}}const Gc=l=>!!(l!=null&&l.render),Wc=P.createContext(null),n1=(l,n)=>{const c=zd((f,u)=>{const h=new st,d=new st,m=new st;function y(_=u().camera,w=d,M=u().size){const{width:D,height:R,top:A,left:b}=M,B=D/R;w instanceof st?m.copy(w):m.set(...w);const J=_.getWorldPosition(h).distanceTo(m);if(Oc(_))return{width:D/_.zoom,height:R/_.zoom,top:A,left:b,factor:1,distance:J,aspect:B};{const oe=_.fov*Math.PI/180,G=2*Math.tan(oe/2)*J,O=G*(D/R);return{width:O,height:G,top:A,left:b,factor:D/O,distance:J,aspect:B}}}let x;const C=_=>f(w=>({performance:{...w.performance,current:_}})),T=new Nr;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(_=1)=>l(u(),_),advance:(_,w)=>n(_,w,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new md,pointer:T,mouse:T,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const _=u();x&&clearTimeout(x),_.performance.current!==_.performance.min&&C(_.performance.min),x=setTimeout(()=>C(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:y},setEvents:_=>f(w=>({...w,events:{...w.events,..._}})),setSize:(_,w,M,D,R)=>{const A=u().camera,b={width:_,height:w,top:D||0,left:R||0,updateStyle:M};f(B=>({size:b,viewport:{...B.viewport,...y(A,d,b)}}))},setDpr:_=>f(w=>{const M=bc(_);return{viewport:{...w.viewport,dpr:M,initialDpr:w.viewport.initialDpr||M}}}),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:P.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(_,w,M)=>{const D=u().internal;return D.priority=D.priority+(w>0?1:0),D.subscribers.push({ref:_,priority:w,store:M}),D.subscribers=D.subscribers.sort((R,A)=>R.priority-A.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(w>0?1:0),R.subscribers=R.subscribers.filter(A=>A.ref!==_))}}}}}),v=c.getState();let i=v.size,r=v.viewport.dpr,s=v.camera;return c.subscribe(()=>{const{camera:f,size:u,viewport:h,gl:d,set:m}=c.getState();if(u.width!==i.width||u.height!==i.height||h.dpr!==r){var y;i=u,r=h.dpr,qd(f,u),d.setPixelRatio(h.dpr);const x=(y=u.updateStyle)!=null?y:typeof HTMLCanvasElement<"u"&&d.domElement instanceof HTMLCanvasElement;d.setSize(u.width,u.height,x)}f!==s&&(s=f,m(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),c.subscribe(f=>l(f)),c};function ql(l,n){const c={callback:l};return n.add(c),()=>void n.delete(c)}let ra,Hc=new Set,Vc=new Set,Zc=new Set;const r1=l=>ql(l,Hc),i1=l=>ql(l,Vc),o1=l=>ql(l,Zc);function gl(l,n){if(l.size)for(const{callback:c}of l.values())c(n)}function qi(l,n){switch(l){case"before":return gl(Hc,n);case"after":return gl(Vc,n);case"tail":return gl(Zc,n)}}let yl,xl;function wl(l,n,c){let v=n.clock.getDelta();for(n.frameloop==="never"&&typeof l=="number"&&(v=l-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=l),yl=n.internal.subscribers,ra=0;ra0)&&!((h=i.gl.xr)!=null&&h.isPresenting)&&(c+=wl(u,i))}if(qi("after",u),c===0)return qi("tail",u),n=!1,cancelAnimationFrame(v)}function s(u,h=1){var d;if(!u)return l.forEach(m=>s(m.store.getState()),h);(d=u.gl.xr)!=null&&d.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+h),n||(n=!0,requestAnimationFrame(r)))}function f(u,h=!0,d,m){if(h&&qi("before",u),d)wl(u,d,m);else for(const y of l.values())wl(u,y.store.getState());h&&qi("after",u)}return{loop:r,invalidate:s,advance:f}}function Qc(){const l=P.useContext(Wc);if(!l)throw new Error("R3F: Hooks can only be used within the Canvas component!");return l}function Si(l=c=>c,n){return Qc()(l,n)}function ao(l,n=0){const c=Qc(),v=c.getState().internal.subscribe,i=zc(l);return oo(()=>v(i,n,c),[n,v,c]),null}const Nu=new WeakMap;function Xc(l,n){return function(c,...v){let i=Nu.get(c);return i||(i=new c,Nu.set(c,i)),l&&l(i),Promise.all(v.map(r=>new Promise((s,f)=>i.load(r,u=>{u.scene&&Object.assign(u,Yd(u.scene)),s(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 Yc(l,n,c,v){const i=Array.isArray(n)?n:[n],r=Nd(Xc(c,v),[l,...i],{equal:nt.equ});return Array.isArray(n)?r:r[0]}Yc.preload=function(l,n,c){const v=Array.isArray(n)?n:[n];return Gd(Xc(c),[l,...v])};Yc.clear=function(l,n){const c=Array.isArray(n)?n:[n];return Wd([l,...c])};const wi=new Map,{invalidate:Gu,advance:Wu}=a1(wi),{reconciler:ha,applyProps:ui}=Vd(wi,$d),ci={objects:"shallow",strict:!1},l1=(l,n)=>{const c=typeof l=="function"?l(n):l;return Gc(c)?c:new fd({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...l})};function s1(l,n){const c=typeof HTMLCanvasElement<"u"&&l instanceof HTMLCanvasElement;if(n){const{width:v,height:i,top:r,left:s,updateStyle:f=c}=n;return{width:v,height:i,top:r,left:s,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&l instanceof HTMLCanvasElement&&l.parentElement){const{width:v,height:i,top:r,left:s}=l.parentElement.getBoundingClientRect();return{width:v,height:i,top:r,left:s,updateStyle:c}}else if(typeof OffscreenCanvas<"u"&&l instanceof OffscreenCanvas)return{width:l.width,height:l.height,top:0,left:0,updateStyle:c};return{width:0,height:0,top:0,left:0}}function u1(l){const n=wi.get(l),c=n==null?void 0:n.fiber,v=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=v||n1(Gu,Wu),s=c||ha.createContainer(r,vi.ConcurrentRoot,null,!1,null,"",i,null);n||wi.set(l,{fiber:s,store:r});let f,u=!1,h;return{configure(d={}){let{gl:m,size:y,scene:x,events:C,onCreated:T,shadows:S=!1,linear:_=!1,flat:w=!1,legacy:M=!1,orthographic:D=!1,frameloop:R="always",dpr:A=[1,2],performance:b,raycaster:B,camera:J,onPointerMissed:oe}=d,G=r.getState(),O=G.gl;G.gl||G.set({gl:O=l1(m,l)});let ee=G.raycaster;ee||G.set({raycaster:ee=new sd});const{params:q,...ne}=B||{};if(nt.equ(ne,ee,ci)||ui(ee,{...ne}),nt.equ(q,ee.params,ci)||ui(ee,{params:{...ee.params,...q}}),!G.camera||G.camera===h&&!nt.equ(h,J,ci)){h=J;const I=J instanceof dd,Q=I?J:D?new Zl(0,0,0,0,.1,1e3):new Ql(75,0,.1,1e3);I||(Q.position.z=5,J&&ui(Q,J),!G.camera&&!(J!=null&&J.rotation)&&Q.lookAt(0,0,0)),G.set({camera:Q}),ee.camera=Q}if(!G.scene){let I;x instanceof da?I=x:(I=new da,x&&ui(I,x)),G.set({scene:di(I)})}if(!G.xr){var ae;const I=(H,re)=>{const X=r.getState();X.frameloop!=="never"&&Wu(H,!0,X,re)},Q=()=>{const H=r.getState();H.gl.xr.enabled=H.gl.xr.isPresenting,H.gl.xr.setAnimationLoop(H.gl.xr.isPresenting?I:null),H.gl.xr.isPresenting||Gu(H)},Y={connect(){const H=r.getState().gl;H.xr.addEventListener("sessionstart",Q),H.xr.addEventListener("sessionend",Q)},disconnect(){const H=r.getState().gl;H.xr.removeEventListener("sessionstart",Q),H.xr.removeEventListener("sessionend",Q)}};typeof((ae=O.xr)==null?void 0:ae.addEventListener)=="function"&&Y.connect(),G.set({xr:Y})}if(O.shadowMap){const I=O.shadowMap.enabled,Q=O.shadowMap.type;if(O.shadowMap.enabled=!!S,nt.boo(S))O.shadowMap.type=dl;else if(nt.str(S)){var ve;const Y={basic:hd,percentage:pd,soft:dl,variance:vd};O.shadowMap.type=(ve=Y[S])!=null?ve:dl}else nt.obj(S)&&Object.assign(O.shadowMap,S);(I!==O.shadowMap.enabled||Q!==O.shadowMap.type)&&(O.shadowMap.needsUpdate=!0)}const Z=Dc();Z&&("enabled"in Z?Z.enabled=!M:"legacyMode"in Z&&(Z.legacyMode=M)),ui(O,{outputEncoding:_?3e3:3001,toneMapping:w?ud:cd}),G.legacy!==M&&G.set(()=>({legacy:M})),G.linear!==_&&G.set(()=>({linear:_})),G.flat!==w&&G.set(()=>({flat:w})),m&&!nt.fun(m)&&!Gc(m)&&!nt.equ(m,O,ci)&&ui(O,m),C&&!G.events.handlers&&G.set({events:C(r)});const k=s1(l,y);return nt.equ(k,G.size,ci)||G.setSize(k.width,k.height,k.updateStyle,k.top,k.left),A&&G.viewport.dpr!==bc(A)&&G.setDpr(A),G.frameloop!==R&&G.setFrameloop(R),G.onPointerMissed||G.set({onPointerMissed:oe}),b&&!nt.equ(b,G.performance,ci)&&G.set(I=>({performance:{...I.performance,...b}})),f=T,u=!0,this},render(d){return u||this.configure(),ha.updateContainer(P.createElement(c1,{store:r,children:d,onCreated:f,rootElement:l}),s,null,()=>{}),r},unmount(){Jc(l)}}}function c1({store:l,children:n,onCreated:c,rootElement:v}){return oo(()=>{const i=l.getState();i.set(r=>({internal:{...r.internal,active:!0}})),c&&c(i),l.getState().events.connected||i.events.connect==null||i.events.connect(v)},[]),P.createElement(Wc.Provider,{value:l},n)}function Jc(l,n){const c=wi.get(l),v=c==null?void 0:c.fiber;if(v){const i=c==null?void 0:c.store.getState();i&&(i.internal.active=!1),ha.updateContainer(null,v,null,()=>{i&&setTimeout(()=>{try{var r,s,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(s=r.renderLists)==null||s.dispose==null||s.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),Jd(i),wi.delete(l),n&&n(l)}catch{}},500)})}}ha.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:P.version});function zl(l,n,c){var v,i,r,s,f;n==null&&(n=100);function u(){var d=Date.now()-s;d=0?v=setTimeout(u,n-d):(v=null,c||(f=l.apply(r,i),r=i=null))}var h=function(){r=this,i=arguments,s=Date.now();var d=c&&!v;return v||(v=setTimeout(u,n)),d&&(f=l.apply(r,i),r=i=null),f};return h.clear=function(){v&&(clearTimeout(v),v=null)},h.flush=function(){v&&(f=l.apply(r,i),r=i=null,clearTimeout(v),v=null)},h}zl.debounce=zl;var f1=zl;const Hu=Cc(f1);function d1(l){let{debounce:n,scroll:c,polyfill:v,offsetSize:i}=l===void 0?{debounce:0,scroll:!1,offsetSize:!1}:l;const r=v||(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[s,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:s}),h=n?typeof n=="number"?n:n.scroll:null,d=n?typeof n=="number"?n:n.resize:null,m=P.useRef(!1);P.useEffect(()=>(m.current=!0,()=>void(m.current=!1)));const[y,x,C]=P.useMemo(()=>{const w=()=>{if(!u.current.element)return;const{left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe}=u.current.element.getBoundingClientRect(),G={left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe};u.current.element instanceof HTMLElement&&i&&(G.height=u.current.element.offsetHeight,G.width=u.current.element.offsetWidth),Object.freeze(G),m.current&&!m1(u.current.lastBounds,G)&&f(u.current.lastBounds=G)};return[w,d?Hu(w,d):w,h?Hu(w,h):w]},[f,i,h,d]);function T(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",C,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function S(){u.current.element&&(u.current.resizeObserver=new r(C),u.current.resizeObserver.observe(u.current.element),c&&u.current.scrollContainers&&u.current.scrollContainers.forEach(w=>w.addEventListener("scroll",C,{capture:!0,passive:!0})))}const _=w=>{!w||w===u.current.element||(T(),u.current.element=w,u.current.scrollContainers=Kc(w),S())};return p1(C,!!c),h1(x),P.useEffect(()=>{T(),S()},[c,C,x]),P.useEffect(()=>T,[]),[_,s,y]}function h1(l){P.useEffect(()=>{const n=l;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[l])}function p1(l,n){P.useEffect(()=>{if(n){const c=l;return window.addEventListener("scroll",c,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",c,!0)}},[l,n])}function Kc(l){const n=[];if(!l||l===document.body)return n;const{overflow:c,overflowX:v,overflowY:i}=window.getComputedStyle(l);return[c,v,i].some(r=>r==="auto"||r==="scroll")&&n.push(l),[...n,...Kc(l.parentElement)]}const v1=["x","y","top","bottom","left","right","width","height"],m1=(l,n)=>v1.every(c=>l[c]===n[c]);var g1=Object.defineProperty,y1=Object.defineProperties,x1=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,w1=Object.prototype.hasOwnProperty,S1=Object.prototype.propertyIsEnumerable,Zu=(l,n,c)=>n in l?g1(l,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[n]=c,Qu=(l,n)=>{for(var c in n||(n={}))w1.call(n,c)&&Zu(l,c,n[c]);if(Vu)for(var c of Vu(n))S1.call(n,c)&&Zu(l,c,n[c]);return l},C1=(l,n)=>y1(l,x1(n));function qc(l,n,c){if(!l)return;if(c(l)===!0)return l;let v=n?l.return:l.child;for(;v;){const i=qc(v,n,c);if(i)return i;v=n?null:v.sibling}}function $c(l){try{return Object.defineProperties(l,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return l}}const $l=$c(P.createContext(null));class ef extends P.Component{render(){return P.createElement($l.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Xu,ReactCurrentDispatcher:Yu}=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _1(){const l=P.useContext($l);if(l===null)throw new Error("its-fine: useFiber must be called within a !");const n=P.useId();return P.useMemo(()=>{for(const v of[Xu==null?void 0:Xu.current,l,l==null?void 0:l.alternate]){if(!v)continue;const i=qc(v,!1,r=>{let s=r.memoizedState;for(;s;){if(s.memoizedState===n)return!0;s=s.next}});if(i)return i}},[l,n])}function E1(){var l,n;const c=_1(),[v]=P.useState(()=>new Map);v.clear();let i=c;for(;i;){const r=(l=i.type)==null?void 0:l._context;r&&r!==$l&&!v.has(r)&&v.set(r,(n=Yu==null?void 0:Yu.current)==null?void 0:n.readContext($c(r))),i=i.return}return v}function T1(){const l=E1();return P.useMemo(()=>Array.from(l.keys()).reduce((n,c)=>v=>P.createElement(n,null,P.createElement(c.Provider,C1(Qu({},v),{value:l.get(c)}))),n=>P.createElement(ef,Qu({},n))),[l])}const Sl={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 M1(l){const{handlePointer:n}=t1(l);return{priority:1,enabled:!0,compute(c,v,i){v.pointer.set(c.offsetX/v.size.width*2-1,-(c.offsetY/v.size.height)*2+1),v.raycaster.setFromCamera(v.pointer,v.camera)},connected:void 0,handlers:Object.keys(Sl).reduce((c,v)=>({...c,[v]:n(v)}),{}),update:()=>{var c;const{events:v,internal:i}=l.getState();(c=i.lastEvent)!=null&&c.current&&v.handlers&&v.handlers.onPointerMove(i.lastEvent.current)},connect:c=>{var v;const{set:i,events:r}=l.getState();r.disconnect==null||r.disconnect(),i(s=>({events:{...s.events,connected:c}})),Object.entries((v=r.handlers)!=null?v:[]).forEach(([s,f])=>{const[u,h]=Sl[s];c.addEventListener(u,f,{passive:h})})},disconnect:()=>{const{set:c,events:v}=l.getState();if(v.connected){var i;Object.entries((i=v.handlers)!=null?i:[]).forEach(([r,s])=>{if(v&&v.connected instanceof HTMLElement){const[f]=Sl[r];v.connected.removeEventListener(f,s)}}),c(r=>({events:{...r.events,connected:void 0}}))}}}}const k1=P.forwardRef(function({children:n,fallback:c,resize:v,style:i,gl:r,events:s=M1,eventSource:f,eventPrefix:u,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,onPointerMissed:D,onCreated:R,...A},b){P.useMemo(()=>Hd(gd),[]);const B=T1(),[J,oe]=d1({scroll:!0,debounce:{scroll:50,resize:0},...v}),G=P.useRef(null),O=P.useRef(null);P.useImperativeHandle(b,()=>G.current);const ee=zc(D),[q,ne]=P.useState(!1),[ae,ve]=P.useState(!1);if(q)throw q;if(ae)throw ae;const Z=P.useRef(null);oo(()=>{const W=G.current;oe.width>0&&oe.height>0&&W&&(Z.current||(Z.current=u1(W)),Z.current.configure({gl:r,events:s,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,size:oe,onPointerMissed:(...k)=>ee.current==null?void 0:ee.current(...k),onCreated:k=>{k.events.connect==null||k.events.connect(f?Zd(f)?f.current:f:O.current),u&&k.setEvents({compute:(I,Q)=>{const Y=I[u+"X"],H=I[u+"Y"];Q.pointer.set(Y/Q.size.width*2-1,-(H/Q.size.height)*2+1),Q.raycaster.setFromCamera(Q.pointer,Q.camera)}}),R==null||R(k)}}),Z.current.render(P.createElement(B,null,P.createElement(Ic,{set:ve},P.createElement(P.Suspense,{fallback:P.createElement(Qd,{set:ne})},n)))))}),P.useEffect(()=>{const W=G.current;if(W)return()=>Jc(W)},[]);const j=f?"none":"auto";return P.createElement("div",yi({ref:O,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:j,...i}},A),P.createElement("div",{ref:J,style:{width:"100%",height:"100%"}},P.createElement("canvas",{ref:G,style:{display:"block"}},c)))}),P1=P.forwardRef(function(n,c){return P.createElement(ef,null,P.createElement(k1,yi({},n,{ref:c})))}),lo=new st,es=new st,L1=new st;function U1(l,n,c){const v=lo.setFromMatrixPosition(l.matrixWorld);v.project(n);const i=c.width/2,r=c.height/2;return[v.x*i+i,-(v.y*r)+r]}function R1(l,n){const c=lo.setFromMatrixPosition(l.matrixWorld),v=es.setFromMatrixPosition(n.matrixWorld),i=c.sub(v),r=n.getWorldDirection(L1);return i.angleTo(r)>Math.PI/2}function F1(l,n,c,v){const i=lo.setFromMatrixPosition(l.matrixWorld),r=i.clone();r.project(n),c.setFromCamera(r,n);const s=c.intersectObjects(v,!0);if(s.length){const f=s[0].distance;return i.distanceTo(c.ray.origin)Math.abs(l)<1e-10?0:l;function tf(l,n,c=""){let v="matrix3d(";for(let i=0;i!==16;i++)v+=Il(n[i]*l.elements[i])+(i!==15?",":")");return c+v}const O1=(l=>n=>tf(n,l))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),z1=(l=>(n,c)=>tf(n,l(c),"translate(-50%,-50%)"))(l=>[1/l,1/l,1/l,1,-1/l,-1/l,-1/l,-1,1/l,1/l,1/l,1,1,1,1,1]);function I1(l){return l&&typeof l=="object"&&"current"in l}const dp=P.forwardRef(({children:l,eps:n=.001,style:c,className:v,prepend:i,center:r,fullscreen:s,portal:f,distanceFactor:u,sprite:h=!1,transform:d=!1,occlude:m,onOcclude:y,castShadow:x,receiveShadow:C,material:T,geometry:S,zIndexRange:_=[16777271,0],calculatePosition:w=U1,as:M="div",wrapperClass:D,pointerEvents:R="auto",...A},b)=>{const{gl:B,camera:J,scene:oe,size:G,raycaster:O,events:ee,viewport:q}=Si(),[ne]=P.useState(()=>document.createElement(M)),ae=P.useRef(),ve=P.useRef(null),Z=P.useRef(0),j=P.useRef([0,0]),W=P.useRef(null),k=P.useRef(null),I=(f==null?void 0:f.current)||ee.connected||B.domElement.parentNode,Q=P.useRef(null),Y=P.useRef(!1),H=P.useMemo(()=>m&&m!=="blending"||Array.isArray(m)&&m.length&&I1(m[0]),[m]);P.useLayoutEffect(()=>{const fe=B.domElement;m&&m==="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)},[m]),P.useLayoutEffect(()=>{if(ve.current){const fe=ae.current=_c(ne);if(oe.updateMatrixWorld(),d)ne.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const K=w(ve.current,J,G);ne.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${K[0]}px,${K[1]}px,0);transform-origin:0 0;`}return I&&(i?I.prepend(ne):I.appendChild(ne)),()=>{I&&I.removeChild(ne),fe.unmount()}}},[I,d]),P.useLayoutEffect(()=>{D&&(ne.className=D)},[D]);const re=P.useMemo(()=>d?{position:"absolute",top:0,left:0,width:G.width,height:G.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...s&&{top:-G.height/2,left:-G.width/2,width:G.width,height:G.height},...c},[c,r,s,G,d]),X=P.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);P.useLayoutEffect(()=>{if(Y.current=!1,d){var fe;(fe=ae.current)==null||fe.render(P.createElement("div",{ref:W,style:re},P.createElement("div",{ref:k,style:X},P.createElement("div",{ref:b,className:v,style:c,children:l}))))}else{var K;(K=ae.current)==null||K.render(P.createElement("div",{ref:b,style:re,className:v,children:l}))}});const te=P.useRef(!0);ao(fe=>{if(ve.current){J.updateMatrixWorld(),ve.current.updateWorldMatrix(!0,!1);const K=d?j.current:w(ve.current,J,G);if(d||Math.abs(Z.current-J.zoom)>n||Math.abs(j.current[0]-K[0])>n||Math.abs(j.current[1]-K[1])>n){const $=R1(ve.current,J);let xe=!1;H&&(m!=="blending"?xe=[oe]:Array.isArray(m)&&(xe=m.map(ke=>ke.current)));const Re=te.current;if(xe){const ke=F1(ve.current,J,O,xe);te.current=ke&&!$}else te.current=!$;Re!==te.current&&(y?y(!te.current):ne.style.display=te.current?"block":"none");const ce=Math.floor(_[0]/2),Se=m?H?[_[0],ce]:[ce-1,0]:_;if(ne.style.zIndex=`${D1(ve.current,J,Se)}`,d){const[ke,le]=[G.width/2,G.height/2],Ce=J.projectionMatrix.elements[5]*le,{isOrthographicCamera:pe,top:ie,left:Pe,bottom:ye,right:we}=J,me=O1(J.matrixWorldInverse),We=pe?`scale(${Ce})translate(${Il(-(we+Pe)/2)}px,${Il((ie+ye)/2)}px)`:`translateZ(${Ce}px)`;let Oe=ve.current.matrixWorld;h&&(Oe=J.matrixWorldInverse.clone().transpose().copyPosition(Oe).scale(ve.current.scale),Oe.elements[3]=Oe.elements[7]=Oe.elements[11]=0,Oe.elements[15]=1),ne.style.width=G.width+"px",ne.style.height=G.height+"px",ne.style.perspective=pe?"":`${Ce}px`,W.current&&k.current&&(W.current.style.transform=`${We}${me}translate(${ke}px,${le}px)`,k.current.style.transform=z1(Oe,1/((u||10)/400)))}else{const ke=u===void 0?1:A1(ve.current,J)*u;ne.style.transform=`translate3d(${K[0]}px,${K[1]}px,0) scale(${ke})`}j.current=K,Z.current=J.zoom}}if(!H&&Q.current&&!Y.current)if(d){if(W.current){const K=W.current.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const{isOrthographicCamera:$}=J;if($||S)A.scale&&(Array.isArray(A.scale)?A.scale instanceof st?Q.current.scale.copy(A.scale.clone().divideScalar(1)):Q.current.scale.set(1/A.scale[0],1/A.scale[1],1/A.scale[2]):Q.current.scale.setScalar(1/A.scale));else{const xe=(u||10)/400,Re=K.clientWidth*xe,ce=K.clientHeight*xe;Q.current.scale.set(Re,ce,1)}Y.current=!0}}}else{const K=ne.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const $=1/q.factor,xe=K.clientWidth*$,Re=K.clientHeight*$;Q.current.scale.set(xe,Re,1),Y.current=!0}Q.current.lookAt(fe.camera.position)}});const ue=P.useMemo(()=>({vertexShader:d?void 0:` + `)+e.join(" > ")}return null},c.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return ae(e.child.stateNode);default:return e.child.stateNode}},c.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:qf,findFiberByHostInstance:e.findFiberByHostInstance||$f,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{_r=t.inject(e),fn=t}catch{}e=!!t.checkDCE}}return e},c.isAlreadyRendering=function(){return!1},c.observeVisibleRects=function(e,t,o,l){if(!pe)throw Error(s(363));e=Ja(e,t);var p=Oe(e,o,l).disconnect;return{disconnect:function(){p()}}},c.registerMutableSourceForHydration=function(e,t){var o=t._getVersion;o=o(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)},c.runWithPriority=function(e,t){var o=Ne;try{return Ne=e,t()}finally{Ne=o}},c.shouldError=function(){return null},c.shouldSuspend=function(){return!1},c.updateContainer=function(e,t,o,l){var p=t.current,g=Kt(),E=vr(p);return o=Lu(o),t.context===null?t.context=o:t.pendingContext=o,t=nr(g,E),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),dr(p,t),e=En(p,E,g),e!==null&&yo(e,p,E),E},c};Lc.exports=jd;var bd=Lc.exports;const Bd=Cc(bd),Nd=a=>typeof a=="object"&&typeof a.then=="function",jr=[];function Fc(a,n,c=(v,i)=>v===i){if(a===n)return!0;if(!a||!n)return!1;const v=a.length;if(n.length!==v)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,v.lifespan)),r.response;if(!c)throw r.promise}const i={keys:n,equal:v.equal,remove:()=>{const r=jr.indexOf(i);r!==-1&&jr.splice(r,1)},promise:(Nd(a)?a:a(...n)).then(r=>{i.response=r,v.lifespan&&v.lifespan>0&&(i.timeout=setTimeout(i.remove,v.lifespan))}).catch(r=>i.error=r)};if(jr.push(i),!c)throw i.promise}const Gd=(a,n,c)=>Ac(a,n,!1,c),Wd=(a,n,c)=>void Ac(a,n,!0,c),Hd=a=>{if(a===void 0||a.length===0)jr.splice(0,jr.length);else{const n=jr.find(c=>Fc(a,c.keys,c.equal));n&&n.remove()}},Kl={},Vd=a=>void Object.assign(Kl,a);function Zd(a,n){function c(d,{args:m=[],attach:y,...x},C){let T=`${d[0].toUpperCase()}${d.slice(1)}`,S;if(d==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const _=x.object;S=hi(_,{type:d,root:C,attach:y,primitive:!0})}else{const _=Kl[T];if(!_)throw new Error(`R3F: ${T} 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(m))throw new Error("R3F: The args prop must be an array!");S=hi(new _(...m),{type:d,root:C,attach:y,memoizedProps:{args:m}})}return S.__r3f.attach===void 0&&(S instanceof Ec?S.__r3f.attach="geometry":S instanceof sd&&(S.__r3f.attach="material")),T!=="inject"&&ml(S,x),S}function v(d,m){let y=!1;if(m){var x,C;(x=m.__r3f)!=null&&x.attach?vl(d,m,m.__r3f.attach):m.isObject3D&&d.isObject3D&&(d.add(m),y=!0),y||(C=d.__r3f)==null||C.objects.push(m),m.__r3f||hi(m,{}),m.__r3f.parent=d,Ol(m),pi(m)}}function i(d,m,y){let x=!1;if(m){var C,T;if((C=m.__r3f)!=null&&C.attach)vl(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){m.parent=d,m.dispatchEvent({type:"added"});const S=d.children.filter(w=>w!==m),_=S.indexOf(y);d.children=[...S.slice(0,_),m,...S.slice(_)],x=!0}x||(T=d.__r3f)==null||T.objects.push(m),m.__r3f||hi(m,{}),m.__r3f.parent=d,Ol(m),pi(m)}}function r(d,m,y=!1){d&&[...d].forEach(x=>s(m,x,y))}function s(d,m,y){if(m){var x,C,T;if(m.__r3f&&(m.__r3f.parent=null),(x=d.__r3f)!=null&&x.objects&&(d.__r3f.objects=d.__r3f.objects.filter(D=>D!==m)),(C=m.__r3f)!=null&&C.attach)Bu(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){var S;d.remove(m),(S=m.__r3f)!=null&&S.root&&t1(m.__r3f.root,m)}const w=(T=m.__r3f)==null?void 0:T.primitive,M=!w&&(y===void 0?m.dispose!==null:y);if(!w){var _;r((_=m.__r3f)==null?void 0:_.objects,m,M),r(m.children,m,M)}if(delete m.__r3f,M&&m.dispose&&m.type!=="Scene"){const D=()=>{try{m.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?Al.unstable_scheduleCallback(Al.unstable_IdlePriority,D):D()}pi(d)}}function f(d,m,y,x){var C;const T=(C=d.__r3f)==null?void 0:C.parent;if(!T)return;const S=c(m,y,d.__r3f.root);if(d.children){for(const _ of d.children)_.__r3f&&v(S,_);d.children=d.children.filter(_=>!_.__r3f)}d.__r3f.objects.forEach(_=>v(S,_)),d.__r3f.objects=[],d.__r3f.autoRemovedBeforeAppend||s(T,d),S.parent&&(S.__r3f.autoRemovedBeforeAppend=!0),v(T,S),S.raycast&&S.__r3f.eventCount&&S.__r3f.root.getState().internal.interaction.push(S),[x,x.alternate].forEach(_=>{_!==null&&(_.stateNode=S,_.ref&&(typeof _.ref=="function"?_.ref(S):_.ref.current=S))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:Bd({createInstance:c,removeChild:s,appendChild:v,appendInitialChild:v,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(d,m)=>{if(!m)return;const y=d.getState().scene;y.__r3f&&(y.__r3f.root=d,v(y,m))},removeChildFromContainer:(d,m)=>{m&&s(d.getState().scene,m)},insertInContainerBefore:(d,m,y)=>{if(!m||!y)return;const x=d.getState().scene;x.__r3f&&i(x,m,y)},getRootHostContext:()=>null,getChildHostContext:d=>d,finalizeInitialChildren(d){var m;return!!((m=d==null?void 0:d.__r3f)!=null?m:{}).handlers},prepareUpdate(d,m,y,x){var C;if(((C=d==null?void 0:d.__r3f)!=null?C:{}).primitive&&x.object&&x.object!==d)return[!0];{const{args:S=[],children:_,...w}=x,{args:M=[],children:D,...R}=y;if(!Array.isArray(S))throw new Error("R3F: the args prop must be an array!");if(S.some((b,B)=>b!==M[B]))return[!0];const A=Bc(d,w,R,!0);return A.changes.length?[!1,A]:null}},commitUpdate(d,[m,y],x,C,T,S){m?f(d,x,T,S):ml(d,y)},commitMount(d,m,y,x){var C;const T=(C=d.__r3f)!=null?C:{};d.raycast&&T.handlers&&T.eventCount&&d.__r3f.root.getState().internal.interaction.push(d)},getPublicInstance:d=>d,prepareForCommit:()=>null,preparePortalMount:d=>hi(d.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(d){var m;const{attach:y,parent:x}=(m=d.__r3f)!=null?m:{};y&&x&&Bu(x,d,y),d.isObject3D&&(d.visible=!1),pi(d)},unhideInstance(d,m){var y;const{attach:x,parent:C}=(y=d.__r3f)!=null?y:{};x&&C&&vl(C,d,x),(d.isObject3D&&m.visible==null||m.visible)&&(d.visible=!0),pi(d)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():mi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&nt.fun(performance.now)?performance.now:nt.fun(Date.now)?Date.now:()=>0,scheduleTimeout:nt.fun(setTimeout)?setTimeout:void 0,cancelTimeout:nt.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ml}}var zu,Iu;const pl=a=>"colorSpace"in a||"outputColorSpace"in a,Dc=()=>{var a;return(a=Kl.ColorManagement)!=null?a:null},Oc=a=>a&&a.isOrthographicCamera,Qd=a=>a&&a.hasOwnProperty("current"),oo=typeof window<"u"&&((zu=window.document)!=null&&zu.createElement||((Iu=window.navigator)==null?void 0:Iu.product)==="ReactNative")?k.useLayoutEffect:k.useEffect;function zc(a){const n=k.useRef(a);return oo(()=>void(n.current=a),[a]),n}function Xd({set:a}){return oo(()=>(a(new Promise(()=>null)),()=>a(!1)),[a]),null}class Ic extends k.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}Ic.getDerivedStateFromError=()=>({error:!0});const jc="__default",ju=new Map,Yd=a=>a&&!!a.memoized&&!!a.changes;function bc(a){var n;const c=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(a)?Math.min(Math.max(a[0],c),a[1]):a}const Ki=a=>{var n;return(n=a.__r3f)==null?void 0:n.root.getState()},nt={obj:a=>a===Object(a)&&!nt.arr(a)&&typeof a!="function",fun:a=>typeof a=="function",str:a=>typeof a=="string",num:a=>typeof a=="number",boo:a=>typeof a=="boolean",und:a=>a===void 0,arr:a=>Array.isArray(a),equ(a,n,{arrays:c="shallow",objects:v="reference",strict:i=!0}={}){if(typeof a!=typeof n||!!a!=!!n)return!1;if(nt.str(a)||nt.num(a))return a===n;const r=nt.obj(a);if(r&&v==="reference")return a===n;const s=nt.arr(a);if(s&&c==="reference")return a===n;if((s||r)&&a===n)return!0;let f;for(f in a)if(!(f in n))return!1;if(r&&c==="shallow"&&v==="shallow"){for(f in i?n:a)if(!nt.equ(a[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:a)if(a[f]!==n[f])return!1;if(nt.und(f)){if(s&&a.length===0&&n.length===0||r&&Object.keys(a).length===0&&Object.keys(n).length===0)return!0;if(a!==n)return!1}return!0}};function Jd(a){const n={nodes:{},materials:{}};return a&&a.traverse(c=>{c.name&&(n.nodes[c.name]=c),c.material&&!n.materials[c.material.name]&&(n.materials[c.material.name]=c.material)}),n}function Kd(a){a.dispose&&a.type!=="Scene"&&a.dispose();for(const n in a)n.dispose==null||n.dispose(),delete a[n]}function hi(a,n){const c=a;return c.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},a}function Dl(a,n){let c=a;if(n.includes("-")){const v=n.split("-"),i=v.pop();return c=v.reduce((r,s)=>r[s],a),{target:c,key:i}}else return{target:c,key:n}}const bu=/-\d+$/;function vl(a,n,c){if(nt.str(c)){if(bu.test(c)){const r=c.replace(bu,""),{target:s,key:f}=Dl(a,r);Array.isArray(s[f])||(s[f]=[])}const{target:v,key:i}=Dl(a,c);n.__r3f.previousAttach=v[i],v[i]=n}else n.__r3f.previousAttach=c(a,n)}function Bu(a,n,c){var v,i;if(nt.str(c)){const{target:r,key:s}=Dl(a,c),f=n.__r3f.previousAttach;f===void 0?delete r[s]:r[s]=f}else(v=n.__r3f)==null||v.previousAttach==null||v.previousAttach(a,n);(i=n.__r3f)==null||delete i.previousAttach}function Bc(a,{children:n,key:c,ref:v,...i},{children:r,key:s,ref:f,...u}={},h=!1){var d;const m=(d=a==null?void 0:a.__r3f)!=null?d:{},y=Object.entries(i),x=[];if(h){const T=Object.keys(u);for(let S=0;S{var _;if((_=a.__r3f)!=null&&_.primitive&&T==="object"||nt.equ(S,u[T]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(T))return x.push([T,S,!0,[]]);let w=[];T.includes("-")&&(w=T.split("-")),x.push([T,S,!1,w]);for(const M in i){const D=i[M];M.startsWith(`${T}-`)&&x.push([M,D,!1,M.split("-")])}});const C={...i};return m.memoizedProps&&m.memoizedProps.args&&(C.args=m.memoizedProps.args),m.memoizedProps&&m.memoizedProps.attach&&(C.attach=m.memoizedProps.attach),{memoized:C,changes:x}}const qd=typeof process<"u"&&!1;function ml(a,n){var c,v,i;const r=(c=a.__r3f)!=null?c:{},s=r.root,f=(v=s==null||s.getState==null?void 0:s.getState())!=null?v:{},{memoized:u,changes:h}=Yd(n)?n:Bc(a,n),d=r.eventCount;a.__r3f&&(a.__r3f.memoizedProps=u);for(let y=0;yM[D],a),!(w&&w.set))){const[M,...D]=S.reverse();_=D.reverse().reduce((R,A)=>R[A],a),x=M}if(C===jc+"remove")if(_.constructor){let M=ju.get(_.constructor);M||(M=new _.constructor,ju.set(_.constructor,M)),C=M[x]}else C=0;if(T)C?r.handlers[x]=C:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(w&&w.set&&(w.copy||w instanceof fl)){if(Array.isArray(C))w.fromArray?w.fromArray(C):w.set(...C);else if(w.copy&&C&&C.constructor&&(qd?w.constructor.name===C.constructor.name:w.constructor===C.constructor))w.copy(C);else if(C!==void 0){const M=w instanceof ro;!M&&w.setScalar?w.setScalar(C):w instanceof fl&&C instanceof fl?w.mask=C.mask:w.set(C),!Dc()&&!f.linear&&M&&w.convertSRGBToLinear()}}else if(_[x]=C,_[x]instanceof Vl&&_[x].format===ad&&_[x].type===ld){const M=_[x];pl(M)&&pl(f.gl)?M.colorSpace=f.gl.outputColorSpace:M.encoding=f.gl.outputEncoding}pi(a)}if(r.parent&&f.internal&&a.raycast&&d!==r.eventCount){const y=f.internal.interaction.indexOf(a);y>-1&&f.internal.interaction.splice(y,1),r.eventCount&&f.internal.interaction.push(a)}return!(h.length===1&&h[0][0]==="onUpdate")&&h.length&&(i=a.__r3f)!=null&&i.parent&&Ol(a),a}function pi(a){var n,c;const v=(n=a.__r3f)==null||(c=n.root)==null||c.getState==null?void 0:c.getState();v&&v.internal.frames===0&&v.invalidate()}function Ol(a){a.onUpdate==null||a.onUpdate(a)}function $d(a,n){a.manual||(Oc(a)?(a.left=n.width/-2,a.right=n.width/2,a.top=n.height/2,a.bottom=n.height/-2):a.aspect=n.width/n.height,a.updateProjectionMatrix(),a.updateMatrixWorld())}function na(a){return(a.eventObject||a.object).uuid+"/"+a.index+a.instanceId}function e1(){var a;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return mi.DefaultEventPriority;switch((a=n.event)==null?void 0:a.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return mi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return mi.ContinuousEventPriority;default:return mi.DefaultEventPriority}}function Nc(a,n,c,v){const i=c.get(n);i&&(c.delete(n),c.size===0&&(a.delete(v),i.target.releasePointerCapture(v)))}function t1(a,n){const{internal:c}=a.getState();c.interaction=c.interaction.filter(v=>v!==n),c.initialHits=c.initialHits.filter(v=>v!==n),c.hovered.forEach((v,i)=>{(v.eventObject===n||v.object===n)&&c.hovered.delete(i)}),c.capturedMap.forEach((v,i)=>{Nc(c.capturedMap,n,v,i)})}function n1(a){function n(u){const{internal:h}=a.getState(),d=u.offsetX-h.initialClick[0],m=u.offsetY-h.initialClick[1];return Math.round(Math.sqrt(d*d+m*m))}function c(u){return u.filter(h=>["Move","Over","Enter","Out","Leave"].some(d=>{var m;return(m=h.__r3f)==null?void 0:m.handlers["onPointer"+d]}))}function v(u,h){const d=a.getState(),m=new Set,y=[],x=h?h(d.internal.interaction):d.internal.interaction;for(let _=0;_{const M=Ki(_.object),D=Ki(w.object);return!M||!D?_.distance-w.distance:D.events.priority-M.events.priority||_.distance-w.distance}).filter(_=>{const w=na(_);return m.has(w)?!1:(m.add(w),!0)});d.events.filter&&(T=d.events.filter(T,d));for(const _ of T){let w=_.object;for(;w;){var S;(S=w.__r3f)!=null&&S.eventCount&&y.push({..._,eventObject:w}),w=w.parent}}if("pointerId"in u&&d.internal.capturedMap.has(u.pointerId))for(let _ of d.internal.capturedMap.get(u.pointerId).values())m.has(na(_.intersection))||y.push(_.intersection);return y}function i(u,h,d,m){const y=a.getState();if(u.length){const x={stopped:!1};for(const C of u){const T=Ki(C.object)||y,{raycaster:S,pointer:_,camera:w,internal:M}=T,D=new st(_.x,_.y,0).unproject(w),R=oe=>{var G,O;return(G=(O=M.capturedMap.get(oe))==null?void 0:O.has(C.eventObject))!=null?G:!1},A=oe=>{const G={intersection:C,target:h.target};M.capturedMap.has(oe)?M.capturedMap.get(oe).set(C.eventObject,G):M.capturedMap.set(oe,new Map([[C.eventObject,G]])),h.target.setPointerCapture(oe)},b=oe=>{const G=M.capturedMap.get(oe);G&&Nc(M.capturedMap,C.eventObject,G,oe)};let B={};for(let oe in h){let G=h[oe];typeof G!="function"&&(B[oe]=G)}let J={...C,...B,pointer:_,intersections:u,stopped:x.stopped,delta:d,unprojectedPoint:D,ray:S.ray,camera:w,stopPropagation(){const oe="pointerId"in h&&M.capturedMap.get(h.pointerId);if((!oe||oe.has(C.eventObject))&&(J.stopped=x.stopped=!0,M.hovered.size&&Array.from(M.hovered.values()).find(G=>G.eventObject===C.eventObject))){const G=u.slice(0,u.indexOf(C));r([...G,C])}},target:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},currentTarget:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},nativeEvent:h};if(m(J),x.stopped===!0)break}}return u}function r(u){const{internal:h}=a.getState();for(const d of h.hovered.values())if(!u.length||!u.find(m=>m.object===d.object&&m.index===d.index&&m.instanceId===d.instanceId)){const y=d.eventObject.__r3f,x=y==null?void 0:y.handlers;if(h.hovered.delete(na(d)),y!=null&&y.eventCount){const C={...d,intersections:u};x.onPointerOut==null||x.onPointerOut(C),x.onPointerLeave==null||x.onPointerLeave(C)}}}function s(u,h){for(let d=0;dr([]);case"onLostPointerCapture":return h=>{const{internal:d}=a.getState();"pointerId"in h&&d.capturedMap.has(h.pointerId)&&requestAnimationFrame(()=>{d.capturedMap.has(h.pointerId)&&(d.capturedMap.delete(h.pointerId),r([]))})}}return function(d){const{onPointerMissed:m,internal:y}=a.getState();y.lastEvent.current=d;const x=u==="onPointerMove",C=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",S=v(d,x?c:void 0),_=C?n(d):0;u==="onPointerDown"&&(y.initialClick=[d.offsetX,d.offsetY],y.initialHits=S.map(M=>M.eventObject)),C&&!S.length&&_<=2&&(s(d,y.interaction),m&&m(d)),x&&r(S);function w(M){const D=M.eventObject,R=D.__r3f,A=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(A.onPointerOver||A.onPointerEnter||A.onPointerOut||A.onPointerLeave){const b=na(M),B=y.hovered.get(b);B?B.stopped&&M.stopPropagation():(y.hovered.set(b,M),A.onPointerOver==null||A.onPointerOver(M),A.onPointerEnter==null||A.onPointerEnter(M))}A.onPointerMove==null||A.onPointerMove(M)}else{const b=A[u];b?(!C||y.initialHits.includes(D))&&(s(d,y.interaction.filter(B=>!y.initialHits.includes(B))),b(M)):C&&y.initialHits.includes(D)&&s(d,y.interaction.filter(B=>!y.initialHits.includes(B)))}}i(S,d,_,w)}}return{handlePointer:f}}const Gc=a=>!!(a!=null&&a.render),Wc=k.createContext(null),r1=(a,n)=>{const c=Id((f,u)=>{const h=new st,d=new st,m=new st;function y(_=u().camera,w=d,M=u().size){const{width:D,height:R,top:A,left:b}=M,B=D/R;w instanceof st?m.copy(w):m.set(...w);const J=_.getWorldPosition(h).distanceTo(m);if(Oc(_))return{width:D/_.zoom,height:R/_.zoom,top:A,left:b,factor:1,distance:J,aspect:B};{const oe=_.fov*Math.PI/180,G=2*Math.tan(oe/2)*J,O=G*(D/R);return{width:O,height:G,top:A,left:b,factor:D/O,distance:J,aspect:B}}}let x;const C=_=>f(w=>({performance:{...w.performance,current:_}})),T=new Gr;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(_=1)=>a(u(),_),advance:(_,w)=>n(_,w,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new gd,pointer:T,mouse:T,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const _=u();x&&clearTimeout(x),_.performance.current!==_.performance.min&&C(_.performance.min),x=setTimeout(()=>C(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:y},setEvents:_=>f(w=>({...w,events:{...w.events,..._}})),setSize:(_,w,M,D,R)=>{const A=u().camera,b={width:_,height:w,top:D||0,left:R||0,updateStyle:M};f(B=>({size:b,viewport:{...B.viewport,...y(A,d,b)}}))},setDpr:_=>f(w=>{const M=bc(_);return{viewport:{...w.viewport,dpr:M,initialDpr:w.viewport.initialDpr||M}}}),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:k.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(_,w,M)=>{const D=u().internal;return D.priority=D.priority+(w>0?1:0),D.subscribers.push({ref:_,priority:w,store:M}),D.subscribers=D.subscribers.sort((R,A)=>R.priority-A.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(w>0?1:0),R.subscribers=R.subscribers.filter(A=>A.ref!==_))}}}}}),v=c.getState();let i=v.size,r=v.viewport.dpr,s=v.camera;return c.subscribe(()=>{const{camera:f,size:u,viewport:h,gl:d,set:m}=c.getState();if(u.width!==i.width||u.height!==i.height||h.dpr!==r){var y;i=u,r=h.dpr,$d(f,u),d.setPixelRatio(h.dpr);const x=(y=u.updateStyle)!=null?y:typeof HTMLCanvasElement<"u"&&d.domElement instanceof HTMLCanvasElement;d.setSize(u.width,u.height,x)}f!==s&&(s=f,m(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),c.subscribe(f=>a(f)),c};function ql(a,n){const c={callback:a};return n.add(c),()=>void n.delete(c)}let ra,Hc=new Set,Vc=new Set,Zc=new Set;const i1=a=>ql(a,Hc),o1=a=>ql(a,Vc),a1=a=>ql(a,Zc);function gl(a,n){if(a.size)for(const{callback:c}of a.values())c(n)}function qi(a,n){switch(a){case"before":return gl(Hc,n);case"after":return gl(Vc,n);case"tail":return gl(Zc,n)}}let yl,xl;function wl(a,n,c){let v=n.clock.getDelta();for(n.frameloop==="never"&&typeof a=="number"&&(v=a-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=a),yl=n.internal.subscribers,ra=0;ra0)&&!((h=i.gl.xr)!=null&&h.isPresenting)&&(c+=wl(u,i))}if(qi("after",u),c===0)return qi("tail",u),n=!1,cancelAnimationFrame(v)}function s(u,h=1){var d;if(!u)return a.forEach(m=>s(m.store.getState()),h);(d=u.gl.xr)!=null&&d.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+h),n||(n=!0,requestAnimationFrame(r)))}function f(u,h=!0,d,m){if(h&&qi("before",u),d)wl(u,d,m);else for(const y of a.values())wl(u,y.store.getState());h&&qi("after",u)}return{loop:r,invalidate:s,advance:f}}function Qc(){const a=k.useContext(Wc);if(!a)throw new Error("R3F: Hooks can only be used within the Canvas component!");return a}function Si(a=c=>c,n){return Qc()(a,n)}function ao(a,n=0){const c=Qc(),v=c.getState().internal.subscribe,i=zc(a);return oo(()=>v(i,n,c),[n,v,c]),null}const Nu=new WeakMap;function Xc(a,n){return function(c,...v){let i=Nu.get(c);return i||(i=new c,Nu.set(c,i)),a&&a(i),Promise.all(v.map(r=>new Promise((s,f)=>i.load(r,u=>{u.scene&&Object.assign(u,Jd(u.scene)),s(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 Yc(a,n,c,v){const i=Array.isArray(n)?n:[n],r=Gd(Xc(c,v),[a,...i],{equal:nt.equ});return Array.isArray(n)?r:r[0]}Yc.preload=function(a,n,c){const v=Array.isArray(n)?n:[n];return Wd(Xc(c),[a,...v])};Yc.clear=function(a,n){const c=Array.isArray(n)?n:[n];return Hd([a,...c])};const wi=new Map,{invalidate:Gu,advance:Wu}=l1(wi),{reconciler:ha,applyProps:ci}=Zd(wi,e1),fi={objects:"shallow",strict:!1},s1=(a,n)=>{const c=typeof a=="function"?a(n):a;return Gc(c)?c:new dd({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...a})};function u1(a,n){const c=typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement;if(n){const{width:v,height:i,top:r,left:s,updateStyle:f=c}=n;return{width:v,height:i,top:r,left:s,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement&&a.parentElement){const{width:v,height:i,top:r,left:s}=a.parentElement.getBoundingClientRect();return{width:v,height:i,top:r,left:s,updateStyle:c}}else if(typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return{width:a.width,height:a.height,top:0,left:0,updateStyle:c};return{width:0,height:0,top:0,left:0}}function c1(a){const n=wi.get(a),c=n==null?void 0:n.fiber,v=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=v||r1(Gu,Wu),s=c||ha.createContainer(r,mi.ConcurrentRoot,null,!1,null,"",i,null);n||wi.set(a,{fiber:s,store:r});let f,u=!1,h;return{configure(d={}){let{gl:m,size:y,scene:x,events:C,onCreated:T,shadows:S=!1,linear:_=!1,flat:w=!1,legacy:M=!1,orthographic:D=!1,frameloop:R="always",dpr:A=[1,2],performance:b,raycaster:B,camera:J,onPointerMissed:oe}=d,G=r.getState(),O=G.gl;G.gl||G.set({gl:O=s1(m,a)});let ee=G.raycaster;ee||G.set({raycaster:ee=new ud});const{params:q,...ne}=B||{};if(nt.equ(ne,ee,fi)||ci(ee,{...ne}),nt.equ(q,ee.params,fi)||ci(ee,{params:{...ee.params,...q}}),!G.camera||G.camera===h&&!nt.equ(h,J,fi)){h=J;const I=J instanceof hd,Q=I?J:D?new Zl(0,0,0,0,.1,1e3):new Ql(75,0,.1,1e3);I||(Q.position.z=5,J&&ci(Q,J),!G.camera&&!(J!=null&&J.rotation)&&Q.lookAt(0,0,0)),G.set({camera:Q}),ee.camera=Q}if(!G.scene){let I;x instanceof da?I=x:(I=new da,x&&ci(I,x)),G.set({scene:hi(I)})}if(!G.xr){var ae;const I=(H,re)=>{const X=r.getState();X.frameloop!=="never"&&Wu(H,!0,X,re)},Q=()=>{const H=r.getState();H.gl.xr.enabled=H.gl.xr.isPresenting,H.gl.xr.setAnimationLoop(H.gl.xr.isPresenting?I:null),H.gl.xr.isPresenting||Gu(H)},Y={connect(){const H=r.getState().gl;H.xr.addEventListener("sessionstart",Q),H.xr.addEventListener("sessionend",Q)},disconnect(){const H=r.getState().gl;H.xr.removeEventListener("sessionstart",Q),H.xr.removeEventListener("sessionend",Q)}};typeof((ae=O.xr)==null?void 0:ae.addEventListener)=="function"&&Y.connect(),G.set({xr:Y})}if(O.shadowMap){const I=O.shadowMap.enabled,Q=O.shadowMap.type;if(O.shadowMap.enabled=!!S,nt.boo(S))O.shadowMap.type=dl;else if(nt.str(S)){var ve;const Y={basic:pd,percentage:vd,soft:dl,variance:md};O.shadowMap.type=(ve=Y[S])!=null?ve:dl}else nt.obj(S)&&Object.assign(O.shadowMap,S);(I!==O.shadowMap.enabled||Q!==O.shadowMap.type)&&(O.shadowMap.needsUpdate=!0)}const Z=Dc();Z&&("enabled"in Z?Z.enabled=!M:"legacyMode"in Z&&(Z.legacyMode=M)),ci(O,{outputEncoding:_?3e3:3001,toneMapping:w?cd:fd}),G.legacy!==M&&G.set(()=>({legacy:M})),G.linear!==_&&G.set(()=>({linear:_})),G.flat!==w&&G.set(()=>({flat:w})),m&&!nt.fun(m)&&!Gc(m)&&!nt.equ(m,O,fi)&&ci(O,m),C&&!G.events.handlers&&G.set({events:C(r)});const P=u1(a,y);return nt.equ(P,G.size,fi)||G.setSize(P.width,P.height,P.updateStyle,P.top,P.left),A&&G.viewport.dpr!==bc(A)&&G.setDpr(A),G.frameloop!==R&&G.setFrameloop(R),G.onPointerMissed||G.set({onPointerMissed:oe}),b&&!nt.equ(b,G.performance,fi)&&G.set(I=>({performance:{...I.performance,...b}})),f=T,u=!0,this},render(d){return u||this.configure(),ha.updateContainer(k.createElement(f1,{store:r,children:d,onCreated:f,rootElement:a}),s,null,()=>{}),r},unmount(){Jc(a)}}}function f1({store:a,children:n,onCreated:c,rootElement:v}){return oo(()=>{const i=a.getState();i.set(r=>({internal:{...r.internal,active:!0}})),c&&c(i),a.getState().events.connected||i.events.connect==null||i.events.connect(v)},[]),k.createElement(Wc.Provider,{value:a},n)}function Jc(a,n){const c=wi.get(a),v=c==null?void 0:c.fiber;if(v){const i=c==null?void 0:c.store.getState();i&&(i.internal.active=!1),ha.updateContainer(null,v,null,()=>{i&&setTimeout(()=>{try{var r,s,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(s=r.renderLists)==null||s.dispose==null||s.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),Kd(i),wi.delete(a),n&&n(a)}catch{}},500)})}}ha.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:k.version});function zl(a,n,c){var v,i,r,s,f;n==null&&(n=100);function u(){var d=Date.now()-s;d=0?v=setTimeout(u,n-d):(v=null,c||(f=a.apply(r,i),r=i=null))}var h=function(){r=this,i=arguments,s=Date.now();var d=c&&!v;return v||(v=setTimeout(u,n)),d&&(f=a.apply(r,i),r=i=null),f};return h.clear=function(){v&&(clearTimeout(v),v=null)},h.flush=function(){v&&(f=a.apply(r,i),r=i=null,clearTimeout(v),v=null)},h}zl.debounce=zl;var d1=zl;const Hu=Cc(d1);function h1(a){let{debounce:n,scroll:c,polyfill:v,offsetSize:i}=a===void 0?{debounce:0,scroll:!1,offsetSize:!1}:a;const r=v||(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[s,f]=k.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=k.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),h=n?typeof n=="number"?n:n.scroll:null,d=n?typeof n=="number"?n:n.resize:null,m=k.useRef(!1);k.useEffect(()=>(m.current=!0,()=>void(m.current=!1)));const[y,x,C]=k.useMemo(()=>{const w=()=>{if(!u.current.element)return;const{left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe}=u.current.element.getBoundingClientRect(),G={left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe};u.current.element instanceof HTMLElement&&i&&(G.height=u.current.element.offsetHeight,G.width=u.current.element.offsetWidth),Object.freeze(G),m.current&&!g1(u.current.lastBounds,G)&&f(u.current.lastBounds=G)};return[w,d?Hu(w,d):w,h?Hu(w,h):w]},[f,i,h,d]);function T(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",C,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function S(){u.current.element&&(u.current.resizeObserver=new r(C),u.current.resizeObserver.observe(u.current.element),c&&u.current.scrollContainers&&u.current.scrollContainers.forEach(w=>w.addEventListener("scroll",C,{capture:!0,passive:!0})))}const _=w=>{!w||w===u.current.element||(T(),u.current.element=w,u.current.scrollContainers=Kc(w),S())};return v1(C,!!c),p1(x),k.useEffect(()=>{T(),S()},[c,C,x]),k.useEffect(()=>T,[]),[_,s,y]}function p1(a){k.useEffect(()=>{const n=a;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[a])}function v1(a,n){k.useEffect(()=>{if(n){const c=a;return window.addEventListener("scroll",c,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",c,!0)}},[a,n])}function Kc(a){const n=[];if(!a||a===document.body)return n;const{overflow:c,overflowX:v,overflowY:i}=window.getComputedStyle(a);return[c,v,i].some(r=>r==="auto"||r==="scroll")&&n.push(a),[...n,...Kc(a.parentElement)]}const m1=["x","y","top","bottom","left","right","width","height"],g1=(a,n)=>m1.every(c=>a[c]===n[c]);var y1=Object.defineProperty,x1=Object.defineProperties,w1=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,S1=Object.prototype.hasOwnProperty,C1=Object.prototype.propertyIsEnumerable,Zu=(a,n,c)=>n in a?y1(a,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[n]=c,Qu=(a,n)=>{for(var c in n||(n={}))S1.call(n,c)&&Zu(a,c,n[c]);if(Vu)for(var c of Vu(n))C1.call(n,c)&&Zu(a,c,n[c]);return a},_1=(a,n)=>x1(a,w1(n));function qc(a,n,c){if(!a)return;if(c(a)===!0)return a;let v=n?a.return:a.child;for(;v;){const i=qc(v,n,c);if(i)return i;v=n?null:v.sibling}}function $c(a){try{return Object.defineProperties(a,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return a}}const $l=$c(k.createContext(null));class ef extends k.Component{render(){return k.createElement($l.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Xu,ReactCurrentDispatcher:Yu}=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E1(){const a=k.useContext($l);if(a===null)throw new Error("its-fine: useFiber must be called within a !");const n=k.useId();return k.useMemo(()=>{for(const v of[Xu==null?void 0:Xu.current,a,a==null?void 0:a.alternate]){if(!v)continue;const i=qc(v,!1,r=>{let s=r.memoizedState;for(;s;){if(s.memoizedState===n)return!0;s=s.next}});if(i)return i}},[a,n])}function T1(){var a,n;const c=E1(),[v]=k.useState(()=>new Map);v.clear();let i=c;for(;i;){const r=(a=i.type)==null?void 0:a._context;r&&r!==$l&&!v.has(r)&&v.set(r,(n=Yu==null?void 0:Yu.current)==null?void 0:n.readContext($c(r))),i=i.return}return v}function M1(){const a=T1();return k.useMemo(()=>Array.from(a.keys()).reduce((n,c)=>v=>k.createElement(n,null,k.createElement(c.Provider,_1(Qu({},v),{value:a.get(c)}))),n=>k.createElement(ef,Qu({},n))),[a])}const Sl={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 k1(a){const{handlePointer:n}=n1(a);return{priority:1,enabled:!0,compute(c,v,i){v.pointer.set(c.offsetX/v.size.width*2-1,-(c.offsetY/v.size.height)*2+1),v.raycaster.setFromCamera(v.pointer,v.camera)},connected:void 0,handlers:Object.keys(Sl).reduce((c,v)=>({...c,[v]:n(v)}),{}),update:()=>{var c;const{events:v,internal:i}=a.getState();(c=i.lastEvent)!=null&&c.current&&v.handlers&&v.handlers.onPointerMove(i.lastEvent.current)},connect:c=>{var v;const{set:i,events:r}=a.getState();r.disconnect==null||r.disconnect(),i(s=>({events:{...s.events,connected:c}})),Object.entries((v=r.handlers)!=null?v:[]).forEach(([s,f])=>{const[u,h]=Sl[s];c.addEventListener(u,f,{passive:h})})},disconnect:()=>{const{set:c,events:v}=a.getState();if(v.connected){var i;Object.entries((i=v.handlers)!=null?i:[]).forEach(([r,s])=>{if(v&&v.connected instanceof HTMLElement){const[f]=Sl[r];v.connected.removeEventListener(f,s)}}),c(r=>({events:{...r.events,connected:void 0}}))}}}}const P1=k.forwardRef(function({children:n,fallback:c,resize:v,style:i,gl:r,events:s=k1,eventSource:f,eventPrefix:u,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,onPointerMissed:D,onCreated:R,...A},b){k.useMemo(()=>Vd(yd),[]);const B=M1(),[J,oe]=h1({scroll:!0,debounce:{scroll:50,resize:0},...v}),G=k.useRef(null),O=k.useRef(null);k.useImperativeHandle(b,()=>G.current);const ee=zc(D),[q,ne]=k.useState(!1),[ae,ve]=k.useState(!1);if(q)throw q;if(ae)throw ae;const Z=k.useRef(null);oo(()=>{const W=G.current;oe.width>0&&oe.height>0&&W&&(Z.current||(Z.current=c1(W)),Z.current.configure({gl:r,events:s,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,size:oe,onPointerMissed:(...P)=>ee.current==null?void 0:ee.current(...P),onCreated:P=>{P.events.connect==null||P.events.connect(f?Qd(f)?f.current:f:O.current),u&&P.setEvents({compute:(I,Q)=>{const Y=I[u+"X"],H=I[u+"Y"];Q.pointer.set(Y/Q.size.width*2-1,-(H/Q.size.height)*2+1),Q.raycaster.setFromCamera(Q.pointer,Q.camera)}}),R==null||R(P)}}),Z.current.render(k.createElement(B,null,k.createElement(Ic,{set:ve},k.createElement(k.Suspense,{fallback:k.createElement(Xd,{set:ne})},n)))))}),k.useEffect(()=>{const W=G.current;if(W)return()=>Jc(W)},[]);const j=f?"none":"auto";return k.createElement("div",Nr({ref:O,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:j,...i}},A),k.createElement("div",{ref:J,style:{width:"100%",height:"100%"}},k.createElement("canvas",{ref:G,style:{display:"block"}},c)))}),L1=k.forwardRef(function(n,c){return k.createElement(ef,null,k.createElement(P1,Nr({},n,{ref:c})))}),lo=new st,es=new st,U1=new st;function R1(a,n,c){const v=lo.setFromMatrixPosition(a.matrixWorld);v.project(n);const i=c.width/2,r=c.height/2;return[v.x*i+i,-(v.y*r)+r]}function F1(a,n){const c=lo.setFromMatrixPosition(a.matrixWorld),v=es.setFromMatrixPosition(n.matrixWorld),i=c.sub(v),r=n.getWorldDirection(U1);return i.angleTo(r)>Math.PI/2}function A1(a,n,c,v){const i=lo.setFromMatrixPosition(a.matrixWorld),r=i.clone();r.project(n),c.setFromCamera(r,n);const s=c.intersectObjects(v,!0);if(s.length){const f=s[0].distance;return i.distanceTo(c.ray.origin)Math.abs(a)<1e-10?0:a;function tf(a,n,c=""){let v="matrix3d(";for(let i=0;i!==16;i++)v+=Il(n[i]*a.elements[i])+(i!==15?",":")");return c+v}const z1=(a=>n=>tf(n,a))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),I1=(a=>(n,c)=>tf(n,a(c),"translate(-50%,-50%)"))(a=>[1/a,1/a,1/a,1,-1/a,-1/a,-1/a,-1,1/a,1/a,1/a,1,1,1,1,1]);function j1(a){return a&&typeof a=="object"&&"current"in a}const hp=k.forwardRef(({children:a,eps:n=.001,style:c,className:v,prepend:i,center:r,fullscreen:s,portal:f,distanceFactor:u,sprite:h=!1,transform:d=!1,occlude:m,onOcclude:y,castShadow:x,receiveShadow:C,material:T,geometry:S,zIndexRange:_=[16777271,0],calculatePosition:w=R1,as:M="div",wrapperClass:D,pointerEvents:R="auto",...A},b)=>{const{gl:B,camera:J,scene:oe,size:G,raycaster:O,events:ee,viewport:q}=Si(),[ne]=k.useState(()=>document.createElement(M)),ae=k.useRef(),ve=k.useRef(null),Z=k.useRef(0),j=k.useRef([0,0]),W=k.useRef(null),P=k.useRef(null),I=(f==null?void 0:f.current)||ee.connected||B.domElement.parentNode,Q=k.useRef(null),Y=k.useRef(!1),H=k.useMemo(()=>m&&m!=="blending"||Array.isArray(m)&&m.length&&j1(m[0]),[m]);k.useLayoutEffect(()=>{const fe=B.domElement;m&&m==="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)},[m]),k.useLayoutEffect(()=>{if(ve.current){const fe=ae.current=_c(ne);if(oe.updateMatrixWorld(),d)ne.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const K=w(ve.current,J,G);ne.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${K[0]}px,${K[1]}px,0);transform-origin:0 0;`}return I&&(i?I.prepend(ne):I.appendChild(ne)),()=>{I&&I.removeChild(ne),fe.unmount()}}},[I,d]),k.useLayoutEffect(()=>{D&&(ne.className=D)},[D]);const re=k.useMemo(()=>d?{position:"absolute",top:0,left:0,width:G.width,height:G.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...s&&{top:-G.height/2,left:-G.width/2,width:G.width,height:G.height},...c},[c,r,s,G,d]),X=k.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);k.useLayoutEffect(()=>{if(Y.current=!1,d){var fe;(fe=ae.current)==null||fe.render(k.createElement("div",{ref:W,style:re},k.createElement("div",{ref:P,style:X},k.createElement("div",{ref:b,className:v,style:c,children:a}))))}else{var K;(K=ae.current)==null||K.render(k.createElement("div",{ref:b,style:re,className:v,children:a}))}});const te=k.useRef(!0);ao(fe=>{if(ve.current){J.updateMatrixWorld(),ve.current.updateWorldMatrix(!0,!1);const K=d?j.current:w(ve.current,J,G);if(d||Math.abs(Z.current-J.zoom)>n||Math.abs(j.current[0]-K[0])>n||Math.abs(j.current[1]-K[1])>n){const $=F1(ve.current,J);let xe=!1;H&&(m!=="blending"?xe=[oe]:Array.isArray(m)&&(xe=m.map(ke=>ke.current)));const Re=te.current;if(xe){const ke=A1(ve.current,J,O,xe);te.current=ke&&!$}else te.current=!$;Re!==te.current&&(y?y(!te.current):ne.style.display=te.current?"block":"none");const ce=Math.floor(_[0]/2),Se=m?H?[_[0],ce]:[ce-1,0]:_;if(ne.style.zIndex=`${O1(ve.current,J,Se)}`,d){const[ke,le]=[G.width/2,G.height/2],Ce=J.projectionMatrix.elements[5]*le,{isOrthographicCamera:pe,top:ie,left:Pe,bottom:ye,right:we}=J,me=z1(J.matrixWorldInverse),We=pe?`scale(${Ce})translate(${Il(-(we+Pe)/2)}px,${Il((ie+ye)/2)}px)`:`translateZ(${Ce}px)`;let Oe=ve.current.matrixWorld;h&&(Oe=J.matrixWorldInverse.clone().transpose().copyPosition(Oe).scale(ve.current.scale),Oe.elements[3]=Oe.elements[7]=Oe.elements[11]=0,Oe.elements[15]=1),ne.style.width=G.width+"px",ne.style.height=G.height+"px",ne.style.perspective=pe?"":`${Ce}px`,W.current&&P.current&&(W.current.style.transform=`${We}${me}translate(${ke}px,${le}px)`,P.current.style.transform=I1(Oe,1/((u||10)/400)))}else{const ke=u===void 0?1:D1(ve.current,J)*u;ne.style.transform=`translate3d(${K[0]}px,${K[1]}px,0) scale(${ke})`}j.current=K,Z.current=J.zoom}}if(!H&&Q.current&&!Y.current)if(d){if(W.current){const K=W.current.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const{isOrthographicCamera:$}=J;if($||S)A.scale&&(Array.isArray(A.scale)?A.scale instanceof st?Q.current.scale.copy(A.scale.clone().divideScalar(1)):Q.current.scale.set(1/A.scale[0],1/A.scale[1],1/A.scale[2]):Q.current.scale.setScalar(1/A.scale));else{const xe=(u||10)/400,Re=K.clientWidth*xe,ce=K.clientHeight*xe;Q.current.scale.set(Re,ce,1)}Y.current=!0}}}else{const K=ne.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const $=1/q.factor,xe=K.clientWidth*$,Re=K.clientHeight*$;Q.current.scale.set(xe,Re,1),Y.current=!0}Q.current.lookAt(fe.camera.position)}});const ue=k.useMemo(()=>({vertexShader:d?void 0:` /* This shader is from the THREE's SpriteMaterial. We need to turn the backing plane into a Sprite @@ -69,7 +69,7 @@ No matching component was found for: void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } - `}),[d]);return P.createElement("group",yi({},A,{ref:ve}),m&&!H&&P.createElement("mesh",{castShadow:x,receiveShadow:C,ref:Q},S||P.createElement("planeGeometry",null),T||P.createElement("shaderMaterial",{side:Xl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function hp(l){return function(n){l.forEach(function(c){typeof c=="function"?c(n):c!=null&&(c.current=n)})}}function j1(l){let n=0;for(let v in l.attributes){const i=l.getAttribute(v);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const c=l.getIndex();return n+=c?c.count*c.itemSize*c.array.BYTES_PER_ELEMENT:0,n}const Ju=new pa,ia=new st;class ts extends Tc{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],c=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],v=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(v),this.setAttribute("position",new Ul(n,3)),this.setAttribute("uv",new Ul(c,2))}applyMatrix4(n){const c=this.attributes.instanceStart,v=this.attributes.instanceEnd;return c!==void 0&&(c.applyMatrix4(n),v.applyMatrix4(n),c.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(n){let c;n instanceof Float32Array?c=n:Array.isArray(n)&&(c=new Float32Array(n));const v=new Rl(c,6,1);return this.setAttribute("instanceStart",new pi(v,3,0)),this.setAttribute("instanceEnd",new pi(v,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(n){let c;n instanceof Float32Array?c=n:Array.isArray(n)&&(c=new Float32Array(n));const v=new Rl(c,6,1);return this.setAttribute("instanceColorStart",new pi(v,3,0)),this.setAttribute("instanceColorEnd",new pi(v,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 yd(n.geometry)),this}fromLineSegments(n){const c=n.geometry;return this.setPositions(c.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new pa);const n=this.attributes.instanceStart,c=this.attributes.instanceEnd;n!==void 0&&c!==void 0&&(this.boundingBox.setFromBufferAttribute(n),Ju.setFromBufferAttribute(c),this.boundingBox.union(Ju))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Yl),this.boundingBox===null&&this.computeBoundingBox();const n=this.attributes.instanceStart,c=this.attributes.instanceEnd;if(n!==void 0&&c!==void 0){const v=this.boundingSphere.center;this.boundingBox.getCenter(v);let i=0;for(let r=0,s=n.count;r #include #include @@ -451,20 +451,20 @@ No matching component was found for: gl_FragColor = vec4( diffuseColor.rgb, alpha ); #include - #include <${parseInt(wd.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> + #include <${parseInt(Sd.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(c){this.uniforms.diffuse.value=c}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(c){c===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(c){this.uniforms.linewidth.value=c}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(c){!!c!="USE_DASH"in this.defines&&(this.needsUpdate=!0),c===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(c){this.uniforms.dashScale.value=c}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(c){this.uniforms.dashSize.value=c}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(c){this.uniforms.dashOffset.value=c}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(c){this.uniforms.gapSize.value=c}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(c){this.uniforms.opacity.value=c}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(c){this.uniforms.resolution.value.copy(c)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(c){!!c!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),c===!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 Ku=new st,qu=new st,At=new xi,Dt=new xi,Vn=new xi,Cl=new st,_l=new Mc,Bt=new Sd,$u=new st,oa=new pa,aa=new Yl,Zn=new xi;let Qn,jl,rf,br;function ec(l,n,c){return Zn.set(0,0,-n,1).applyMatrix4(l.projectionMatrix),Zn.multiplyScalar(1/Zn.w),Zn.x=br/c.width,Zn.y=br/c.height,Zn.applyMatrix4(l.projectionMatrixInverse),Zn.multiplyScalar(1/Zn.w),Math.abs(Math.max(Zn.x,Zn.y))}function b1(l,n){for(let c=0,v=jl.count;cd&&Dt.z>d)continue;if(At.z>d){const w=At.z-Dt.z,M=(At.z-d)/w;At.lerp(Dt,M)}else if(Dt.z>d){const w=Dt.z-At.z,M=(Dt.z-d)/w;Dt.lerp(At,M)}At.applyMatrix4(v),Dt.applyMatrix4(v),At.multiplyScalar(1/At.w),Dt.multiplyScalar(1/Dt.w),At.x*=r.x/2,At.y*=r.y/2,Dt.x*=r.x/2,Dt.y*=r.y/2,Bt.start.copy(At),Bt.start.z=0,Bt.end.copy(Dt),Bt.end.z=0;const C=Bt.closestPointToPointParameter(Cl,!0);Bt.at(C,$u);const T=kc.lerp(At.z,Dt.z,C),S=T>=-1&&T<=1,_=Cl.distanceTo($u)C.size),m=P.useMemo(()=>s?new of:new N1,[s]),[y]=P.useState(()=>new ns),x=P.useMemo(()=>{const C=s?new ts:new nf,T=n.map(S=>{const _=Array.isArray(S);return S instanceof st?[S.x,S.y,S.z]:S instanceof Nr?[S.x,S.y,0]:_&&S.length===3?[S[0],S[1],S[2]]:_&&S.length===2?[S[0],S[1],0]:S});if(C.setPositions(T.flat()),v){const S=v.map(_=>_ instanceof ro?_.toArray():_);C.setColors(S.flat())}return C},[n,s,v]);return P.useLayoutEffect(()=>{m.computeLineDistances()},[n,m]),P.useLayoutEffect(()=>{f?y.defines.USE_DASH="":delete y.defines.USE_DASH,y.needsUpdate=!0},[f,y]),P.useEffect(()=>()=>x.dispose(),[x]),P.createElement("primitive",yi({object:m,ref:h},u),P.createElement("primitive",{object:x,attach:"geometry"}),P.createElement("primitive",yi({object:y,attach:"material",color:c,vertexColors:!!v,resolution:[d.width,d.height],linewidth:i??r,dashed:f},u)))});function G1(){var l=Object.create(null);function n(i,r){var s=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var h=i.init;h===void 0&&(h=function(){});var d=i.getTransferables;if(d===void 0&&(d=null),!l[s])try{u=u.map(function(y){return y&&y.isWorkerModule&&(n(y,function(x){if(x instanceof Error)throw x}),y=l[y.id].value),y}),h=v("<"+f+">.init",h),d&&(d=v("<"+f+">.getTransferables",d));var m=null;typeof h=="function"?m=h.apply(void 0,u):console.error("worker module init function failed to rehydrate"),l[s]={id:s,value:m,getTransferables:d},r(m)}catch(y){y&&y.noLog||console.error(y),r(y)}}function c(i,r){var s,f=i.id,u=i.args;(!l[f]||typeof l[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var h=(s=l[f]).value.apply(s,u);h&&typeof h.then=="function"?h.then(d,function(m){return r(m instanceof Error?m:new Error(""+m))}):d(h)}catch(m){r(m)}function d(m){try{var y=l[f].getTransferables&&l[f].getTransferables(m);(!y||!Array.isArray(y)||!y.length)&&(y=void 0),r(m,y)}catch(x){console.error(x),r(x)}}}function v(i,r){var s=void 0;self.troikaDefine=function(u){return s=u};var f=URL.createObjectURL(new Blob(["/** "+i.replace(/\*/g,"")+` **/ + `,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(c){this.uniforms.diffuse.value=c}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(c){c===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(c){this.uniforms.linewidth.value=c}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(c){!!c!="USE_DASH"in this.defines&&(this.needsUpdate=!0),c===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(c){this.uniforms.dashScale.value=c}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(c){this.uniforms.dashSize.value=c}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(c){this.uniforms.dashOffset.value=c}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(c){this.uniforms.gapSize.value=c}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(c){this.uniforms.opacity.value=c}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(c){this.uniforms.resolution.value.copy(c)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(c){!!c!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),c===!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 Ku=new st,qu=new st,At=new xi,Dt=new xi,Vn=new xi,Cl=new st,_l=new Mc,Bt=new Cd,$u=new st,oa=new pa,aa=new Yl,Zn=new xi;let Qn,jl,rf,br;function ec(a,n,c){return Zn.set(0,0,-n,1).applyMatrix4(a.projectionMatrix),Zn.multiplyScalar(1/Zn.w),Zn.x=br/c.width,Zn.y=br/c.height,Zn.applyMatrix4(a.projectionMatrixInverse),Zn.multiplyScalar(1/Zn.w),Math.abs(Math.max(Zn.x,Zn.y))}function B1(a,n){for(let c=0,v=jl.count;cd&&Dt.z>d)continue;if(At.z>d){const w=At.z-Dt.z,M=(At.z-d)/w;At.lerp(Dt,M)}else if(Dt.z>d){const w=Dt.z-At.z,M=(Dt.z-d)/w;Dt.lerp(At,M)}At.applyMatrix4(v),Dt.applyMatrix4(v),At.multiplyScalar(1/At.w),Dt.multiplyScalar(1/Dt.w),At.x*=r.x/2,At.y*=r.y/2,Dt.x*=r.x/2,Dt.y*=r.y/2,Bt.start.copy(At),Bt.start.z=0,Bt.end.copy(Dt),Bt.end.z=0;const C=Bt.closestPointToPointParameter(Cl,!0);Bt.at(C,$u);const T=kc.lerp(At.z,Dt.z,C),S=T>=-1&&T<=1,_=Cl.distanceTo($u)C.size),m=k.useMemo(()=>s?new of:new G1,[s]),[y]=k.useState(()=>new ns),x=k.useMemo(()=>{const C=s?new ts:new nf,T=n.map(S=>{const _=Array.isArray(S);return S instanceof st?[S.x,S.y,S.z]:S instanceof Gr?[S.x,S.y,0]:_&&S.length===3?[S[0],S[1],S[2]]:_&&S.length===2?[S[0],S[1],0]:S});if(C.setPositions(T.flat()),v){const S=v.map(_=>_ instanceof ro?_.toArray():_);C.setColors(S.flat())}return C},[n,s,v]);return k.useLayoutEffect(()=>{m.computeLineDistances()},[n,m]),k.useLayoutEffect(()=>{f?y.defines.USE_DASH="":delete y.defines.USE_DASH,y.needsUpdate=!0},[f,y]),k.useEffect(()=>()=>x.dispose(),[x]),k.createElement("primitive",Nr({object:m,ref:h},u),k.createElement("primitive",{object:x,attach:"geometry"}),k.createElement("primitive",Nr({object:y,attach:"material",color:c,vertexColors:!!v,resolution:[d.width,d.height],linewidth:i??r,dashed:f},u)))});function W1(){var a=Object.create(null);function n(i,r){var s=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var h=i.init;h===void 0&&(h=function(){});var d=i.getTransferables;if(d===void 0&&(d=null),!a[s])try{u=u.map(function(y){return y&&y.isWorkerModule&&(n(y,function(x){if(x instanceof Error)throw x}),y=a[y.id].value),y}),h=v("<"+f+">.init",h),d&&(d=v("<"+f+">.getTransferables",d));var m=null;typeof h=="function"?m=h.apply(void 0,u):console.error("worker module init function failed to rehydrate"),a[s]={id:s,value:m,getTransferables:d},r(m)}catch(y){y&&y.noLog||console.error(y),r(y)}}function c(i,r){var s,f=i.id,u=i.args;(!a[f]||typeof a[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var h=(s=a[f]).value.apply(s,u);h&&typeof h.then=="function"?h.then(d,function(m){return r(m instanceof Error?m:new Error(""+m))}):d(h)}catch(m){r(m)}function d(m){try{var y=a[f].getTransferables&&a[f].getTransferables(m);(!y||!Array.isArray(y)||!y.length)&&(y=void 0),r(m,y)}catch(x){console.error(x),r(x)}}}function v(i,r){var s=void 0;self.troikaDefine=function(u){return s=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,s}self.addEventListener("message",function(i){var r=i.data,s=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(h){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:{isCallable:typeof h=="function"}})}),f==="callModule"&&c(u,function(h,d){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:h},d||void 0)})}catch(h){postMessage({messageId:s,success:!1,error:h.stack})}})}function W1(l){var n=function(){for(var c=[],v=arguments.length;v--;)c[v]=arguments[v];return n._getInitResult().then(function(i){if(typeof i=="function")return i.apply(void 0,c);throw new Error("Worker module function was called but `init` did not return a callable function")})};return n._getInitResult=function(){var c=l.dependencies,v=l.init;c=Array.isArray(c)?c.map(function(r){return r&&r._getInitResult?r._getInitResult():r}):[];var i=Promise.all(c).then(function(r){return v.apply(null,r)});return n._getInitResult=function(){return i},i},n}var af=function(){var l=!1;if(typeof window<"u"&&typeof window.document<"u")try{var n=new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"})));n.terminate(),l=!0}catch(c){typeof process<"u",console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+c.message+"]")}return af=function(){return l},l},H1=0,V1=0,El=!1,to=Object.create(null),no=Object.create(null),bl=Object.create(null);function so(l){if((!l||typeof l.init!="function")&&!El)throw new Error("requires `options.init` function");var n=l.dependencies,c=l.init,v=l.getTransferables,i=l.workerId;if(!af())return W1(l);i==null&&(i="#default");var r="workerModule"+ ++H1,s=l.name||r,f=null;n=n&&n.map(function(h){return typeof h=="function"&&!h.workerModuleData&&(El=!0,h=so({workerId:i,name:"<"+s+"> function dependency: "+h.name,init:`function(){return ( +)`],{type:"application/javascript"}));try{importScripts(f)}catch(u){console.error(u)}return URL.revokeObjectURL(f),delete self.troikaDefine,s}self.addEventListener("message",function(i){var r=i.data,s=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(h){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:{isCallable:typeof h=="function"}})}),f==="callModule"&&c(u,function(h,d){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:h},d||void 0)})}catch(h){postMessage({messageId:s,success:!1,error:h.stack})}})}function H1(a){var n=function(){for(var c=[],v=arguments.length;v--;)c[v]=arguments[v];return n._getInitResult().then(function(i){if(typeof i=="function")return i.apply(void 0,c);throw new Error("Worker module function was called but `init` did not return a callable function")})};return n._getInitResult=function(){var c=a.dependencies,v=a.init;c=Array.isArray(c)?c.map(function(r){return r&&r._getInitResult?r._getInitResult():r}):[];var i=Promise.all(c).then(function(r){return v.apply(null,r)});return n._getInitResult=function(){return i},i},n}var af=function(){var a=!1;if(typeof window<"u"&&typeof window.document<"u")try{var n=new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"})));n.terminate(),a=!0}catch(c){typeof process<"u",console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+c.message+"]")}return af=function(){return a},a},V1=0,Z1=0,El=!1,to=Object.create(null),no=Object.create(null),bl=Object.create(null);function so(a){if((!a||typeof a.init!="function")&&!El)throw new Error("requires `options.init` function");var n=a.dependencies,c=a.init,v=a.getTransferables,i=a.workerId;if(!af())return H1(a);i==null&&(i="#default");var r="workerModule"+ ++V1,s=a.name||r,f=null;n=n&&n.map(function(h){return typeof h=="function"&&!h.workerModuleData&&(El=!0,h=so({workerId:i,name:"<"+s+"> function dependency: "+h.name,init:`function(){return ( `+ca(h)+` -)}`}),El=!1),h&&h.workerModuleData&&(h=h.workerModuleData),h});function u(){for(var h=[],d=arguments.length;d--;)h[d]=arguments[d];if(!f){f=tc(i,"registerModule",u.workerModuleData);var m=function(){f=null,no[i].delete(m)};(no[i]||(no[i]=new Set)).add(m)}return f.then(function(y){var x=y.isCallable;if(x)return tc(i,"callModule",{id:r,args:h});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:s,dependencies:n,init:ca(c),getTransferables:v&&ca(v)},u}function Z1(l){no[l]&&no[l].forEach(function(n){n()}),to[l]&&(to[l].terminate(),delete to[l])}function ca(l){var n=l.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function Q1(l){var n=to[l];if(!n){var c=ca(G1);n=to[l]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+l.replace(/\*/g,"")+` **/ +)}`}),El=!1),h&&h.workerModuleData&&(h=h.workerModuleData),h});function u(){for(var h=[],d=arguments.length;d--;)h[d]=arguments[d];if(!f){f=tc(i,"registerModule",u.workerModuleData);var m=function(){f=null,no[i].delete(m)};(no[i]||(no[i]=new Set)).add(m)}return f.then(function(y){var x=y.isCallable;if(x)return tc(i,"callModule",{id:r,args:h});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:s,dependencies:n,init:ca(c),getTransferables:v&&ca(v)},u}function Q1(a){no[a]&&no[a].forEach(function(n){n()}),to[a]&&(to[a].terminate(),delete to[a])}function ca(a){var n=a.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function X1(a){var n=to[a];if(!n){var c=ca(W1);n=to[a]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+a.replace(/\*/g,"")+` **/ -;(`+c+")()"],{type:"application/javascript"}))),n.onmessage=function(v){var i=v.data,r=i.messageId,s=bl[r];if(!s)throw new Error("WorkerModule response with empty or unknown messageId");delete bl[r],s(i)}}return n}function tc(l,n,c){return new Promise(function(v,i){var r=++V1;bl[r]=function(s){s.success?v(s.result):i(new Error("Error in worker "+n+" call: "+s.error))},Q1(l).postMessage({messageId:r,action:n,data:c})})}function lf(){var l=function(n){function c(j,W,k,I,Q,Y,H,re){var X=1-H;re.x=X*X*j+2*X*H*k+H*H*Q,re.y=X*X*W+2*X*H*I+H*H*Y}function v(j,W,k,I,Q,Y,H,re,X,te){var ue=1-X;te.x=ue*ue*ue*j+3*ue*ue*X*k+3*ue*X*X*Q+X*X*X*H,te.y=ue*ue*ue*W+3*ue*ue*X*I+3*ue*X*X*Y+X*X*X*re}function i(j,W){for(var k=/([MLQCZ])([^MLQCZ]*)/g,I,Q,Y,H,re;I=k.exec(j);){var X=I[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(te){return parseFloat(te)});switch(I[1]){case"M":H=Q=X[0],re=Y=X[1];break;case"L":(X[0]!==H||X[1]!==re)&&W("L",H,re,H=X[0],re=X[1]);break;case"Q":{W("Q",H,re,H=X[2],re=X[3],X[0],X[1]);break}case"C":{W("C",H,re,H=X[4],re=X[5],X[0],X[1],X[2],X[3]);break}case"Z":(H!==Q||re!==Y)&&W("L",H,re,Q,Y);break}}}function r(j,W,k){k===void 0&&(k=16);var I={x:0,y:0};i(j,function(Q,Y,H,re,X,te,ue,fe,K){switch(Q){case"L":W(Y,H,re,X);break;case"Q":{for(var $=Y,xe=H,Re=1;Re0;)Oe[Me]=arguments[Me+2];var ze=pe[We]||(pe[We]=k.getUniformLocation(ie,We));k["uniform"+me].apply(k,[ze].concat(Oe))},setAttribute:function(me,We,Oe,Me,ze){var He=Ce[me];He||(He=Ce[me]={buf:k.createBuffer(),loc:k.getAttribLocation(ie,me),data:null}),k.bindBuffer(k.ARRAY_BUFFER,He.buf),k.vertexAttribPointer(He.loc,We,k.FLOAT,!1,0,0),k.enableVertexAttribArray(He.loc),Q?k.vertexAttribDivisor(He.loc,Me):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(He.loc,Me),ze!==He.data&&(k.bufferData(k.ARRAY_BUFFER,ze,Oe),He.data=ze)}})}}}H[ce].transaction(le)},$=function(ce,Se){X++;try{k.activeTexture(k.TEXTURE0+X);var ke=re[ce];ke||(ke=re[ce]=k.createTexture(),k.bindTexture(k.TEXTURE_2D,ke),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST)),k.bindTexture(k.TEXTURE_2D,ke),Se(ke,X)}finally{X--}},xe=function(ce,Se,ke){var le=k.createFramebuffer();te.push(le),k.bindFramebuffer(k.FRAMEBUFFER,le),k.activeTexture(k.TEXTURE0+Se),k.bindTexture(k.TEXTURE_2D,ce),k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,ce,0);try{ke(le)}finally{k.deleteFramebuffer(le),k.bindFramebuffer(k.FRAMEBUFFER,te[--te.length-1]||null)}},Re=function(){Y={},H={},re={},X=-1,te.length=0};var Q=typeof WebGL2RenderingContext<"u"&&k instanceof WebGL2RenderingContext,Y={},H={},re={},X=-1,te=[];k.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(k,I={gl:k,isWebGL2:Q,getExtension:ue,withProgram:K,withTexture:$,withTextureFramebuffer:xe,handleContextLoss:Re})}W(I)}function m(j,W,k,I,Q,Y,H,re){H===void 0&&(H=15),re===void 0&&(re=null),d(j,function(X){var te=X.gl,ue=X.withProgram,fe=X.withTexture;fe("copy",function(K,$){te.texImage2D(te.TEXTURE_2D,0,te.RGBA,Q,Y,0,te.RGBA,te.UNSIGNED_BYTE,W),ue("copy",s,f,function(xe){var Re=xe.setUniform,ce=xe.setAttribute;ce("aUV",2,te.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",$),te.bindFramebuffer(te.FRAMEBUFFER,re||null),te.disable(te.BLEND),te.colorMask(H&8,H&4,H&2,H&1),te.viewport(k,I,Q,Y),te.scissor(k,I,Q,Y),te.drawArrays(te.TRIANGLES,0,3)})})})}function y(j,W,k){var I=j.width,Q=j.height;d(j,function(Y){var H=Y.gl,re=new Uint8Array(I*Q*4);H.readPixels(0,0,I,Q,H.RGBA,H.UNSIGNED_BYTE,re),j.width=W,j.height=k,m(H,re,0,0,I,Q)})}var x=Object.freeze({__proto__:null,withWebGLContext:d,renderImageData:m,resizeWebGLCanvasWithoutClearing:y});function C(j,W,k,I,Q,Y){Y===void 0&&(Y=1);var H=new Uint8Array(j*W),re=I[2]-I[0],X=I[3]-I[1],te=[];r(k,function(ce,Se,ke,le){te.push({x1:ce,y1:Se,x2:ke,y2:le,minX:Math.min(ce,ke),minY:Math.min(Se,le),maxX:Math.max(ce,ke),maxY:Math.max(Se,le)})}),te.sort(function(ce,Se){return ce.maxX-Se.maxX});for(var ue=0;uepe.minX&&Se-lepe.minY){var ie=_(ce,Se,pe.x1,pe.y1,pe.x2,pe.y2);ieSe!=Ce.y2>Se&&ce<(Ce.x2-Ce.x1)*(Se-Ce.y1)/(Ce.y2-Ce.y1)+Ce.x1;pe&&(ke+=Ce.y1p.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 T(le,Ce){var pe=36,ie=0,Pe=new Map,ye=Ce&&new Map,we;return le.split(",").forEach(function me(We){if(We.indexOf("+")!==-1)for(var Oe=+We;Oe--;)me(we);else{we=We;var Me=We.split(">"),ze=Me[0],He=Me[1];ze=String.fromCodePoint(ie+=parseInt(ze,pe)),He=String.fromCodePoint(ie+=parseInt(He,pe)),Pe.set(ze,He),Ce&&ye.set(He,ze)}}),{map:Pe,reverseMap:ye}}var S,_,w;function M(){if(!S){var le=T(C.pairs,!0),Ce=le.map,pe=le.reverseMap;S=Ce,_=pe,w=T(C.canonical,!1).map}}function D(le){return M(),S.get(le)||null}function R(le){return M(),_.get(le)||null}function A(le){return M(),w.get(le)||null}var b=v.L,B=v.R,J=v.EN,oe=v.ES,G=v.ET,O=v.AN,ee=v.CS,q=v.B,ne=v.S,ae=v.ON,ve=v.BN,Z=v.NSM,j=v.AL,W=v.LRO,k=v.RLO,I=v.LRE,Q=v.RLE,Y=v.PDF,H=v.LRI,re=v.RLI,X=v.FSI,te=v.PDI;function ue(le,Ce){for(var pe=125,ie=new Uint32Array(le.length),Pe=0;Pe0)Qe--;else if(ct>0){for(Je=0;!be[be.length-1]._isolate;)be.pop();var Un=be[be.length-1]._isolInitIndex;Un!=null&&(We.set(Un,Ie),We.set(Ie,Un)),be.pop(),ct--}Ue=be[be.length-1],me[Ie]=Ue._level,Ue._override&&we(Ie,Ue._override)}else et&Y?(Qe===0&&(Je>0?Je--:!Ue._isolate&&be.length>1&&(be.pop(),Ue=be[be.length-1])),me[Ie]=Ue._level):et&q&&(me[Ie]=Me.level);else me[Ie]=Ue._level,Ue._override&&et!==ve&&we(Ie,Ue._override)}for(var Wt=[],Ht=null,tt=Me.start;tt<=Me.end;tt++){var lr=ie[tt];if(!(lr&u)){var rt=me[tt],it=lr&r,on=lr===te;Ht&&rt===Ht._level?(Ht._end=tt,Ht._endsWithIsolInit=it):Wt.push(Ht={_start:tt,_end:tt,_level:rt,_startsWithPDI:on,_endsWithIsolInit:it})}}for(var Vt=[],Xe=0;Xe=0;xr--)if(!(ie[xr]&u)){uo=me[xr];break}var Ci=Rt[Rt.length-1],ga=me[Ci],co=Me.level;if(!(ie[Ci]&r)){for(var Wr=Ci+1;Wr<=Me.end;Wr++)if(!(ie[Wr]&u)){co=me[Wr];break}}Vt.push({_seqIndices:Rt,_sosType:Math.max(uo,ma)%2?B:b,_eosType:Math.max(co,ga)%2?B:b})}}for(var _i=0;_i=0;ln--)if(!(ie[_e[ln]]&u)){In=ie[_e[ln]];break}we(Vr,In&(r|te)?ae:In)}}if(ye.get(J))for(var Ye=0;Ye<_e.length;Ye++){var Ke=_e[Ye];if(ie[Ke]&J)for(var sn=Ye-1;sn>=-1;sn--){var St=sn===-1?Rn:ie[_e[sn]];if(St&s){St===j&&we(Ke,O);break}}}if(ye.get(j))for(var Et=0;Et<_e.length;Et++){var jn=_e[Et];ie[jn]&j&&we(jn,B)}if(ye.get(oe)||ye.get(ee))for(var yn=1;yn<_e.length-1;yn++){var Tt=_e[yn];if(ie[Tt]&(oe|ee)){for(var Fn=0,Zr=0,Qr=yn-1;Qr>=0&&(Fn=ie[_e[Qr]],!!(Fn&u));Qr--);for(var sr=yn+1;sr<_e.length&&(Zr=ie[_e[sr]],!!(Zr&u));sr++);Fn===Zr&&(ie[Tt]===oe?Fn===J:Fn&(J|O))&&we(Tt,Fn)}}if(ye.get(J))for(var un=0;un<_e.length;un++){var cn=_e[un];if(ie[cn]&J){for(var Xr=un-1;Xr>=0&&ie[_e[Xr]]&(G|u);Xr--)we(_e[Xr],J);for(un++;un<_e.length&&ie[_e[un]]&(G|u|J);un++)ie[_e[un]]!==J&&we(_e[un],J)}}if(ye.get(G)||ye.get(oe)||ye.get(ee))for(var wr=0;wr<_e.length;wr++){var fo=_e[wr];if(ie[fo]&(G|oe|ee)){we(fo,ae);for(var Kn=wr-1;Kn>=0&&ie[_e[Kn]]&u;Kn--)we(_e[Kn],ae);for(var qn=wr+1;qn<_e.length&&ie[_e[qn]]&u;qn++)we(_e[qn],ae)}}if(ye.get(J))for(var $n=0,Sr=Rn;$n<_e.length;$n++){var ho=_e[$n],Mi=ie[ho];Mi&J?Sr===b&&we(ho,b):Mi&s&&(Sr=Mi)}if(ye.get(f)){var er=B|J|O,Yr=er|b,bn=[];{for(var ur=[],Bn=0;Bn<_e.length;Bn++)if(ie[_e[Bn]]&f){var Ne=le[_e[Bn]],ki=void 0;if(D(Ne)!==null)if(ur.length<63)ur.push({char:Ne,seqIndex:Bn});else break;else if((ki=R(Ne))!==null)for(var tr=ur.length-1;tr>=0;tr--){var Jr=ur[tr].char;if(Jr===ki||Jr===R(A(Ne))||D(A(Jr))===Ne){bn.push([ur[tr].seqIndex,Bn]),ur.length=tr;break}}}bn.sort(function(kt,Yt){return kt[0]-Yt[0]})}for(var Pi=0;Pi=0;Ui--){var mo=_e[Ui];if(ie[mo]&Yr){var dn=ie[mo]&er?B:b;dn!==zn?Zt=dn:Zt=zn;break}}}if(Zt){if(ie[_e[at]]=ie[_e[Cr]]=Zt,Zt!==zn){for(var Qt=at+1;Qt<_e.length;Qt++)if(!(ie[_e[Qt]]&u)){y(le[_e[Qt]])&Z&&(ie[_e[Qt]]=Zt);break}}if(Zt!==zn){for(var Nn=Cr+1;Nn<_e.length;Nn++)if(!(ie[_e[Nn]]&u)){y(le[_e[Nn]])&Z&&(ie[_e[Nn]]=Zt);break}}}}for(var xn=0;xn<_e.length;xn++)if(ie[_e[xn]]&f){for(var Ri=xn,Fi=xn,$t=Rn,Er=xn-1;Er>=0;Er--)if(ie[_e[Er]]&u)Ri=Er;else{$t=ie[_e[Er]]&er?B:b;break}for(var Tr=Ti,Mr=xn+1;Mr<_e.length;Mr++)if(ie[_e[Mr]]&(f|u))Fi=Mr;else{Tr=ie[_e[Mr]]&er?B:b;break}for(var Xt=Ri;Xt<=Fi;Xt++)ie[_e[Xt]]=$t===Tr?$t:zn;xn=Fi}}}for(var Mt=Me.start;Mt<=Me.end;Mt++){var Kr=me[Mt],An=ie[Mt];if(Kr&1?An&(b|J|O)&&me[Mt]++:An&B?me[Mt]++:An&(O|J)&&(me[Mt]+=2),An&u&&(me[Mt]=Mt===0?Me.level:me[Mt-1]),Mt===Me.end||y(le[Mt])&(ne|q))for(var cr=Mt;cr>=0&&y(le[cr])&h;cr--)me[cr]=Me.level}}return{levels:me,paragraphs:Oe};function qr(kt,Yt){for(var pt=kt;pt=me&&y(le[Me])&h;Me--)Oe[Me]=we.level;for(var ze=we.level,He=1/0,ut=0;utze&&(ze=De),De=He;qe--)for(var be=0;be=qe){for(var Ue=be;be+1=qe;)be++;be>Ue&&ye.push([Ue+me,be+me])}}}),ye}function Se(le,Ce,pe,ie){var Pe=ke(le,Ce,pe,ie),ye=[].concat(le);return Pe.forEach(function(we,me){ye[me]=(Ce.levels[we]&1?xe(le[we]):null)||le[we]}),ye.join("")}function ke(le,Ce,pe,ie){for(var Pe=ce(le,Ce,pe,ie),ye=[],we=0;we/gm;function c(v,i){let r=Td[i];return r?Bl(r):v}return l.replace(n,c)}const Ot=[];for(let l=0;l<256;l++)Ot[l]=(l<16?"0":"")+l.toString(16);function Y1(){const l=Math.random()*4294967295|0,n=Math.random()*4294967295|0,c=Math.random()*4294967295|0,v=Math.random()*4294967295|0;return(Ot[l&255]+Ot[l>>8&255]+Ot[l>>16&255]+Ot[l>>24&255]+"-"+Ot[n&255]+Ot[n>>8&255]+"-"+Ot[n>>16&15|64]+Ot[n>>24&255]+"-"+Ot[c&63|128]+Ot[c>>8&255]+"-"+Ot[c>>16&255]+Ot[c>>24&255]+Ot[v&255]+Ot[v>>8&255]+Ot[v>>16&255]+Ot[v>>24&255]).toUpperCase()}const zr=Object.assign||function(){let l=arguments[0];for(let n=1,c=arguments.length;n/gm,` +;(`+c+")()"],{type:"application/javascript"}))),n.onmessage=function(v){var i=v.data,r=i.messageId,s=bl[r];if(!s)throw new Error("WorkerModule response with empty or unknown messageId");delete bl[r],s(i)}}return n}function tc(a,n,c){return new Promise(function(v,i){var r=++Z1;bl[r]=function(s){s.success?v(s.result):i(new Error("Error in worker "+n+" call: "+s.error))},X1(a).postMessage({messageId:r,action:n,data:c})})}function lf(){var a=function(n){function c(j,W,P,I,Q,Y,H,re){var X=1-H;re.x=X*X*j+2*X*H*P+H*H*Q,re.y=X*X*W+2*X*H*I+H*H*Y}function v(j,W,P,I,Q,Y,H,re,X,te){var ue=1-X;te.x=ue*ue*ue*j+3*ue*ue*X*P+3*ue*X*X*Q+X*X*X*H,te.y=ue*ue*ue*W+3*ue*ue*X*I+3*ue*X*X*Y+X*X*X*re}function i(j,W){for(var P=/([MLQCZ])([^MLQCZ]*)/g,I,Q,Y,H,re;I=P.exec(j);){var X=I[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(te){return parseFloat(te)});switch(I[1]){case"M":H=Q=X[0],re=Y=X[1];break;case"L":(X[0]!==H||X[1]!==re)&&W("L",H,re,H=X[0],re=X[1]);break;case"Q":{W("Q",H,re,H=X[2],re=X[3],X[0],X[1]);break}case"C":{W("C",H,re,H=X[4],re=X[5],X[0],X[1],X[2],X[3]);break}case"Z":(H!==Q||re!==Y)&&W("L",H,re,Q,Y);break}}}function r(j,W,P){P===void 0&&(P=16);var I={x:0,y:0};i(j,function(Q,Y,H,re,X,te,ue,fe,K){switch(Q){case"L":W(Y,H,re,X);break;case"Q":{for(var $=Y,xe=H,Re=1;Re0;)Oe[Me]=arguments[Me+2];var ze=pe[We]||(pe[We]=P.getUniformLocation(ie,We));P["uniform"+me].apply(P,[ze].concat(Oe))},setAttribute:function(me,We,Oe,Me,ze){var He=Ce[me];He||(He=Ce[me]={buf:P.createBuffer(),loc:P.getAttribLocation(ie,me),data:null}),P.bindBuffer(P.ARRAY_BUFFER,He.buf),P.vertexAttribPointer(He.loc,We,P.FLOAT,!1,0,0),P.enableVertexAttribArray(He.loc),Q?P.vertexAttribDivisor(He.loc,Me):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(He.loc,Me),ze!==He.data&&(P.bufferData(P.ARRAY_BUFFER,ze,Oe),He.data=ze)}})}}}H[ce].transaction(le)},$=function(ce,Se){X++;try{P.activeTexture(P.TEXTURE0+X);var ke=re[ce];ke||(ke=re[ce]=P.createTexture(),P.bindTexture(P.TEXTURE_2D,ke),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,ke),Se(ke,X)}finally{X--}},xe=function(ce,Se,ke){var le=P.createFramebuffer();te.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{ke(le)}finally{P.deleteFramebuffer(le),P.bindFramebuffer(P.FRAMEBUFFER,te[--te.length-1]||null)}},Re=function(){Y={},H={},re={},X=-1,te.length=0};var Q=typeof WebGL2RenderingContext<"u"&&P instanceof WebGL2RenderingContext,Y={},H={},re={},X=-1,te=[];P.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(P,I={gl:P,isWebGL2:Q,getExtension:ue,withProgram:K,withTexture:$,withTextureFramebuffer:xe,handleContextLoss:Re})}W(I)}function m(j,W,P,I,Q,Y,H,re){H===void 0&&(H=15),re===void 0&&(re=null),d(j,function(X){var te=X.gl,ue=X.withProgram,fe=X.withTexture;fe("copy",function(K,$){te.texImage2D(te.TEXTURE_2D,0,te.RGBA,Q,Y,0,te.RGBA,te.UNSIGNED_BYTE,W),ue("copy",s,f,function(xe){var Re=xe.setUniform,ce=xe.setAttribute;ce("aUV",2,te.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",$),te.bindFramebuffer(te.FRAMEBUFFER,re||null),te.disable(te.BLEND),te.colorMask(H&8,H&4,H&2,H&1),te.viewport(P,I,Q,Y),te.scissor(P,I,Q,Y),te.drawArrays(te.TRIANGLES,0,3)})})})}function y(j,W,P){var I=j.width,Q=j.height;d(j,function(Y){var H=Y.gl,re=new Uint8Array(I*Q*4);H.readPixels(0,0,I,Q,H.RGBA,H.UNSIGNED_BYTE,re),j.width=W,j.height=P,m(H,re,0,0,I,Q)})}var x=Object.freeze({__proto__:null,withWebGLContext:d,renderImageData:m,resizeWebGLCanvasWithoutClearing:y});function C(j,W,P,I,Q,Y){Y===void 0&&(Y=1);var H=new Uint8Array(j*W),re=I[2]-I[0],X=I[3]-I[1],te=[];r(P,function(ce,Se,ke,le){te.push({x1:ce,y1:Se,x2:ke,y2:le,minX:Math.min(ce,ke),minY:Math.min(Se,le),maxX:Math.max(ce,ke),maxY:Math.max(Se,le)})}),te.sort(function(ce,Se){return ce.maxX-Se.maxX});for(var ue=0;uepe.minX&&Se-lepe.minY){var ie=_(ce,Se,pe.x1,pe.y1,pe.x2,pe.y2);ieSe!=Ce.y2>Se&&ce<(Ce.x2-Ce.x1)*(Se-Ce.y1)/(Ce.y2-Ce.y1)+Ce.x1;pe&&(ke+=Ce.y1p.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 T(le,Ce){var pe=36,ie=0,Pe=new Map,ye=Ce&&new Map,we;return le.split(",").forEach(function me(We){if(We.indexOf("+")!==-1)for(var Oe=+We;Oe--;)me(we);else{we=We;var Me=We.split(">"),ze=Me[0],He=Me[1];ze=String.fromCodePoint(ie+=parseInt(ze,pe)),He=String.fromCodePoint(ie+=parseInt(He,pe)),Pe.set(ze,He),Ce&&ye.set(He,ze)}}),{map:Pe,reverseMap:ye}}var S,_,w;function M(){if(!S){var le=T(C.pairs,!0),Ce=le.map,pe=le.reverseMap;S=Ce,_=pe,w=T(C.canonical,!1).map}}function D(le){return M(),S.get(le)||null}function R(le){return M(),_.get(le)||null}function A(le){return M(),w.get(le)||null}var b=v.L,B=v.R,J=v.EN,oe=v.ES,G=v.ET,O=v.AN,ee=v.CS,q=v.B,ne=v.S,ae=v.ON,ve=v.BN,Z=v.NSM,j=v.AL,W=v.LRO,P=v.RLO,I=v.LRE,Q=v.RLE,Y=v.PDF,H=v.LRI,re=v.RLI,X=v.FSI,te=v.PDI;function ue(le,Ce){for(var pe=125,ie=new Uint32Array(le.length),Pe=0;Pe0)Qe--;else if(ct>0){for(Je=0;!be[be.length-1]._isolate;)be.pop();var Un=be[be.length-1]._isolInitIndex;Un!=null&&(We.set(Un,Ie),We.set(Ie,Un)),be.pop(),ct--}Ue=be[be.length-1],me[Ie]=Ue._level,Ue._override&&we(Ie,Ue._override)}else et&Y?(Qe===0&&(Je>0?Je--:!Ue._isolate&&be.length>1&&(be.pop(),Ue=be[be.length-1])),me[Ie]=Ue._level):et&q&&(me[Ie]=Me.level);else me[Ie]=Ue._level,Ue._override&&et!==ve&&we(Ie,Ue._override)}for(var Wt=[],Ht=null,tt=Me.start;tt<=Me.end;tt++){var lr=ie[tt];if(!(lr&u)){var rt=me[tt],it=lr&r,on=lr===te;Ht&&rt===Ht._level?(Ht._end=tt,Ht._endsWithIsolInit=it):Wt.push(Ht={_start:tt,_end:tt,_level:rt,_startsWithPDI:on,_endsWithIsolInit:it})}}for(var Vt=[],Xe=0;Xe=0;xr--)if(!(ie[xr]&u)){uo=me[xr];break}var Ci=Rt[Rt.length-1],ga=me[Ci],co=Me.level;if(!(ie[Ci]&r)){for(var Hr=Ci+1;Hr<=Me.end;Hr++)if(!(ie[Hr]&u)){co=me[Hr];break}}Vt.push({_seqIndices:Rt,_sosType:Math.max(uo,ma)%2?B:b,_eosType:Math.max(co,ga)%2?B:b})}}for(var _i=0;_i=0;ln--)if(!(ie[_e[ln]]&u)){In=ie[_e[ln]];break}we(Zr,In&(r|te)?ae:In)}}if(ye.get(J))for(var Ye=0;Ye<_e.length;Ye++){var Ke=_e[Ye];if(ie[Ke]&J)for(var sn=Ye-1;sn>=-1;sn--){var St=sn===-1?Rn:ie[_e[sn]];if(St&s){St===j&&we(Ke,O);break}}}if(ye.get(j))for(var Et=0;Et<_e.length;Et++){var jn=_e[Et];ie[jn]&j&&we(jn,B)}if(ye.get(oe)||ye.get(ee))for(var yn=1;yn<_e.length-1;yn++){var Tt=_e[yn];if(ie[Tt]&(oe|ee)){for(var Fn=0,Qr=0,Xr=yn-1;Xr>=0&&(Fn=ie[_e[Xr]],!!(Fn&u));Xr--);for(var sr=yn+1;sr<_e.length&&(Qr=ie[_e[sr]],!!(Qr&u));sr++);Fn===Qr&&(ie[Tt]===oe?Fn===J:Fn&(J|O))&&we(Tt,Fn)}}if(ye.get(J))for(var un=0;un<_e.length;un++){var cn=_e[un];if(ie[cn]&J){for(var Yr=un-1;Yr>=0&&ie[_e[Yr]]&(G|u);Yr--)we(_e[Yr],J);for(un++;un<_e.length&&ie[_e[un]]&(G|u|J);un++)ie[_e[un]]!==J&&we(_e[un],J)}}if(ye.get(G)||ye.get(oe)||ye.get(ee))for(var wr=0;wr<_e.length;wr++){var fo=_e[wr];if(ie[fo]&(G|oe|ee)){we(fo,ae);for(var Kn=wr-1;Kn>=0&&ie[_e[Kn]]&u;Kn--)we(_e[Kn],ae);for(var qn=wr+1;qn<_e.length&&ie[_e[qn]]&u;qn++)we(_e[qn],ae)}}if(ye.get(J))for(var $n=0,Sr=Rn;$n<_e.length;$n++){var ho=_e[$n],Mi=ie[ho];Mi&J?Sr===b&&we(ho,b):Mi&s&&(Sr=Mi)}if(ye.get(f)){var er=B|J|O,Jr=er|b,bn=[];{for(var ur=[],Bn=0;Bn<_e.length;Bn++)if(ie[_e[Bn]]&f){var Ne=le[_e[Bn]],ki=void 0;if(D(Ne)!==null)if(ur.length<63)ur.push({char:Ne,seqIndex:Bn});else break;else if((ki=R(Ne))!==null)for(var tr=ur.length-1;tr>=0;tr--){var Kr=ur[tr].char;if(Kr===ki||Kr===R(A(Ne))||D(A(Kr))===Ne){bn.push([ur[tr].seqIndex,Bn]),ur.length=tr;break}}}bn.sort(function(kt,Yt){return kt[0]-Yt[0]})}for(var Pi=0;Pi=0;Ui--){var mo=_e[Ui];if(ie[mo]&Jr){var dn=ie[mo]&er?B:b;dn!==zn?Zt=dn:Zt=zn;break}}}if(Zt){if(ie[_e[at]]=ie[_e[Cr]]=Zt,Zt!==zn){for(var Qt=at+1;Qt<_e.length;Qt++)if(!(ie[_e[Qt]]&u)){y(le[_e[Qt]])&Z&&(ie[_e[Qt]]=Zt);break}}if(Zt!==zn){for(var Nn=Cr+1;Nn<_e.length;Nn++)if(!(ie[_e[Nn]]&u)){y(le[_e[Nn]])&Z&&(ie[_e[Nn]]=Zt);break}}}}for(var xn=0;xn<_e.length;xn++)if(ie[_e[xn]]&f){for(var Ri=xn,Fi=xn,$t=Rn,Er=xn-1;Er>=0;Er--)if(ie[_e[Er]]&u)Ri=Er;else{$t=ie[_e[Er]]&er?B:b;break}for(var Tr=Ti,Mr=xn+1;Mr<_e.length;Mr++)if(ie[_e[Mr]]&(f|u))Fi=Mr;else{Tr=ie[_e[Mr]]&er?B:b;break}for(var Xt=Ri;Xt<=Fi;Xt++)ie[_e[Xt]]=$t===Tr?$t:zn;xn=Fi}}}for(var Mt=Me.start;Mt<=Me.end;Mt++){var qr=me[Mt],An=ie[Mt];if(qr&1?An&(b|J|O)&&me[Mt]++:An&B?me[Mt]++:An&(O|J)&&(me[Mt]+=2),An&u&&(me[Mt]=Mt===0?Me.level:me[Mt-1]),Mt===Me.end||y(le[Mt])&(ne|q))for(var cr=Mt;cr>=0&&y(le[cr])&h;cr--)me[cr]=Me.level}}return{levels:me,paragraphs:Oe};function $r(kt,Yt){for(var pt=kt;pt=me&&y(le[Me])&h;Me--)Oe[Me]=we.level;for(var ze=we.level,He=1/0,ut=0;utze&&(ze=De),De=He;qe--)for(var be=0;be=qe){for(var Ue=be;be+1=qe;)be++;be>Ue&&ye.push([Ue+me,be+me])}}}),ye}function Se(le,Ce,pe,ie){var Pe=ke(le,Ce,pe,ie),ye=[].concat(le);return Pe.forEach(function(we,me){ye[me]=(Ce.levels[we]&1?xe(le[we]):null)||le[we]}),ye.join("")}function ke(le,Ce,pe,ie){for(var Pe=ce(le,Ce,pe,ie),ye=[],we=0;we/gm;function c(v,i){let r=Md[i];return r?Bl(r):v}return a.replace(n,c)}const Ot=[];for(let a=0;a<256;a++)Ot[a]=(a<16?"0":"")+a.toString(16);function J1(){const a=Math.random()*4294967295|0,n=Math.random()*4294967295|0,c=Math.random()*4294967295|0,v=Math.random()*4294967295|0;return(Ot[a&255]+Ot[a>>8&255]+Ot[a>>16&255]+Ot[a>>24&255]+"-"+Ot[n&255]+Ot[n>>8&255]+"-"+Ot[n>>16&15|64]+Ot[n>>24&255]+"-"+Ot[c&63|128]+Ot[c>>8&255]+"-"+Ot[c>>16&255]+Ot[c>>24&255]+Ot[v&255]+Ot[v>>8&255]+Ot[v>>16&255]+Ot[v>>24&255]).toUpperCase()}const zr=Object.assign||function(){let a=arguments[0];for(let n=1,c=arguments.length;n/gm,` //!BEGIN_POST_CHUNK $1 $& //!END_POST_CHUNK @@ -487,27 +487,27 @@ troika_normal_${i} = vec3(normal); troika_uv_${i} = vec2(uv); troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i}); ${s} -`,n=n.replace(/\b(position|normal|uv)\b/g,(T,S,_,w)=>/\battribute\s+vec[23]\s+$/.test(w.substr(0,_))?S:`troika_${S}_${i}`),l.map&&l.map.channel>0||(n=n.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),n=ic(n,i,r,s,f),c=ic(c,i,h,d,m),{vertexShader:n,fragmentShader:c}}function ic(l,n,c,v,i){return(v||i||c)&&(l=l.replace(sf,` +`,n=n.replace(/\b(position|normal|uv)\b/g,(T,S,_,w)=>/\battribute\s+vec[23]\s+$/.test(w.substr(0,_))?S:`troika_${S}_${i}`),a.map&&a.map.channel>0||(n=n.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),n=ic(n,i,r,s,f),c=ic(c,i,h,d,m),{vertexShader:n,fragmentShader:c}}function ic(a,n,c,v,i){return(v||i||c)&&(a=a.replace(sf,` ${c} -void troikaOrigMain${n}() {`),l+=` +void troikaOrigMain${n}() {`),a+=` void main() { ${v} troikaOrigMain${n}(); ${i} -}`),l}function $1(l,n){return l==="uniforms"?void 0:typeof n=="function"?n.toString():n}let e0=0;const oc=new Map;function t0(l){const n=JSON.stringify(l,$1);let c=oc.get(n);return c==null&&oc.set(n,c=++e0),c}function n0(l,n,c){const{defaultFontURL:v}=c,i=Object.create(null),r=1/0,s=/[\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 h(w,M){function D(){const R=A=>{console.error(`Failure loading font ${w}${w===v?"":"; trying fallback"}`,A),w!==v&&(w=v,D())};try{const A=new XMLHttpRequest;A.open("get",w,!0),A.responseType="arraybuffer",A.onload=function(){if(A.status>=400)R(new Error(A.statusText));else if(A.status>0)try{const b=l(A.response);M(b)}catch(b){R(b)}},A.onerror=R,A.send()}catch(A){R(A)}}D()}function d(w,M){w||(w=v);let D=i[w];D?D.pending?D.pending.push(M):M(D):(i[w]={pending:[M]},h(w,R=>{let A=i[w].pending;i[w]=R,A.forEach(b=>b(R))}))}function m({text:w="",font:M=v,sdfGlyphSize:D=64,fontSize:R=1,letterSpacing:A=0,lineHeight:b="normal",maxWidth:B=r,direction:J,textAlign:oe="left",textIndent:G=0,whiteSpace:O="normal",overflowWrap:ee="normal",anchorX:q=0,anchorY:ne=0,includeCaretPositions:ae=!1,chunkedBoundsSize:ve=8192,colorRanges:Z=null},j,W=!1){const k=T(),I={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,` +}`),a}function e0(a,n){return a==="uniforms"?void 0:typeof n=="function"?n.toString():n}let t0=0;const oc=new Map;function n0(a){const n=JSON.stringify(a,e0);let c=oc.get(n);return c==null&&oc.set(n,c=++t0),c}function r0(a,n,c){const{defaultFontURL:v}=c,i=Object.create(null),r=1/0,s=/[\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 h(w,M){function D(){const R=A=>{console.error(`Failure loading font ${w}${w===v?"":"; trying fallback"}`,A),w!==v&&(w=v,D())};try{const A=new XMLHttpRequest;A.open("get",w,!0),A.responseType="arraybuffer",A.onload=function(){if(A.status>=400)R(new Error(A.statusText));else if(A.status>0)try{const b=a(A.response);M(b)}catch(b){R(b)}},A.onerror=R,A.send()}catch(A){R(A)}}D()}function d(w,M){w||(w=v);let D=i[w];D?D.pending?D.pending.push(M):M(D):(i[w]={pending:[M]},h(w,R=>{let A=i[w].pending;i[w]=R,A.forEach(b=>b(R))}))}function m({text:w="",font:M=v,sdfGlyphSize:D=64,fontSize:R=1,letterSpacing:A=0,lineHeight:b="normal",maxWidth:B=r,direction:J,textAlign:oe="left",textIndent:G=0,whiteSpace:O="normal",overflowWrap:ee="normal",anchorX:q=0,anchorY:ne=0,includeCaretPositions:ae=!1,chunkedBoundsSize:ve=8192,colorRanges:Z=null},j,W=!1){const P=T(),I={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,` -`)),R=+R,A=+A,B=+B,b=b||"normal",G=+G,d(M,Q=>{const Y=isFinite(B);let H=null,re=null,X=null,te=null,ue=null,fe=null,K=null,$=0,xe=0,Re=O!=="nowrap";const{ascender:ce,descender:Se,unitsPerEm:ke,lineGap:le,capHeight:Ce,xHeight:pe}=Q;I.fontLoad=T()-k;const ie=T(),Pe=R/ke;b==="normal"&&(b=(ce-Se+le)/ke),b=b*R;const ye=(b-(ce-Se)*Pe)/2,we=-(ce*Pe+ye),me=Math.min(b,(ce-Se)*Pe),We=(ce+Se)/2*Pe-me/2;let Oe=G,Me=new S;const ze=[Me];Q.forEachGlyph(w,R,A,(De,qe,be)=>{const Ue=w.charAt(be),Qe=De.advanceWidth*Pe,Je=Me.count;let ct;if("isEmpty"in De||(De.isWhitespace=!!Ue&&new RegExp(f).test(Ue),De.canBreakAfter=!!Ue&&u.test(Ue),De.isEmpty=De.xMin===De.xMax||De.yMin===De.yMax||s.test(Ue)),!De.isWhitespace&&!De.isEmpty&&xe++,Re&&Y&&!De.isWhitespace&&qe+Qe+Oe>B&&Je){if(Me.glyphAt(Je-1).glyphObj.canBreakAfter)ct=new S,Oe=-qe;else for(let et=Je;et--;)if(et===0&&ee==="break-word"){ct=new S,Oe=-qe;break}else if(Me.glyphAt(et).glyphObj.canBreakAfter){ct=Me.splitAt(et+1);const Ut=ct.glyphAt(0).x;Oe-=Ut;for(let Ln=ct.count;Ln--;)ct.glyphAt(Ln).x-=Ut;break}ct&&(Me.isSoftWrapped=!0,Me=ct,ze.push(Me),$=B)}let Ie=Me.glyphAt(Me.count);Ie.glyphObj=De,Ie.x=qe+Oe,Ie.width=Qe,Ie.charIndex=be,Ue===` -`&&(Me=new S,ze.push(Me),Oe=-(qe+Qe+A*R)+G)}),ze.forEach(De=>{for(let qe=De.count;qe--;){let{glyphObj:be,x:Ue,width:Qe}=De.glyphAt(qe);if(!be.isWhitespace){De.width=Ue+Qe,De.width>$&&($=De.width);return}}});let He=0,ut=0;if(q&&(typeof q=="number"?He=-q:typeof q=="string"&&(He=-$*(q==="left"?0:q==="center"?.5:q==="right"?1:x(q)))),ne){if(typeof ne=="number")ut=-ne;else if(typeof ne=="string"){let De=ze.length*b;ut=ne==="top"?0:ne==="top-baseline"?-we:ne==="top-cap"?-we-Ce*Pe:ne==="top-ex"?-we-pe*Pe:ne==="middle"?De/2:ne==="bottom"?De:ne==="bottom-baseline"?De-ye+Se*Pe:x(ne)*De}}if(!W){const De=n.getEmbeddingLevels(w,J);H=new Uint16Array(xe),re=new Float32Array(xe*2),X={},fe=[r,r,-r,-r],K=[];let qe=we;ae&&(ue=new Float32Array(w.length*3)),Z&&(te=new Uint8Array(xe*3));let be=0,Ue=-1,Qe=-1,Je,ct;if(ze.forEach((Ie,et)=>{let{count:Ut,width:Ln}=Ie;if(Ut>0){let Yn=0;for(let rt=Ut;rt--&&Ie.glyphAt(rt).glyphObj.isWhitespace;)Yn++;let Un=0,Wt=0;if(oe==="center")Un=($-Ln)/2;else if(oe==="right")Un=$-Ln;else if(oe==="justify"&&Ie.isSoftWrapped){let rt=0;for(let it=Ut-Yn;it--;)Ie.glyphAt(it).glyphObj.isWhitespace&&rt++;Wt=($-Ln)/rt}if(Wt||Un){let rt=0;for(let it=0;it=it){let qt=ht,ft=ht;for(;fton)break;fttt=rt;for(let rt=0;rt1&&C(ue,Ue,ft),Ue=Xe}if(Z){const{charIndex:Xe}=it;for(;Xe>Qe;)Qe++,Z.hasOwnProperty(Qe)&&(ct=Z[Qe])}if(!tt.isWhitespace&&!tt.isEmpty){const Xe=be++;X[on]||(X[on]={path:tt.path,pathBounds:[tt.xMin,tt.yMin,tt.xMax,tt.yMax]});const ht=it.x+He,qt=qe+ut;re[Xe*2]=ht,re[Xe*2+1]=qt;const ft=ht+tt.xMin*Pe,yt=qt+tt.yMin*Pe,Rt=ht+tt.xMax*Pe,On=qt+tt.yMax*Pe;ftfe[2]&&(fe[2]=Rt),On>fe[3]&&(fe[3]=On),Xe%ve===0&&(Je={start:Xe,end:Xe,rect:[r,r,-r,-r]},K.push(Je)),Je.end++;const an=Je.rect;if(ftan[2]&&(an[2]=Rt),On>an[3]&&(an[3]=On),H[Xe]=on,Z){const Jn=Xe*3;te[Jn]=ct>>16&255,te[Jn+1]=ct>>8&255,te[Jn+2]=ct&255}}}}qe-=b}),ue){const Ie=w.length-Ue;Ie>1&&C(ue,Ue,Ie)}}I.typesetting=T()-ie,j({glyphIds:H,glyphPositions:re,glyphData:X,caretPositions:ue,caretHeight:me,glyphColors:te,chunkedBounds:K,fontSize:R,unitsPerEm:ke,ascender:ce*Pe,descender:Se*Pe,capHeight:Ce*Pe,xHeight:pe*Pe,lineHeight:b,topBaseline:we,blockBounds:[He,ut-ze.length*b,He+$,ut],visibleBounds:fe,timings:I})})}function y(w,M){m(w,D=>{const[R,A,b,B]=D.blockBounds;M({width:b-R,height:B-A})},{metricsOnly:!0})}function x(w){let M=w.match(/^([\d.]+)%$/),D=M?parseFloat(M[1]):NaN;return isNaN(D)?0:D/100}function C(w,M,D){const R=w[M*3],A=w[M*3+1],b=w[M*3+2],B=(A-R)/D;for(let J=0;J(Object.defineProperty(w,M,{get(){return this.data[this.index*_.length+D]},set(A){this.data[this.index*_.length+D]=A}}),w),{data:null,index:0}),{typeset:m,measure:y,loadFont:d}}const Br=()=>(self.performance||Date).now(),va=lf();let ac;function r0(l,n,c,v,i,r,s,f,u,h,d=!0){return d?o0(l,n,c,v,i,r,s,f,u,h).then(null,m=>(ac||(console.warn("WebGL SDF generation failed, falling back to JS",m),ac=!0),sc(l,n,c,v,i,r,s,f,u,h))):sc(l,n,c,v,i,r,s,f,u,h)}const fa=[],i0=5;let Gl=0;function uf(){const l=Br();for(;fa.length&&Br()-lnew Promise((n,c)=>{fa.push(()=>{const v=Br();try{va.webgl.generateIntoCanvas(...l),n({timing:Br()-v})}catch(i){c(i)}}),Gl||(Gl=setTimeout(uf,0))}),a0=4,l0=2e3,lc={};let s0=0;function sc(l,n,c,v,i,r,s,f,u,h){const d="TroikaTextSDFGenerator_JS_"+s0++%a0;let m=lc[d];return m||(m=lc[d]={workerModule:so({name:d,workerId:d,dependencies:[lf,Br],init(y,x){const C=y().javascript.generate;return function(...T){const S=x();return{textureData:C(...T),timing:x()-S}}},getTransferables(y){return[y.textureData.buffer]}}),requests:0,idleTimer:null}),m.requests++,clearTimeout(m.idleTimer),m.workerModule(l,n,c,v,i,r).then(({textureData:y,timing:x})=>{const C=Br(),T=new Uint8Array(y.length*4);for(let S=0;S{Z1(d)},l0)),{timing:x}})}function u0(l){l._warm||(va.webgl.isSupported(l),l._warm=!0)}const c0=va.webglUtils.resizeWebGLCanvasWithoutClearing;/*! +`)),R=+R,A=+A,B=+B,b=b||"normal",G=+G,d(M,Q=>{const Y=isFinite(B);let H=null,re=null,X=null,te=null,ue=null,fe=null,K=null,$=0,xe=0,Re=O!=="nowrap";const{ascender:ce,descender:Se,unitsPerEm:ke,lineGap:le,capHeight:Ce,xHeight:pe}=Q;I.fontLoad=T()-P;const ie=T(),Pe=R/ke;b==="normal"&&(b=(ce-Se+le)/ke),b=b*R;const ye=(b-(ce-Se)*Pe)/2,we=-(ce*Pe+ye),me=Math.min(b,(ce-Se)*Pe),We=(ce+Se)/2*Pe-me/2;let Oe=G,Me=new S;const ze=[Me];Q.forEachGlyph(w,R,A,(De,qe,be)=>{const Ue=w.charAt(be),Qe=De.advanceWidth*Pe,Je=Me.count;let ct;if("isEmpty"in De||(De.isWhitespace=!!Ue&&new RegExp(f).test(Ue),De.canBreakAfter=!!Ue&&u.test(Ue),De.isEmpty=De.xMin===De.xMax||De.yMin===De.yMax||s.test(Ue)),!De.isWhitespace&&!De.isEmpty&&xe++,Re&&Y&&!De.isWhitespace&&qe+Qe+Oe>B&&Je){if(Me.glyphAt(Je-1).glyphObj.canBreakAfter)ct=new S,Oe=-qe;else for(let et=Je;et--;)if(et===0&&ee==="break-word"){ct=new S,Oe=-qe;break}else if(Me.glyphAt(et).glyphObj.canBreakAfter){ct=Me.splitAt(et+1);const Ut=ct.glyphAt(0).x;Oe-=Ut;for(let Ln=ct.count;Ln--;)ct.glyphAt(Ln).x-=Ut;break}ct&&(Me.isSoftWrapped=!0,Me=ct,ze.push(Me),$=B)}let Ie=Me.glyphAt(Me.count);Ie.glyphObj=De,Ie.x=qe+Oe,Ie.width=Qe,Ie.charIndex=be,Ue===` +`&&(Me=new S,ze.push(Me),Oe=-(qe+Qe+A*R)+G)}),ze.forEach(De=>{for(let qe=De.count;qe--;){let{glyphObj:be,x:Ue,width:Qe}=De.glyphAt(qe);if(!be.isWhitespace){De.width=Ue+Qe,De.width>$&&($=De.width);return}}});let He=0,ut=0;if(q&&(typeof q=="number"?He=-q:typeof q=="string"&&(He=-$*(q==="left"?0:q==="center"?.5:q==="right"?1:x(q)))),ne){if(typeof ne=="number")ut=-ne;else if(typeof ne=="string"){let De=ze.length*b;ut=ne==="top"?0:ne==="top-baseline"?-we:ne==="top-cap"?-we-Ce*Pe:ne==="top-ex"?-we-pe*Pe:ne==="middle"?De/2:ne==="bottom"?De:ne==="bottom-baseline"?De-ye+Se*Pe:x(ne)*De}}if(!W){const De=n.getEmbeddingLevels(w,J);H=new Uint16Array(xe),re=new Float32Array(xe*2),X={},fe=[r,r,-r,-r],K=[];let qe=we;ae&&(ue=new Float32Array(w.length*3)),Z&&(te=new Uint8Array(xe*3));let be=0,Ue=-1,Qe=-1,Je,ct;if(ze.forEach((Ie,et)=>{let{count:Ut,width:Ln}=Ie;if(Ut>0){let Yn=0;for(let rt=Ut;rt--&&Ie.glyphAt(rt).glyphObj.isWhitespace;)Yn++;let Un=0,Wt=0;if(oe==="center")Un=($-Ln)/2;else if(oe==="right")Un=$-Ln;else if(oe==="justify"&&Ie.isSoftWrapped){let rt=0;for(let it=Ut-Yn;it--;)Ie.glyphAt(it).glyphObj.isWhitespace&&rt++;Wt=($-Ln)/rt}if(Wt||Un){let rt=0;for(let it=0;it=it){let qt=ht,ft=ht;for(;fton)break;fttt=rt;for(let rt=0;rt1&&C(ue,Ue,ft),Ue=Xe}if(Z){const{charIndex:Xe}=it;for(;Xe>Qe;)Qe++,Z.hasOwnProperty(Qe)&&(ct=Z[Qe])}if(!tt.isWhitespace&&!tt.isEmpty){const Xe=be++;X[on]||(X[on]={path:tt.path,pathBounds:[tt.xMin,tt.yMin,tt.xMax,tt.yMax]});const ht=it.x+He,qt=qe+ut;re[Xe*2]=ht,re[Xe*2+1]=qt;const ft=ht+tt.xMin*Pe,yt=qt+tt.yMin*Pe,Rt=ht+tt.xMax*Pe,On=qt+tt.yMax*Pe;ftfe[2]&&(fe[2]=Rt),On>fe[3]&&(fe[3]=On),Xe%ve===0&&(Je={start:Xe,end:Xe,rect:[r,r,-r,-r]},K.push(Je)),Je.end++;const an=Je.rect;if(ftan[2]&&(an[2]=Rt),On>an[3]&&(an[3]=On),H[Xe]=on,Z){const Jn=Xe*3;te[Jn]=ct>>16&255,te[Jn+1]=ct>>8&255,te[Jn+2]=ct&255}}}}qe-=b}),ue){const Ie=w.length-Ue;Ie>1&&C(ue,Ue,Ie)}}I.typesetting=T()-ie,j({glyphIds:H,glyphPositions:re,glyphData:X,caretPositions:ue,caretHeight:me,glyphColors:te,chunkedBounds:K,fontSize:R,unitsPerEm:ke,ascender:ce*Pe,descender:Se*Pe,capHeight:Ce*Pe,xHeight:pe*Pe,lineHeight:b,topBaseline:we,blockBounds:[He,ut-ze.length*b,He+$,ut],visibleBounds:fe,timings:I})})}function y(w,M){m(w,D=>{const[R,A,b,B]=D.blockBounds;M({width:b-R,height:B-A})},{metricsOnly:!0})}function x(w){let M=w.match(/^([\d.]+)%$/),D=M?parseFloat(M[1]):NaN;return isNaN(D)?0:D/100}function C(w,M,D){const R=w[M*3],A=w[M*3+1],b=w[M*3+2],B=(A-R)/D;for(let J=0;J(Object.defineProperty(w,M,{get(){return this.data[this.index*_.length+D]},set(A){this.data[this.index*_.length+D]=A}}),w),{data:null,index:0}),{typeset:m,measure:y,loadFont:d}}const Br=()=>(self.performance||Date).now(),va=lf();let ac;function i0(a,n,c,v,i,r,s,f,u,h,d=!0){return d?a0(a,n,c,v,i,r,s,f,u,h).then(null,m=>(ac||(console.warn("WebGL SDF generation failed, falling back to JS",m),ac=!0),sc(a,n,c,v,i,r,s,f,u,h))):sc(a,n,c,v,i,r,s,f,u,h)}const fa=[],o0=5;let Gl=0;function uf(){const a=Br();for(;fa.length&&Br()-anew Promise((n,c)=>{fa.push(()=>{const v=Br();try{va.webgl.generateIntoCanvas(...a),n({timing:Br()-v})}catch(i){c(i)}}),Gl||(Gl=setTimeout(uf,0))}),l0=4,s0=2e3,lc={};let u0=0;function sc(a,n,c,v,i,r,s,f,u,h){const d="TroikaTextSDFGenerator_JS_"+u0++%l0;let m=lc[d];return m||(m=lc[d]={workerModule:so({name:d,workerId:d,dependencies:[lf,Br],init(y,x){const C=y().javascript.generate;return function(...T){const S=x();return{textureData:C(...T),timing:x()-S}}},getTransferables(y){return[y.textureData.buffer]}}),requests:0,idleTimer:null}),m.requests++,clearTimeout(m.idleTimer),m.workerModule(a,n,c,v,i,r).then(({textureData:y,timing:x})=>{const C=Br(),T=new Uint8Array(y.length*4);for(let S=0;S{Q1(d)},s0)),{timing:x}})}function c0(a){a._warm||(va.webgl.isSupported(a),a._warm=!0)}const f0=va.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 f0(){return typeof window>"u"&&(self.window=self),function(l){var n={parse:function(i){var r=n._bin,s=new Uint8Array(i);if(r.readASCII(s,0,4)=="ttcf"){var f=4;r.readUshort(s,f),f+=2,r.readUshort(s,f),f+=2;var u=r.readUint(s,f);f+=4;for(var h=[],d=0;d>>s&1&&r++;return r},n._lctf.readClassDef=function(i,r){var s=n._bin,f=[],u=s.readUshort(i,r);if(r+=2,u==1){var h=s.readUshort(i,r);r+=2;var d=s.readUshort(i,r);r+=2;for(var m=0;m0&&(u.featureParams=f+h);var d=s.readUshort(i,r);r+=2,u.tab=[];for(var m=0;m255?-1:n.CFF.glyphByUnicode(i,n.CFF.tableSE[r])},n.CFF.readEncoding=function(i,r,s){n._bin;var f=[".notdef"],u=i[r];if(r++,u!=0)throw"error: unknown encoding format: "+u;var h=i[r];r++;for(var d=0;d>4,w=15&S;if(_!=15&&T.push(_),w!=15&&T.push(w),w==15)break}for(var M="",D=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],R=0;R=h.xMax||h.yMin>=h.yMax)return null;if(h.noc>0){h.endPts=[];for(var d=0;d=1&&d.fmt<=2){y=u.readUshort(i,s),s+=2;var C=u.readUshort(i,s);s+=2,x=n._lctf.numOfOnes(y);var T=n._lctf.numOfOnes(C);if(d.fmt==1){d.pairsets=[];var S=u.readUshort(i,s);s+=2;for(var _=0;_=1&&d.fmt<=2){if(d.fmt==1)d.delta=u.readShort(i,s),s+=2;else if(d.fmt==2){var y=u.readUshort(i,s);s+=2,d.newg=u.readUshorts(i,s,y),s+=2*d.newg.length}}else if(r==4){d.vals=[],y=u.readUshort(i,s),s+=2;for(var x=0;x>>8;if((C&=15)!=0)throw"unknown kern table format: "+C;r=n.kern.readFormat0(i,r,m)}return m},n.kern.parseV1=function(i,r,s,f){var u=n._bin;u.readFixed(i,r),r+=4;var h=u.readUint(i,r);r+=4;for(var d={glyph1:[],rval:[]},m=0;m>>8;if((x&=15)!=0)throw"unknown kern table format: "+x;r=n.kern.readFormat0(i,r,d)}return d},n.kern.readFormat0=function(i,r,s){var f=n._bin,u=-1,h=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 d=0;d=u.map.length?0:u.map[r];if(u.format==4){for(var h=-1,d=0;dr?0:65535&(u.idRangeOffset[h]!=0?u.glyphIdArray[r-u.startCount[h]+(u.idRangeOffset[h]>>1)-(u.idRangeOffset.length-h)]:r+u.idDelta[h])}if(u.format==12){if(r>u.groups[u.groups.length-1][1])return 0;for(d=0;d-1?n.U._simpleGlyph(f,s):n.U._compoGlyph(f,r,s))},n.U._simpleGlyph=function(i,r){for(var s=0;su)){for(var S=!0,_=0,w=0;wu)){for(S=!0,w=0;w>1,h.length=0,m=!0;else if(O=="o3"||O=="o23")h.length%2!=0&&!m&&(y=h.shift()+f.nominalWidthX),d+=h.length>>1,h.length=0,m=!0;else if(O=="o4")h.length>1&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),x&&n.U.P.closePath(u),S+=h.pop(),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o5")for(;h.length>0;)T+=h.shift(),S+=h.shift(),n.U.P.lineTo(u,T,S);else if(O=="o6"||O=="o7")for(var ee=h.length,q=O=="o6",ne=0;neMath.abs(B-S)?T=b+h.shift():S=B+h.shift(),n.U.P.curveTo(u,_,w,M,D,J,oe),n.U.P.curveTo(u,R,A,b,B,T,S));else if(O=="o14"){if(h.length>0&&!m&&(y=h.shift()+s.nominalWidthX,m=!0),h.length==4){var Z=h.shift(),j=h.shift(),W=h.shift(),k=h.shift(),I=n.CFF.glyphBySE(s,W),Q=n.CFF.glyphBySE(s,k);n.U._drawCFF(s.CharStrings[I],r,s,f,u),r.x=Z,r.y=j,n.U._drawCFF(s.CharStrings[Q],r,s,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(O=="o19"||O=="o20")h.length%2!=0&&!m&&(y=h.shift()+f.nominalWidthX),d+=h.length>>1,h.length=0,m=!0,C+=d+7>>3;else if(O=="o21")h.length>2&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),S+=h.pop(),T+=h.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o22")h.length>1&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),T+=h.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o25"){for(;h.length>6;)T+=h.shift(),S+=h.shift(),n.U.P.lineTo(u,T,S);_=T+h.shift(),w=S+h.shift(),M=_+h.shift(),D=w+h.shift(),T=M+h.shift(),S=D+h.shift(),n.U.P.curveTo(u,_,w,M,D,T,S)}else if(O=="o26")for(h.length%2&&(T+=h.shift());h.length>0;)_=T,w=S+h.shift(),T=M=_+h.shift(),S=(D=w+h.shift())+h.shift(),n.U.P.curveTo(u,_,w,M,D,T,S);else if(O=="o27")for(h.length%2&&(S+=h.shift());h.length>0;)w=S,M=(_=T+h.shift())+h.shift(),D=w+h.shift(),T=M+h.shift(),S=D,n.U.P.curveTo(u,_,w,M,D,T,S);else if(O=="o10"||O=="o29"){var Y=O=="o10"?f:s;if(h.length==0)console.debug("error: empty stack");else{var H=h.pop(),re=Y.Subrs[H+Y.Bias];r.x=T,r.y=S,r.nStems=d,r.haveWidth=m,r.width=y,r.open=x,n.U._drawCFF(re,r,s,f,u),T=r.x,S=r.y,d=r.nStems,m=r.haveWidth,y=r.width,x=r.open}}else if(O=="o30"||O=="o31"){var X=h.length,te=(ve=0,O=="o31");for(ve+=X-(ee=-3&X);ve"u"&&(self.window=self),function(a){var n={parse:function(i){var r=n._bin,s=new Uint8Array(i);if(r.readASCII(s,0,4)=="ttcf"){var f=4;r.readUshort(s,f),f+=2,r.readUshort(s,f),f+=2;var u=r.readUint(s,f);f+=4;for(var h=[],d=0;d>>s&1&&r++;return r},n._lctf.readClassDef=function(i,r){var s=n._bin,f=[],u=s.readUshort(i,r);if(r+=2,u==1){var h=s.readUshort(i,r);r+=2;var d=s.readUshort(i,r);r+=2;for(var m=0;m0&&(u.featureParams=f+h);var d=s.readUshort(i,r);r+=2,u.tab=[];for(var m=0;m255?-1:n.CFF.glyphByUnicode(i,n.CFF.tableSE[r])},n.CFF.readEncoding=function(i,r,s){n._bin;var f=[".notdef"],u=i[r];if(r++,u!=0)throw"error: unknown encoding format: "+u;var h=i[r];r++;for(var d=0;d>4,w=15&S;if(_!=15&&T.push(_),w!=15&&T.push(w),w==15)break}for(var M="",D=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],R=0;R=h.xMax||h.yMin>=h.yMax)return null;if(h.noc>0){h.endPts=[];for(var d=0;d=1&&d.fmt<=2){y=u.readUshort(i,s),s+=2;var C=u.readUshort(i,s);s+=2,x=n._lctf.numOfOnes(y);var T=n._lctf.numOfOnes(C);if(d.fmt==1){d.pairsets=[];var S=u.readUshort(i,s);s+=2;for(var _=0;_=1&&d.fmt<=2){if(d.fmt==1)d.delta=u.readShort(i,s),s+=2;else if(d.fmt==2){var y=u.readUshort(i,s);s+=2,d.newg=u.readUshorts(i,s,y),s+=2*d.newg.length}}else if(r==4){d.vals=[],y=u.readUshort(i,s),s+=2;for(var x=0;x>>8;if((C&=15)!=0)throw"unknown kern table format: "+C;r=n.kern.readFormat0(i,r,m)}return m},n.kern.parseV1=function(i,r,s,f){var u=n._bin;u.readFixed(i,r),r+=4;var h=u.readUint(i,r);r+=4;for(var d={glyph1:[],rval:[]},m=0;m>>8;if((x&=15)!=0)throw"unknown kern table format: "+x;r=n.kern.readFormat0(i,r,d)}return d},n.kern.readFormat0=function(i,r,s){var f=n._bin,u=-1,h=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 d=0;d=u.map.length?0:u.map[r];if(u.format==4){for(var h=-1,d=0;dr?0:65535&(u.idRangeOffset[h]!=0?u.glyphIdArray[r-u.startCount[h]+(u.idRangeOffset[h]>>1)-(u.idRangeOffset.length-h)]:r+u.idDelta[h])}if(u.format==12){if(r>u.groups[u.groups.length-1][1])return 0;for(d=0;d-1?n.U._simpleGlyph(f,s):n.U._compoGlyph(f,r,s))},n.U._simpleGlyph=function(i,r){for(var s=0;su)){for(var S=!0,_=0,w=0;wu)){for(S=!0,w=0;w>1,h.length=0,m=!0;else if(O=="o3"||O=="o23")h.length%2!=0&&!m&&(y=h.shift()+f.nominalWidthX),d+=h.length>>1,h.length=0,m=!0;else if(O=="o4")h.length>1&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),x&&n.U.P.closePath(u),S+=h.pop(),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o5")for(;h.length>0;)T+=h.shift(),S+=h.shift(),n.U.P.lineTo(u,T,S);else if(O=="o6"||O=="o7")for(var ee=h.length,q=O=="o6",ne=0;neMath.abs(B-S)?T=b+h.shift():S=B+h.shift(),n.U.P.curveTo(u,_,w,M,D,J,oe),n.U.P.curveTo(u,R,A,b,B,T,S));else if(O=="o14"){if(h.length>0&&!m&&(y=h.shift()+s.nominalWidthX,m=!0),h.length==4){var Z=h.shift(),j=h.shift(),W=h.shift(),P=h.shift(),I=n.CFF.glyphBySE(s,W),Q=n.CFF.glyphBySE(s,P);n.U._drawCFF(s.CharStrings[I],r,s,f,u),r.x=Z,r.y=j,n.U._drawCFF(s.CharStrings[Q],r,s,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(O=="o19"||O=="o20")h.length%2!=0&&!m&&(y=h.shift()+f.nominalWidthX),d+=h.length>>1,h.length=0,m=!0,C+=d+7>>3;else if(O=="o21")h.length>2&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),S+=h.pop(),T+=h.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o22")h.length>1&&!m&&(y=h.shift()+f.nominalWidthX,m=!0),T+=h.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,T,S),x=!0;else if(O=="o25"){for(;h.length>6;)T+=h.shift(),S+=h.shift(),n.U.P.lineTo(u,T,S);_=T+h.shift(),w=S+h.shift(),M=_+h.shift(),D=w+h.shift(),T=M+h.shift(),S=D+h.shift(),n.U.P.curveTo(u,_,w,M,D,T,S)}else if(O=="o26")for(h.length%2&&(T+=h.shift());h.length>0;)_=T,w=S+h.shift(),T=M=_+h.shift(),S=(D=w+h.shift())+h.shift(),n.U.P.curveTo(u,_,w,M,D,T,S);else if(O=="o27")for(h.length%2&&(S+=h.shift());h.length>0;)w=S,M=(_=T+h.shift())+h.shift(),D=w+h.shift(),T=M+h.shift(),S=D,n.U.P.curveTo(u,_,w,M,D,T,S);else if(O=="o10"||O=="o29"){var Y=O=="o10"?f:s;if(h.length==0)console.debug("error: empty stack");else{var H=h.pop(),re=Y.Subrs[H+Y.Bias];r.x=T,r.y=S,r.nStems=d,r.haveWidth=m,r.width=y,r.open=x,n.U._drawCFF(re,r,s,f,u),T=r.x,S=r.y,d=r.nStems,m=r.haveWidth,y=r.width,x=r.open}}else if(O=="o30"||O=="o31"){var X=h.length,te=(ve=0,O=="o31");for(ve+=X-(ee=-3&X);ve>>1|(21845&x)<<1;C=(61680&(C=(52428&C)>>>2|(13107&C)<<2))>>>4|(3855&C)<<4,y[x]=((65280&C)>>>8|(255&C)<<8)>>>1}var T=function(O,ee,q){for(var ne=O.length,ae=0,ve=new c(ee);ae>>W]=k}else for(Z=new c(ne),ae=0;ae>>15-O[ae]);return Z},S=new n(288);for(x=0;x<144;++x)S[x]=8;for(x=144;x<256;++x)S[x]=9;for(x=256;x<280;++x)S[x]=7;for(x=280;x<288;++x)S[x]=8;var _=new n(32);for(x=0;x<32;++x)_[x]=5;var w=T(S,9,1),M=T(_,5,1),D=function(O){for(var ee=O[0],q=1;qee&&(ee=O[q]);return ee},R=function(O,ee,q){var ne=ee/8|0;return(O[ne]|O[ne+1]<<8)>>(7&ee)&q},A=function(O,ee){var q=ee/8|0;return(O[q]|O[q+1]<<8|O[q+2]<<16)>>(7&ee)},b=["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(O,ee,q){var ne=new Error(ee||b[O]);if(ne.code=O,Error.captureStackTrace&&Error.captureStackTrace(ne,B),!q)throw ne;return ne},J=function(O,ee,q){var ne=O.length;if(!ne||q&&!q.l&&ne<5)return ee||new n(0);var ae=!ee||q,ve=!q||q.i;q||(q={}),ee||(ee=new n(3*ne));var Z,j=function(Ue){var Qe=ee.length;if(Ue>Qe){var Je=new n(Math.max(2*Qe,Ue));Je.set(ee),ee=Je}},W=q.f||0,k=q.p||0,I=q.b||0,Q=q.l,Y=q.d,H=q.m,re=q.n,X=8*ne;do{if(!Q){q.f=W=R(O,k,1);var te=R(O,k+1,3);if(k+=3,!te){var ue=O[(pe=((Z=k)/8|0)+(7&Z&&1)+4)-4]|O[pe-3]<<8,fe=pe+ue;if(fe>ne){ve&&B(0);break}ae&&j(I+ue),ee.set(O.subarray(pe,fe),I),q.b=I+=ue,q.p=k=8*fe;continue}if(te==1)Q=w,Y=M,H=9,re=5;else if(te==2){var K=R(O,k,31)+257,$=R(O,k+10,15)+4,xe=K+R(O,k+5,31)+1;k+=14;for(var Re=new n(xe),ce=new n(19),Se=0;Se<$;++Se)ce[s[Se]]=R(O,k+3*Se,7);k+=3*$;var ke=D(ce),le=(1<>>4)<16)Re[Se++]=pe;else{var Pe=0,ye=0;for(pe==16?(ye=3+R(O,k,3),k+=2,Pe=Re[Se-1]):pe==17?(ye=3+R(O,k,7),k+=3):pe==18&&(ye=11+R(O,k,127),k+=7);ye--;)Re[Se++]=Pe}}var we=Re.subarray(0,K),me=Re.subarray(K);H=D(we),re=D(me),Q=T(we,H,1),Y=T(me,re,1)}else B(1);if(k>X){ve&&B(0);break}}ae&&j(I+131072);for(var We=(1<>>4;if((k+=15&Pe)>X){ve&&B(0);break}if(Pe||B(2),ze<256)ee[I++]=ze;else{if(ze==256){Me=k,Q=null;break}var He=ze-254;if(ze>264){var ut=i[Se=ze-257];He=R(O,k,(1<>>4;if(De||B(3),k+=15&De,me=m[qe],qe>3&&(ut=r[qe],me+=A(O,k)&(1<X){ve&&B(0);break}ae&&j(I+131072);for(var be=I+He;IUe.length)&&(Je=Ue.length);var ct=new(Ue instanceof c?c:Ue instanceof v?v:n)(Je-Qe);return ct.set(Ue.subarray(Qe,Je)),ct}(ee,0,I)},oe=new n(0),G=typeof TextDecoder<"u"&&new TextDecoder;try{G.decode(oe,{stream:!0})}catch{}return l.convert_streams=function(O){var ee=new DataView(O),q=0;function ne(){var K=ee.getUint16(q);return q+=2,K}function ae(){var K=ee.getUint32(q);return q+=4,K}function ve(K){ue.setUint16(fe,K),fe+=2}function Z(K){ue.setUint32(fe,K),fe+=4}for(var j={signature:ae(),flavor:ae(),length:ae(),numTables:ne(),reserved:ne(),totalSfntSize:ae(),majorVersion:ne(),minorVersion:ne(),metaOffset:ae(),metaLength:ae(),metaOrigLength:ae(),privOffset:ae(),privLength:ae()},W=0;Math.pow(2,W)<=j.numTables;)W++;W--;for(var k=16*Math.pow(2,W),I=16*j.numTables-k,Q=12,Y=[],H=0;H{let[oe,G]=J.split("+");oe=parseInt(oe,36),G=G?parseInt(G,36):0,d.set(B+=oe,A[b]);for(let O=G;O--;)d.set(++B,A[b])})}}return d.get(R)||h}const y=1,x=2,C=3,T=4,S=[null,"isol","init","fina","medi"];function _(R){const A=new Uint8Array(R.length);let b=h,B=y,J=-1;for(let oe=0;oe65535&&oe++)}return A}function w(R,A){const b=[];for(let J=0;J65535&&J++,b.push(l.U.codeToGlyph(R,oe))}const B=R.GSUB;if(B){const{lookupList:J,featureList:oe}=B;let G;const O=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,ee=[];oe.forEach(q=>{if(O.test(q.tag))for(let ne=0;ne{if(k!==-1){let Q=A[k];if(!Q){const{cmds:Y,crds:H}=l.U.glyphToPath(R,k);let re="",X=0;for(let $=0,xe=Y.length;$1?",":"")+H[X++]}let te,ue,fe,K;if(H.length){te=ue=1/0,fe=K=-1/0;for(let $=0,xe=H.length;$fe&&(fe=Re),ce>K&&(K=ce)}}else te=fe=ue=K=0;Q=A[k]={index:k,advanceWidth:R.hmtx.aWidth[k],xMin:te,yMin:ue,xMax:fe,yMax:K,path:re,pathCommandCount:Y.length}}W!==-1&&(ae+=l.U.getPairAdjustment(R,W,k)*ve),ne.call(null,Q,ae,j),Q.advanceWidth&&(ae+=Q.advanceWidth*ve),q&&(ae+=q*ee),W=k}j+=O.codePointAt(j)>65535?2:1}),ae}};return G}return function(A){const b=new Uint8Array(A,0,4),B=l._bin.readASCII(b,0,4);if(B==="wOFF")A=n(A);else if(B==="wOF2")throw new Error("woff2 fonts not supported");return D(l.parse(A)[0])}}const p0=so({name:"Typr Font Parser",dependencies:[f0,d0,h0],init(l,n,c){const v=l(),i=n();return c(v,i)}}),mi={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},v0=new ro;function fi(){return(self.performance||Date).now()}const uc=Object.create(null);function cf(l,n){l=y0({},l);const c=fi();if(l.font=x0(l.font||mi.defaultFontURL),l.text=""+l.text,l.sdfGlyphSize=l.sdfGlyphSize||mi.sdfGlyphSize,l.colorRanges!=null){let m={};for(let y in l.colorRanges)if(l.colorRanges.hasOwnProperty(y)){let x=l.colorRanges[y];typeof x!="number"&&(x=v0.set(x).getHex()),m[y]=x}l.colorRanges=m}Object.freeze(l);const{textureWidth:v,sdfExponent:i}=mi,{sdfGlyphSize:r}=l,s=v/r*4;let f=uc[r];if(!f){const m=document.createElement("canvas");m.width=v,m.height=r*256/s,f=uc[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:m,sdfTexture:new Vl(m,void 0,void 0,void 0,Au,Au),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,m0(f)}const{sdfTexture:u,sdfCanvas:h}=f;let d=f.glyphsByFont.get(l.font);d||f.glyphsByFont.set(l.font,d=new Map),S0(l).then(m=>{const{glyphIds:y,glyphPositions:x,fontSize:C,unitsPerEm:T,timings:S}=m,_=[],w=new Float32Array(y.length*4),M=C/T;let D=0,R=0;const A=fi();y.forEach((G,O)=>{let ee=d.get(G);if(!ee){const{path:ve,pathBounds:Z}=m.glyphData[G],j=Math.max(Z[2]-Z[0],Z[3]-Z[1])/r*(mi.sdfMargin*r+.5),W=f.glyphCount++,k=[Z[0]-j,Z[1]-j,Z[2]+j,Z[3]+j];d.set(G,ee={path:ve,atlasIndex:W,sdfViewBox:k}),_.push(ee)}const{sdfViewBox:q}=ee,ne=x[R++],ae=x[R++];w[D++]=ne+q[0]*M,w[D++]=ae+q[1]*M,w[D++]=ne+q[2]*M,w[D++]=ae+q[3]*M,y[O]=ee.atlasIndex}),S.quads=(S.quads||0)+(fi()-A);const b=fi();S.sdf={};const B=h.height,J=Math.ceil(f.glyphCount/s),oe=Math.pow(2,Math.ceil(Math.log2(J*r)));oe>B&&(console.info(`Increasing SDF texture size ${B}->${oe}`),c0(h,v,oe),u.dispose()),Promise.all(_.map(G=>ff(G,f,l.gpuAccelerateSDF).then(({timing:O})=>{S.sdf[G.atlasIndex]=O}))).then(()=>{_.length&&!f.contextLost&&(df(f),u.needsUpdate=!0),S.sdfTotal=fi()-b,S.total=fi()-c,n(Object.freeze({parameters:l,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:w,glyphAtlasIndices:y,glyphColors:m.glyphColors,caretPositions:m.caretPositions,caretHeight:m.caretHeight,chunkedBounds:m.chunkedBounds,ascender:m.ascender,descender:m.descender,lineHeight:m.lineHeight,capHeight:m.capHeight,xHeight:m.xHeight,topBaseline:m.topBaseline,blockBounds:m.blockBounds,visibleBounds:m.visibleBounds,timings:m.timings}))})}),Promise.resolve().then(()=>{f.contextLost||u0(h)})}function ff({path:l,atlasIndex:n,sdfViewBox:c},{sdfGlyphSize:v,sdfCanvas:i,contextLost:r},s){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=mi,h=Math.max(c[2]-c[0],c[3]-c[1]),d=Math.floor(n/4),m=d%(f/v)*v,y=Math.floor(d/(f/v))*v,x=n%4;return r0(v,v,l,c,h,u,i,m,y,x,s)}function m0(l){const n=l.sdfCanvas;n.addEventListener("webglcontextlost",c=>{console.log("Context Lost",c),c.preventDefault(),l.contextLost=!0}),n.addEventListener("webglcontextrestored",c=>{console.log("Context Restored",c),l.contextLost=!1;const v=[];l.glyphsByFont.forEach(i=>{i.forEach(r=>{v.push(ff(r,l,!0))})}),Promise.all(v).then(()=>{df(l),l.sdfTexture.needsUpdate=!0})})}function g0({font:l,characters:n,sdfGlyphSize:c},v){let i=Array.isArray(n)?n.join(` -`):""+n;cf({font:l,sdfGlyphSize:c,text:i},v)}function y0(l,n){for(let c in n)n.hasOwnProperty(c)&&(l[c]=n[c]);return l}let la;function x0(l){return la||(la=typeof document>"u"?{}:document.createElement("a")),la.href=l,la.href}function df(l){if(typeof createImageBitmap!="function"){console.info("Safari<15: applying SDF canvas workaround");const{sdfCanvas:n,sdfTexture:c}=l,{width:v,height:i}=n,r=l.sdfCanvas.getContext("webgl");let s=c.image.data;(!s||s.length!==v*i*4)&&(s=new Uint8Array(v*i*4),c.image={width:v,height:i,data:s},c.flipY=!1,c.isDataTexture=!0),r.readPixels(0,0,v,i,r.RGBA,r.UNSIGNED_BYTE,s)}}const w0=so({name:"Typesetter",dependencies:[mi,p0,n0,X1],init(l,n,c,v){const{defaultFontURL:i}=l;return c(n,v(),{defaultFontURL:i})}}),S0=so({name:"Typesetter",dependencies:[w0],init(l){return function(n){return new Promise(c=>{l.typeset(n,c)})}},getTransferables(l){const n=[l.glyphPositions.buffer,l.glyphIds.buffer];return l.caretPositions&&n.push(l.caretPositions.buffer),l.glyphColors&&n.push(l.glyphColors.buffer),n}}),cc={};function C0(l){let n=cc[l];if(!n){const c=new Jl(1,1,l,l),v=c.clone(),i=c.attributes,r=v.attributes,s=new Ec,f=i.uv.count;for(let u=0;u{s.setAttribute(u,new Ul([...i[u].array,...r[u].array],i[u].itemSize))}),s.setIndex([...c.index.array,...v.index.array.map(u=>u+f)]),s.translate(.5,.5,0),n=cc[l]=s}return n}const _0="aTroikaGlyphBounds",fc="aTroikaGlyphIndex",E0="aTroikaGlyphColor";class T0 extends Tc{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 Yl,this.boundingBox=new pa}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const c=this.getIndex().count;this.setDrawRange(n===kd?c/2:0,n===Xl?c:c/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let c=C0(n);["position","normal","uv"].forEach(v=>{this.attributes[v]=c.attributes[v].clone()}),this.setIndex(c.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,c,v,i,r){Tl(this,_0,n,4),Tl(this,fc,c,1),Tl(this,E0,r,3),this._blockBounds=v,this._chunkedBounds=i,this.instanceCount=c.length,this._updateBounds()}_updateBounds(){const n=this._blockBounds;if(n){const{curveRadius:c,boundingBox:v}=this;if(c){const{PI:i,floor:r,min:s,max:f,sin:u,cos:h}=Math,d=i/2,m=i*2,y=Math.abs(c),x=n[0]/y,C=n[2]/y,T=r((x+d)/m)!==r((C+d)/m)?-y:s(u(x)*y,u(C)*y),S=r((x-d)/m)!==r((C-d)/m)?y:f(u(x)*y,u(C)*y),_=r((x+i)/m)!==r((C+i)/m)?y*2:f(y-h(x)*y,y-h(C)*y);v.min.set(T,n[1],c<0?-_:0),v.max.set(S,n[3],c<0?0:_)}else v.min.set(n[0],n[1],0),v.max.set(n[2],n[3],0);v.getBoundingSphere(this.boundingSphere)}}applyClipRect(n){let c=this.getAttribute(fc).count,v=this._chunkedBounds;if(v)for(let i=v.length;i--;){c=v[i].end;let r=v[i].rect;if(r[1]n.y&&r[0]n.x)break}this.instanceCount=c}}function Tl(l,n,c,v){const i=l.getAttribute(n);c?i&&i.array.length===c.length?(i.array.set(c),i.needsUpdate=!0):(l.setAttribute(n,new Pd(c,v)),delete l._maxInstanceCount,l.dispose()):i&&l.deleteAttribute(n)}const M0=` +*/function h0(){return function(a){var n=Uint8Array,c=Uint16Array,v=Uint32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),r=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(O,ee){for(var q=new c(31),ne=0;ne<31;++ne)q[ne]=ee+=1<>>1|(21845&x)<<1;C=(61680&(C=(52428&C)>>>2|(13107&C)<<2))>>>4|(3855&C)<<4,y[x]=((65280&C)>>>8|(255&C)<<8)>>>1}var T=function(O,ee,q){for(var ne=O.length,ae=0,ve=new c(ee);ae>>W]=P}else for(Z=new c(ne),ae=0;ae>>15-O[ae]);return Z},S=new n(288);for(x=0;x<144;++x)S[x]=8;for(x=144;x<256;++x)S[x]=9;for(x=256;x<280;++x)S[x]=7;for(x=280;x<288;++x)S[x]=8;var _=new n(32);for(x=0;x<32;++x)_[x]=5;var w=T(S,9,1),M=T(_,5,1),D=function(O){for(var ee=O[0],q=1;qee&&(ee=O[q]);return ee},R=function(O,ee,q){var ne=ee/8|0;return(O[ne]|O[ne+1]<<8)>>(7&ee)&q},A=function(O,ee){var q=ee/8|0;return(O[q]|O[q+1]<<8|O[q+2]<<16)>>(7&ee)},b=["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(O,ee,q){var ne=new Error(ee||b[O]);if(ne.code=O,Error.captureStackTrace&&Error.captureStackTrace(ne,B),!q)throw ne;return ne},J=function(O,ee,q){var ne=O.length;if(!ne||q&&!q.l&&ne<5)return ee||new n(0);var ae=!ee||q,ve=!q||q.i;q||(q={}),ee||(ee=new n(3*ne));var Z,j=function(Ue){var Qe=ee.length;if(Ue>Qe){var Je=new n(Math.max(2*Qe,Ue));Je.set(ee),ee=Je}},W=q.f||0,P=q.p||0,I=q.b||0,Q=q.l,Y=q.d,H=q.m,re=q.n,X=8*ne;do{if(!Q){q.f=W=R(O,P,1);var te=R(O,P+1,3);if(P+=3,!te){var ue=O[(pe=((Z=P)/8|0)+(7&Z&&1)+4)-4]|O[pe-3]<<8,fe=pe+ue;if(fe>ne){ve&&B(0);break}ae&&j(I+ue),ee.set(O.subarray(pe,fe),I),q.b=I+=ue,q.p=P=8*fe;continue}if(te==1)Q=w,Y=M,H=9,re=5;else if(te==2){var K=R(O,P,31)+257,$=R(O,P+10,15)+4,xe=K+R(O,P+5,31)+1;P+=14;for(var Re=new n(xe),ce=new n(19),Se=0;Se<$;++Se)ce[s[Se]]=R(O,P+3*Se,7);P+=3*$;var ke=D(ce),le=(1<>>4)<16)Re[Se++]=pe;else{var Pe=0,ye=0;for(pe==16?(ye=3+R(O,P,3),P+=2,Pe=Re[Se-1]):pe==17?(ye=3+R(O,P,7),P+=3):pe==18&&(ye=11+R(O,P,127),P+=7);ye--;)Re[Se++]=Pe}}var we=Re.subarray(0,K),me=Re.subarray(K);H=D(we),re=D(me),Q=T(we,H,1),Y=T(me,re,1)}else B(1);if(P>X){ve&&B(0);break}}ae&&j(I+131072);for(var We=(1<>>4;if((P+=15&Pe)>X){ve&&B(0);break}if(Pe||B(2),ze<256)ee[I++]=ze;else{if(ze==256){Me=P,Q=null;break}var He=ze-254;if(ze>264){var ut=i[Se=ze-257];He=R(O,P,(1<>>4;if(De||B(3),P+=15&De,me=m[qe],qe>3&&(ut=r[qe],me+=A(O,P)&(1<X){ve&&B(0);break}ae&&j(I+131072);for(var be=I+He;IUe.length)&&(Je=Ue.length);var ct=new(Ue instanceof c?c:Ue instanceof v?v:n)(Je-Qe);return ct.set(Ue.subarray(Qe,Je)),ct}(ee,0,I)},oe=new n(0),G=typeof TextDecoder<"u"&&new TextDecoder;try{G.decode(oe,{stream:!0})}catch{}return a.convert_streams=function(O){var ee=new DataView(O),q=0;function ne(){var K=ee.getUint16(q);return q+=2,K}function ae(){var K=ee.getUint32(q);return q+=4,K}function ve(K){ue.setUint16(fe,K),fe+=2}function Z(K){ue.setUint32(fe,K),fe+=4}for(var j={signature:ae(),flavor:ae(),length:ae(),numTables:ne(),reserved:ne(),totalSfntSize:ae(),majorVersion:ne(),minorVersion:ne(),metaOffset:ae(),metaLength:ae(),metaOrigLength:ae(),privOffset:ae(),privLength:ae()},W=0;Math.pow(2,W)<=j.numTables;)W++;W--;for(var P=16*Math.pow(2,W),I=16*j.numTables-P,Q=12,Y=[],H=0;H{let[oe,G]=J.split("+");oe=parseInt(oe,36),G=G?parseInt(G,36):0,d.set(B+=oe,A[b]);for(let O=G;O--;)d.set(++B,A[b])})}}return d.get(R)||h}const y=1,x=2,C=3,T=4,S=[null,"isol","init","fina","medi"];function _(R){const A=new Uint8Array(R.length);let b=h,B=y,J=-1;for(let oe=0;oe65535&&oe++)}return A}function w(R,A){const b=[];for(let J=0;J65535&&J++,b.push(a.U.codeToGlyph(R,oe))}const B=R.GSUB;if(B){const{lookupList:J,featureList:oe}=B;let G;const O=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,ee=[];oe.forEach(q=>{if(O.test(q.tag))for(let ne=0;ne{if(P!==-1){let Q=A[P];if(!Q){const{cmds:Y,crds:H}=a.U.glyphToPath(R,P);let re="",X=0;for(let $=0,xe=Y.length;$1?",":"")+H[X++]}let te,ue,fe,K;if(H.length){te=ue=1/0,fe=K=-1/0;for(let $=0,xe=H.length;$fe&&(fe=Re),ce>K&&(K=ce)}}else te=fe=ue=K=0;Q=A[P]={index:P,advanceWidth:R.hmtx.aWidth[P],xMin:te,yMin:ue,xMax:fe,yMax:K,path:re,pathCommandCount:Y.length}}W!==-1&&(ae+=a.U.getPairAdjustment(R,W,P)*ve),ne.call(null,Q,ae,j),Q.advanceWidth&&(ae+=Q.advanceWidth*ve),q&&(ae+=q*ee),W=P}j+=O.codePointAt(j)>65535?2:1}),ae}};return G}return function(A){const b=new Uint8Array(A,0,4),B=a._bin.readASCII(b,0,4);if(B==="wOFF")A=n(A);else if(B==="wOF2")throw new Error("woff2 fonts not supported");return D(a.parse(A)[0])}}const v0=so({name:"Typr Font Parser",dependencies:[d0,h0,p0],init(a,n,c){const v=a(),i=n();return c(v,i)}}),gi={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},m0=new ro;function di(){return(self.performance||Date).now()}const uc=Object.create(null);function cf(a,n){a=x0({},a);const c=di();if(a.font=w0(a.font||gi.defaultFontURL),a.text=""+a.text,a.sdfGlyphSize=a.sdfGlyphSize||gi.sdfGlyphSize,a.colorRanges!=null){let m={};for(let y in a.colorRanges)if(a.colorRanges.hasOwnProperty(y)){let x=a.colorRanges[y];typeof x!="number"&&(x=m0.set(x).getHex()),m[y]=x}a.colorRanges=m}Object.freeze(a);const{textureWidth:v,sdfExponent:i}=gi,{sdfGlyphSize:r}=a,s=v/r*4;let f=uc[r];if(!f){const m=document.createElement("canvas");m.width=v,m.height=r*256/s,f=uc[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:m,sdfTexture:new Vl(m,void 0,void 0,void 0,Au,Au),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,g0(f)}const{sdfTexture:u,sdfCanvas:h}=f;let d=f.glyphsByFont.get(a.font);d||f.glyphsByFont.set(a.font,d=new Map),C0(a).then(m=>{const{glyphIds:y,glyphPositions:x,fontSize:C,unitsPerEm:T,timings:S}=m,_=[],w=new Float32Array(y.length*4),M=C/T;let D=0,R=0;const A=di();y.forEach((G,O)=>{let ee=d.get(G);if(!ee){const{path:ve,pathBounds:Z}=m.glyphData[G],j=Math.max(Z[2]-Z[0],Z[3]-Z[1])/r*(gi.sdfMargin*r+.5),W=f.glyphCount++,P=[Z[0]-j,Z[1]-j,Z[2]+j,Z[3]+j];d.set(G,ee={path:ve,atlasIndex:W,sdfViewBox:P}),_.push(ee)}const{sdfViewBox:q}=ee,ne=x[R++],ae=x[R++];w[D++]=ne+q[0]*M,w[D++]=ae+q[1]*M,w[D++]=ne+q[2]*M,w[D++]=ae+q[3]*M,y[O]=ee.atlasIndex}),S.quads=(S.quads||0)+(di()-A);const b=di();S.sdf={};const B=h.height,J=Math.ceil(f.glyphCount/s),oe=Math.pow(2,Math.ceil(Math.log2(J*r)));oe>B&&(console.info(`Increasing SDF texture size ${B}->${oe}`),f0(h,v,oe),u.dispose()),Promise.all(_.map(G=>ff(G,f,a.gpuAccelerateSDF).then(({timing:O})=>{S.sdf[G.atlasIndex]=O}))).then(()=>{_.length&&!f.contextLost&&(df(f),u.needsUpdate=!0),S.sdfTotal=di()-b,S.total=di()-c,n(Object.freeze({parameters:a,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:w,glyphAtlasIndices:y,glyphColors:m.glyphColors,caretPositions:m.caretPositions,caretHeight:m.caretHeight,chunkedBounds:m.chunkedBounds,ascender:m.ascender,descender:m.descender,lineHeight:m.lineHeight,capHeight:m.capHeight,xHeight:m.xHeight,topBaseline:m.topBaseline,blockBounds:m.blockBounds,visibleBounds:m.visibleBounds,timings:m.timings}))})}),Promise.resolve().then(()=>{f.contextLost||c0(h)})}function ff({path:a,atlasIndex:n,sdfViewBox:c},{sdfGlyphSize:v,sdfCanvas:i,contextLost:r},s){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=gi,h=Math.max(c[2]-c[0],c[3]-c[1]),d=Math.floor(n/4),m=d%(f/v)*v,y=Math.floor(d/(f/v))*v,x=n%4;return i0(v,v,a,c,h,u,i,m,y,x,s)}function g0(a){const n=a.sdfCanvas;n.addEventListener("webglcontextlost",c=>{console.log("Context Lost",c),c.preventDefault(),a.contextLost=!0}),n.addEventListener("webglcontextrestored",c=>{console.log("Context Restored",c),a.contextLost=!1;const v=[];a.glyphsByFont.forEach(i=>{i.forEach(r=>{v.push(ff(r,a,!0))})}),Promise.all(v).then(()=>{df(a),a.sdfTexture.needsUpdate=!0})})}function y0({font:a,characters:n,sdfGlyphSize:c},v){let i=Array.isArray(n)?n.join(` +`):""+n;cf({font:a,sdfGlyphSize:c,text:i},v)}function x0(a,n){for(let c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);return a}let la;function w0(a){return la||(la=typeof document>"u"?{}:document.createElement("a")),la.href=a,la.href}function df(a){if(typeof createImageBitmap!="function"){console.info("Safari<15: applying SDF canvas workaround");const{sdfCanvas:n,sdfTexture:c}=a,{width:v,height:i}=n,r=a.sdfCanvas.getContext("webgl");let s=c.image.data;(!s||s.length!==v*i*4)&&(s=new Uint8Array(v*i*4),c.image={width:v,height:i,data:s},c.flipY=!1,c.isDataTexture=!0),r.readPixels(0,0,v,i,r.RGBA,r.UNSIGNED_BYTE,s)}}const S0=so({name:"Typesetter",dependencies:[gi,v0,r0,Y1],init(a,n,c,v){const{defaultFontURL:i}=a;return c(n,v(),{defaultFontURL:i})}}),C0=so({name:"Typesetter",dependencies:[S0],init(a){return function(n){return new Promise(c=>{a.typeset(n,c)})}},getTransferables(a){const n=[a.glyphPositions.buffer,a.glyphIds.buffer];return a.caretPositions&&n.push(a.caretPositions.buffer),a.glyphColors&&n.push(a.glyphColors.buffer),n}}),cc={};function _0(a){let n=cc[a];if(!n){const c=new Jl(1,1,a,a),v=c.clone(),i=c.attributes,r=v.attributes,s=new Ec,f=i.uv.count;for(let u=0;u{s.setAttribute(u,new Ul([...i[u].array,...r[u].array],i[u].itemSize))}),s.setIndex([...c.index.array,...v.index.array.map(u=>u+f)]),s.translate(.5,.5,0),n=cc[a]=s}return n}const E0="aTroikaGlyphBounds",fc="aTroikaGlyphIndex",T0="aTroikaGlyphColor";class M0 extends Tc{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 Yl,this.boundingBox=new pa}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const c=this.getIndex().count;this.setDrawRange(n===Pd?c/2:0,n===Xl?c:c/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let c=_0(n);["position","normal","uv"].forEach(v=>{this.attributes[v]=c.attributes[v].clone()}),this.setIndex(c.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,c,v,i,r){Tl(this,E0,n,4),Tl(this,fc,c,1),Tl(this,T0,r,3),this._blockBounds=v,this._chunkedBounds=i,this.instanceCount=c.length,this._updateBounds()}_updateBounds(){const n=this._blockBounds;if(n){const{curveRadius:c,boundingBox:v}=this;if(c){const{PI:i,floor:r,min:s,max:f,sin:u,cos:h}=Math,d=i/2,m=i*2,y=Math.abs(c),x=n[0]/y,C=n[2]/y,T=r((x+d)/m)!==r((C+d)/m)?-y:s(u(x)*y,u(C)*y),S=r((x-d)/m)!==r((C-d)/m)?y:f(u(x)*y,u(C)*y),_=r((x+i)/m)!==r((C+i)/m)?y*2:f(y-h(x)*y,y-h(C)*y);v.min.set(T,n[1],c<0?-_:0),v.max.set(S,n[3],c<0?0:_)}else v.min.set(n[0],n[1],0),v.max.set(n[2],n[3],0);v.getBoundingSphere(this.boundingSphere)}}applyClipRect(n){let c=this.getAttribute(fc).count,v=this._chunkedBounds;if(v)for(let i=v.length;i--;){c=v[i].end;let r=v[i].rect;if(r[1]n.y&&r[0]n.x)break}this.instanceCount=c}}function Tl(a,n,c,v){const i=a.getAttribute(n);c?i&&i.array.length===c.length?(i.array.set(c),i.needsUpdate=!0):(a.setAttribute(n,new Ld(c,v)),delete a._maxInstanceCount,a.dispose()):i&&a.deleteAttribute(n)}const k0=` uniform vec2 uTroikaSDFTextureSize; uniform float uTroikaSDFGlyphSize; uniform vec4 uTroikaTotalBounds; @@ -526,7 +526,7 @@ varying vec4 vTroikaTextureUVBounds; varying float vTroikaTextureChannel; varying vec3 vTroikaGlyphColor; varying vec2 vTroikaGlyphDimensions; -`,k0=` +`,P0=` vec4 bounds = aTroikaGlyphBounds; bounds.xz += uTroikaPositionOffset.x; bounds.yw -= uTroikaPositionOffset.y; @@ -568,7 +568,7 @@ vec2 txStartUV = txUvPerSquare * vec2( ); vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare); vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0); -`,P0=` +`,L0=` uniform sampler2D uTroikaSDFTexture; uniform vec2 uTroikaSDFTextureSize; uniform float uTroikaSDFGlyphSize; @@ -642,7 +642,7 @@ float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) { return alpha; } -`,L0=` +`,U0=` float aaDist = troikaGetAADist(); float fragDistance = troikaGetFragDistValue(); float edgeAlpha = uTroikaSDFDebug ? @@ -665,9 +665,9 @@ gl_FragColor.a *= edgeAlpha; if (edgeAlpha == 0.0) { discard; } -`;function U0(l){const n=Nl(l,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new Nr},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new xi(0,0,0,0)},uTroikaClipRect:{value:new xi(0,0,0,0)},uTroikaDistanceOffset:{value:0},uTroikaOutlineOpacity:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new Nr},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new ro},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new Ld},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:M0,vertexTransform:k0,fragmentDefs:P0,fragmentColorTransform:L0,customRewriter({vertexShader:c,fragmentShader:v}){let i=/\buniform\s+vec3\s+diffuse\b/;return i.test(v)&&(v=v.replace(i,"varying vec3 vTroikaGlyphColor").replace(/\bdiffuse\b/g,"vTroikaGlyphColor"),i.test(c)||(c=c.replace(sf,`uniform vec3 diffuse; +`;function R0(a){const n=Nl(a,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new Gr},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new xi(0,0,0,0)},uTroikaClipRect:{value:new xi(0,0,0,0)},uTroikaDistanceOffset:{value:0},uTroikaOutlineOpacity:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new Gr},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new ro},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new Ud},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:k0,vertexTransform:P0,fragmentDefs:L0,fragmentColorTransform:U0,customRewriter({vertexShader:c,fragmentShader:v}){let i=/\buniform\s+vec3\s+diffuse\b/;return i.test(v)&&(v=v.replace(i,"varying vec3 vTroikaGlyphColor").replace(/\bdiffuse\b/g,"vTroikaGlyphColor"),i.test(c)||(c=c.replace(sf,`uniform vec3 diffuse; $& vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse; -`))),{vertexShader:c,fragmentShader:v}}});return n.transparent=!0,Object.defineProperties(n,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),n}const rs=new Ud({color:16777215,side:Xl,transparent:!0}),dc=8421504,hc=new Mc,sa=new st,Ml=new st,$i=[],R0=new st,kl="+x+y";function pc(l){return Array.isArray(l)?l[0]:l}let hf=()=>{const l=new io(new Jl(1,1),rs);return hf=()=>l,l},pf=()=>{const l=new io(new Jl(1,1,32,1),rs);return pf=()=>l,l};const F0={type:"syncstart"},A0={type:"synccomplete"},vf=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],D0=vf.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let mf=class extends io{constructor(){const n=new T0;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=dc,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=kl,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(F0),cf({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},c=>{this._isSyncing=!1,this._textRenderInfo=c,this.geometry.updateGlyphs(c.glyphBounds,c.glyphAtlasIndices,c.blockBounds,c.chunkedBounds,c.glyphColors);const v=this._queuedSyncs;v&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{v.forEach(i=>i&&i())})),this.dispatchEvent(A0),n&&n()})))}onBeforeRender(n,c,v,i,r,s){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=Md}onAfterRender(n,c,v,i,r,s){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 c=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=rs.clone());if((!n||n.baseMaterial!==c)&&(n=this._derivedMaterial=U0(c),c.addEventListener("dispose",function v(){c.removeEventListener("dispose",v),n.dispose()})),this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY){let v=n._outlineMtl;return v||(v=n._outlineMtl=Object.create(n,{id:{value:n.id+.1}}),v.isTextOutlineMaterial=!0,v.depthWrite=!1,v.map=null,n.addEventListener("dispose",function i(){n.removeEventListener("dispose",i),v.dispose()})),[v,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 pc(this.material).getDepthMaterial()}get customDistanceMaterial(){return pc(this.material).getDistanceMaterial()}_prepareForRender(n){const c=n.isTextOutlineMaterial,v=n.uniforms,i=this.textRenderInfo;if(i){const{sdfTexture:f,blockBounds:u}=i;v.uTroikaSDFTexture.value=f,v.uTroikaSDFTextureSize.value.set(f.image.width,f.image.height),v.uTroikaSDFGlyphSize.value=i.sdfGlyphSize,v.uTroikaSDFExponent.value=i.sdfExponent,v.uTroikaTotalBounds.value.fromArray(u),v.uTroikaUseGlyphColors.value=!c&&!!i.glyphColors;let h=0,d=0,m=0,y,x,C,T=0,S=0;if(c){let{outlineWidth:w,outlineOffsetX:M,outlineOffsetY:D,outlineBlur:R,outlineOpacity:A}=this;h=this._parsePercent(w)||0,d=Math.max(0,this._parsePercent(R)||0),y=A,T=this._parsePercent(M)||0,S=this._parsePercent(D)||0}else m=Math.max(0,this._parsePercent(this.strokeWidth)||0),m&&(C=this.strokeColor,v.uTroikaStrokeColor.value.set(C??dc),x=this.strokeOpacity,x==null&&(x=1)),y=this.fillOpacity;v.uTroikaDistanceOffset.value=h,v.uTroikaPositionOffset.value.set(T,S),v.uTroikaBlurRadius.value=d,v.uTroikaStrokeWidth.value=m,v.uTroikaStrokeOpacity.value=x,v.uTroikaFillOpacity.value=y??1,v.uTroikaCurveRadius.value=this.curveRadius||0;let _=this.clipRect;if(_&&Array.isArray(_)&&_.length===4)v.uTroikaClipRect.value.fromArray(_);else{const w=(this.fontSize||.1)*100;v.uTroikaClipRect.value.set(u[0]-w,u[1]-w,u[2]+w,u[3]+w)}this.geometry.applyClipRect(v.uTroikaClipRect.value)}v.uTroikaSDFDebug.value=!!this.debugSDF,n.polygonOffset=!!this.depthOffset,n.polygonOffsetFactor=n.polygonOffsetUnits=this.depthOffset||0;const r=c?this.outlineColor||0:this.color;if(r==null)delete n.color;else{const f=n.hasOwnProperty("color")?n.color:n.color=new ro;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let s=this.orientation||kl;if(s!==n._orientation){let f=v.uTroikaOrient.value;s=s.replace(/[^-+xyz]/g,"");let u=s!==kl&&s.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,h,d,m,y]=u;sa.set(0,0,0)[d]=h==="-"?1:-1,Ml.set(0,0,0)[y]=m==="-"?-1:1,hc.lookAt(R0,sa.cross(Ml),Ml),f.setFromMatrix4(hc)}else f.identity();n._orientation=s}}_parsePercent(n){if(typeof n=="string"){let c=n.match(/^(-?[\d.]+)%$/),v=c?parseFloat(c[1]):NaN;n=(isNaN(v)?0:v/100)*this.fontSize}return n}localPositionToTextCoords(n,c=new Nr){c.copy(n);const v=this.curveRadius;return v&&(c.x=Math.atan2(n.x,Math.abs(v)-Math.abs(n.z))*Math.abs(v)),c}worldPositionToTextCoords(n,c=new Nr){return sa.copy(n),this.localPositionToTextCoords(this.worldToLocal(sa),c)}raycast(n,c){const{textRenderInfo:v,curveRadius:i}=this;if(v){const r=v.blockBounds,s=i?pf():hf(),f=s.geometry,{position:u,uv:h}=f.attributes;for(let d=0;d{this[v]=n[v]}),this}clone(){return new this.constructor().copy(this)}};vf.forEach(l=>{const n="_private_"+l;Object.defineProperty(mf.prototype,l,{get(){return this[n]},set(c){c!==this[n]&&(this[n]=c,this._needsSync=!0)}})});function O0(l,n,c=(v,i)=>v===i){if(l===n)return!0;if(!l||!n)return!1;const v=l.length;if(n.length!==v)return!1;for(let i=0;ii.response=r).then(()=>{v.lifespan&&v.lifespan>0&&setTimeout(()=>{const r=ua.indexOf(i);r!==-1&&ua.splice(r,1)},v.lifespan)}).catch(r=>i.error=r)};if(ua.push(i),!c)throw i.promise}const I0=(l,n,c)=>z0(l,n,!1,c),vc=P.forwardRef(({anchorX:l="center",anchorY:n="middle",font:c,fontSize:v=1,children:i,characters:r,onSync:s,...f},u)=>{const h=Si(({invalidate:x})=>x),[d]=P.useState(()=>new mf),[m,y]=P.useMemo(()=>{const x=[];let C="";return P.Children.forEach(i,T=>{typeof T=="string"||typeof T=="number"?C+=T:x.push(T)}),[x,C]},[i]);return I0(()=>new Promise(x=>g0({font:c,characters:r},x)),["troika-text",c,r]),P.useLayoutEffect(()=>void d.sync(()=>{h(),s&&s(d)})),P.useEffect(()=>()=>d.dispose(),[d]),P.createElement("primitive",yi({object:d,ref:u,font:c,text:y,anchorX:l,anchorY:n,fontSize:v},f),m)});function gt(l,n){if(l==null)return{};var c={},v=Object.keys(l),i,r;for(r=0;r=0)&&(c[i]=l[i]);return c}var j0=["color"],gf=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,j0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),b0=["color"],B0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,b0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),N0=["color"],G0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,N0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),W0=["color"],H0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,W0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),V0=["color"],Z0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,V0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),Q0=["color"],X0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,Q0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),Y0=["color"],J0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,Y0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),K0=["color"],q0=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,K0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),$0=["color"],Wl=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,$0);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),eh=["color"],th=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,eh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),nh=["color"],rh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,nh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),ih=["color"],oh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,ih);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),ah=["color"],lh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,ah);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),sh=["color"],uh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,sh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),ch=["color"],fh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,ch);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),dh=["color"],hh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,dh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),ph=["color"],vh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,ph);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),mh=["color"],gh=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,mh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),yh=["color"],yf=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,yh);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:v}))}),xh=["color"],xf=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,xh);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:v}))}),wh=["color"],wf=P.forwardRef(function(l,n){var c=l.color,v=c===void 0?"currentColor":c,i=gt(l,wh);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:v,fillRule:"evenodd",clipRule:"evenodd"}))});function Sh(l,n){if(typeof l!="object"||l===null)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var v=c.call(l,n||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(l)}function Ch(l){var n=Sh(l,"string");return typeof n=="symbol"?n:String(n)}function _h(l,n,c){return n=Ch(n),n in l?Object.defineProperty(l,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[n]=c,l}function mc(l,n){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);n&&(v=v.filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable})),c.push.apply(c,v)}return c}function Hl(l){for(var n=1;n(l==null?void 0:l.reduce((n,c)=>n+c,0))/l.length;class Eh{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=kc.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 c=v=>{++n<20?this.rafId=window.requestAnimationFrame(c):(this.detected=Math.ceil(1e3*n/(v-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=v)};this.rafId=window.requestAnimationFrame(c)}addUI(n){this.names.indexOf(n)===-1&&(this.names.push(n),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(n){const c=16.666666666666668,v=c-n.timeRemaining(),i=c*Pn.fpsLimit/10/v;i<0||(Pn.value=i,Pn.isOverLimit<25?Pn.isOverLimit++:Ge.setState({overclockingFps:!0}))}nextFrame(n){this.frameId++;const c=n||this.now();let v=c-this.paramTime,i=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=c;else if(c>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const r=this.frameId-this.paramFrame,s=r*1e3/v,f=Ge.getState().overclockingFps?Pn.value:s;if(i=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/v,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(s),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(Pn.isOverLimit>0&&f>s?Pn.isOverLimit--:Ge.getState().overclockingFps&&Ge.setState({overclockingFps:!1})),c>=this.paramTime+180&&(this.paramLogger({cpu:eo(this.logsAccums.cpu),gpu:eo(this.logsAccums.gpu),mem:eo(this.logsAccums.mem),fps:eo(this.logsAccums.fps),duration:Math.round(v),maxMemory:this.maxMemory,frameCount:r}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=c),this.overClock&&c-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=n,Pn.fpsLimit=Math.round(eo(this.logsAccums.fpsFixed)/10)*100,Ge.setState({fpsLimit:Pn.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=c)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=c,this.circularId=0;else{const r=c-this.chartTime;let s=this.chartHz*r/1e3;for(;--s>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,h=Ge.getState().overclockingFps?Pn.value:u;this.fpsChart[this.circularId%this.chartLen]=h;const d=1e3/this.currentMem,m=this.currentCpu,y=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/v*100))+4;y>0&&(this.gpuChart[this.circularId%this.chartLen]=y),m>0&&(this.cpuChart[this.circularId%this.chartLen]=m),d>0&&(this.memChart[this.circularId%this.chartLen]=d);for(let x=0;x0&&(i||this.activeAccums.forEach((u,h)=>{this.gpuAccums[h]=f}))}}(v||!this.query)&&(this.queryCreated=!0,this.query=n.createQuery(),n.beginQuery(c.TIME_ELAPSED_EXT,this.query))}}endGpu(){const n=this.extension,c=this.gl;this.isWebGL2&&this.queryCreated&&c.getQuery(n.TIME_ELAPSED_EXT,c.CURRENT_QUERY)&&c.endQuery(n.TIME_ELAPSED_EXT)}begin(n){this.startGpu(),this.updateAccums(n)}end(n){this.endGpu(),this.updateAccums(n)}updateAccums(n){let c=this.names.indexOf(n);c===-1&&(c=this.names.length,this.addUI(n));const v=this.now();this.activeAccums[c]=!this.activeAccums[c],this.t0=v}}const Th=l=>{l.forEach((n,c)=>{const{meshes:v}=n;if(!v)return;let i={total:0,type:"Triangle",data:[]};Object.keys(v).forEach(r=>{const s=v[r],{geometry:f,material:u}=s;let h=f.index;const d=f.attributes.position;if(!d)return;let m=1;u.wireframe===!0&&(m=0);const y=h!==null?h.count:d.count,x=f.drawRange.start*m,C=f.drawRange.count*m,T=x,S=Math.min(y,x+C)-1;let _=1;const w=s.count||1;let M="Triangle",D=0;s.isMesh?u.wireframe===!0?(M="Line",_=_/2):(M="Triangle",_=_/3):s.isLine?(M="Line",s.isLineSegments?_=_/2:s.isLineLoop?_=_:_=_-1):s.isPoints?(M="Point",_=_):s.isSprite&&(M="Triangle",_=_/3);const R=Math.round(Math.max(0,S-T+1)*(_*w));R>D&&(D=R,i.type=M),i.total+=R,i.data.push({drawCount:R,type:M}),s.userData.drawCount={type:M,count:R}}),n.drawCounts=i})},Mh=Ir.prototype.updateMatrixWorld,kh=Ir.prototype.updateWorldMatrix,gc=Ir.prototype.updateMatrix;let gi={value:0},Xn={value:0};const Ph=l=>{let n=""+l;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},yc=(l,n)=>{l.defines||(l.defines={}),l.defines&&!l.defines.muiPerf&&(l.defines=Object.assign(l.defines||{},{muiPerf:l.uuid}));const c=l.uuid;return n[c]||(n[c]={meshes:{},material:l},l.needsUpdate=!0),l.needsUpdate=!1,c},Lh=l=>l==="muiPerf",Ge=ed(l=>({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"})),Sf=({trackCPU:l,overClock:n,chart:c,deepAnalyze:v,matrixUpdate:i})=>{const{gl:r,scene:s}=Si();Ge.setState({gl:r,scene:s});const f=P.useMemo(()=>{const u=new Eh({trackGPU:!0,overClock:n,chartLen:c?c.length:120,chartHz:c?c.hz:60,gl:r.getContext(),chartLogger:m=>{Ge.setState({chart:m})},paramLogger:m=>{Ge.setState({log:{maxMemory:m.maxMemory,gpu:m.gpu,cpu:m.cpu,mem:m.mem,fps:m.fps,totalTime:m.duration,frameCount:m.frameCount}})}}),h=new Map,d=new Map;return Object.defineProperty(da.prototype,"onBeforeRender",{get(){return(...m)=>{var y;u&&u.begin("profiler"),(y=h.get(this))===null||y===void 0||y(...m)}},set(m){h.set(this,m)},configurable:!0}),Object.defineProperty(da.prototype,"onAfterRender",{get(){return(...m)=>{var y;u&&u.end("profiler"),(y=d.get(this))===null||y===void 0||y(...m)}},set(m){d.set(this,m)},configurable:!0}),u},[]);return P.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ge.setState({overclockingFps:!1}),Pn.value=0,Pn.isOverLimit=0),f.chartHz=(c==null?void 0:c.hz)||60,f.chartLen=(c==null?void 0:c.length)||120)},[n,f,c==null?void 0:c.length,c==null?void 0:c.hz]),P.useEffect(()=>{i&&(Ir.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&gi.value++,Mh.apply(this,arguments)},Ir.prototype.updateWorldMatrix=function(){gi.value++,kh.apply(this,arguments)},Ir.prototype.updateMatrix=function(){Xn.value++,gc.apply(this,arguments)}),r.info.autoReset=!1;let u=null,h=null;if(r.info)return u=r1(function(){Ge.getState().paused&&Ge.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),Xn.value-=1,gi.value=0,Xn.value=0,r.info&&r.info.reset()}),h=i1(function(){if(f&&!f.paused&&(f.nextFrame(window.performance.now()),n&&typeof window.requestIdleCallback<"u"&&(f.idleCbId=requestIdleCallback(f.nextFps))),v){var m,y;const x={},C=new Map;s.traverse(function(S){if((S instanceof io||S instanceof Rd)&&S.material){let _=S.material.uuid;Array.isArray(S.material)&&S.material.length>1?_=yc(S.material[1],x):_=yc(S.material,x),x[_].meshes[S.uuid]=S}}),r==null||(m=r.info)===null||m===void 0||(y=m.programs)===null||y===void 0||y.forEach(T=>{const S=T.cacheKey.split(","),_=S[S.findIndex(Lh)+1];if(Ph(_)&&x[_]){const{material:w,meshes:M}=x[_];C.set(_,{program:T,material:w,meshes:M,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),C.size!==Ge.getState().programs.size&&(Th(C),Ge.setState({programs:C,triggerProgramsUpdate:Ge.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Ir.prototype.updateMatrixWorld=gc),u(),h()}},[f,r,l,c,i]),P.useEffect(()=>{const u=o1(function(){return f&&(f.paused=!0,Xn.value=0,gi.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},Uh=_t("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', +`))),{vertexShader:c,fragmentShader:v}}});return n.transparent=!0,Object.defineProperties(n,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),n}const rs=new Rd({color:16777215,side:Xl,transparent:!0}),dc=8421504,hc=new Mc,sa=new st,Ml=new st,$i=[],F0=new st,kl="+x+y";function pc(a){return Array.isArray(a)?a[0]:a}let hf=()=>{const a=new io(new Jl(1,1),rs);return hf=()=>a,a},pf=()=>{const a=new io(new Jl(1,1,32,1),rs);return pf=()=>a,a};const A0={type:"syncstart"},D0={type:"synccomplete"},vf=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],O0=vf.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let mf=class extends io{constructor(){const n=new M0;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=dc,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=kl,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(A0),cf({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},c=>{this._isSyncing=!1,this._textRenderInfo=c,this.geometry.updateGlyphs(c.glyphBounds,c.glyphAtlasIndices,c.blockBounds,c.chunkedBounds,c.glyphColors);const v=this._queuedSyncs;v&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{v.forEach(i=>i&&i())})),this.dispatchEvent(D0),n&&n()})))}onBeforeRender(n,c,v,i,r,s){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=kd}onAfterRender(n,c,v,i,r,s){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 c=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=rs.clone());if((!n||n.baseMaterial!==c)&&(n=this._derivedMaterial=R0(c),c.addEventListener("dispose",function v(){c.removeEventListener("dispose",v),n.dispose()})),this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY){let v=n._outlineMtl;return v||(v=n._outlineMtl=Object.create(n,{id:{value:n.id+.1}}),v.isTextOutlineMaterial=!0,v.depthWrite=!1,v.map=null,n.addEventListener("dispose",function i(){n.removeEventListener("dispose",i),v.dispose()})),[v,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 pc(this.material).getDepthMaterial()}get customDistanceMaterial(){return pc(this.material).getDistanceMaterial()}_prepareForRender(n){const c=n.isTextOutlineMaterial,v=n.uniforms,i=this.textRenderInfo;if(i){const{sdfTexture:f,blockBounds:u}=i;v.uTroikaSDFTexture.value=f,v.uTroikaSDFTextureSize.value.set(f.image.width,f.image.height),v.uTroikaSDFGlyphSize.value=i.sdfGlyphSize,v.uTroikaSDFExponent.value=i.sdfExponent,v.uTroikaTotalBounds.value.fromArray(u),v.uTroikaUseGlyphColors.value=!c&&!!i.glyphColors;let h=0,d=0,m=0,y,x,C,T=0,S=0;if(c){let{outlineWidth:w,outlineOffsetX:M,outlineOffsetY:D,outlineBlur:R,outlineOpacity:A}=this;h=this._parsePercent(w)||0,d=Math.max(0,this._parsePercent(R)||0),y=A,T=this._parsePercent(M)||0,S=this._parsePercent(D)||0}else m=Math.max(0,this._parsePercent(this.strokeWidth)||0),m&&(C=this.strokeColor,v.uTroikaStrokeColor.value.set(C??dc),x=this.strokeOpacity,x==null&&(x=1)),y=this.fillOpacity;v.uTroikaDistanceOffset.value=h,v.uTroikaPositionOffset.value.set(T,S),v.uTroikaBlurRadius.value=d,v.uTroikaStrokeWidth.value=m,v.uTroikaStrokeOpacity.value=x,v.uTroikaFillOpacity.value=y??1,v.uTroikaCurveRadius.value=this.curveRadius||0;let _=this.clipRect;if(_&&Array.isArray(_)&&_.length===4)v.uTroikaClipRect.value.fromArray(_);else{const w=(this.fontSize||.1)*100;v.uTroikaClipRect.value.set(u[0]-w,u[1]-w,u[2]+w,u[3]+w)}this.geometry.applyClipRect(v.uTroikaClipRect.value)}v.uTroikaSDFDebug.value=!!this.debugSDF,n.polygonOffset=!!this.depthOffset,n.polygonOffsetFactor=n.polygonOffsetUnits=this.depthOffset||0;const r=c?this.outlineColor||0:this.color;if(r==null)delete n.color;else{const f=n.hasOwnProperty("color")?n.color:n.color=new ro;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let s=this.orientation||kl;if(s!==n._orientation){let f=v.uTroikaOrient.value;s=s.replace(/[^-+xyz]/g,"");let u=s!==kl&&s.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,h,d,m,y]=u;sa.set(0,0,0)[d]=h==="-"?1:-1,Ml.set(0,0,0)[y]=m==="-"?-1:1,hc.lookAt(F0,sa.cross(Ml),Ml),f.setFromMatrix4(hc)}else f.identity();n._orientation=s}}_parsePercent(n){if(typeof n=="string"){let c=n.match(/^(-?[\d.]+)%$/),v=c?parseFloat(c[1]):NaN;n=(isNaN(v)?0:v/100)*this.fontSize}return n}localPositionToTextCoords(n,c=new Gr){c.copy(n);const v=this.curveRadius;return v&&(c.x=Math.atan2(n.x,Math.abs(v)-Math.abs(n.z))*Math.abs(v)),c}worldPositionToTextCoords(n,c=new Gr){return sa.copy(n),this.localPositionToTextCoords(this.worldToLocal(sa),c)}raycast(n,c){const{textRenderInfo:v,curveRadius:i}=this;if(v){const r=v.blockBounds,s=i?pf():hf(),f=s.geometry,{position:u,uv:h}=f.attributes;for(let d=0;d{this[v]=n[v]}),this}clone(){return new this.constructor().copy(this)}};vf.forEach(a=>{const n="_private_"+a;Object.defineProperty(mf.prototype,a,{get(){return this[n]},set(c){c!==this[n]&&(this[n]=c,this._needsSync=!0)}})});function z0(a,n,c=(v,i)=>v===i){if(a===n)return!0;if(!a||!n)return!1;const v=a.length;if(n.length!==v)return!1;for(let i=0;ii.response=r).then(()=>{v.lifespan&&v.lifespan>0&&setTimeout(()=>{const r=ua.indexOf(i);r!==-1&&ua.splice(r,1)},v.lifespan)}).catch(r=>i.error=r)};if(ua.push(i),!c)throw i.promise}const j0=(a,n,c)=>I0(a,n,!1,c),vc=k.forwardRef(({anchorX:a="center",anchorY:n="middle",font:c,fontSize:v=1,children:i,characters:r,onSync:s,...f},u)=>{const h=Si(({invalidate:x})=>x),[d]=k.useState(()=>new mf),[m,y]=k.useMemo(()=>{const x=[];let C="";return k.Children.forEach(i,T=>{typeof T=="string"||typeof T=="number"?C+=T:x.push(T)}),[x,C]},[i]);return j0(()=>new Promise(x=>y0({font:c,characters:r},x)),["troika-text",c,r]),k.useLayoutEffect(()=>void d.sync(()=>{h(),s&&s(d)})),k.useEffect(()=>()=>d.dispose(),[d]),k.createElement("primitive",Nr({object:d,ref:u,font:c,text:y,anchorX:a,anchorY:n,fontSize:v},f),m)});function gf(a){const n=a+"Geometry";return k.forwardRef(({args:c,children:v,...i},r)=>k.createElement("mesh",Nr({ref:r},i),k.createElement(n,{attach:"geometry",args:c}),v))}const gp=gf("circle"),yp=gf("plane");function gt(a,n){if(a==null)return{};var c={},v=Object.keys(a),i,r;for(r=0;r=0)&&(c[i]=a[i]);return c}var b0=["color"],yf=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,b0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),B0=["color"],N0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,B0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),G0=["color"],W0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,G0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),H0=["color"],V0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,H0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),Z0=["color"],Q0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,Z0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),X0=["color"],Y0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,X0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),J0=["color"],K0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,J0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),q0=["color"],$0=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,q0);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),eh=["color"],Wl=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,eh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),th=["color"],nh=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,th);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),rh=["color"],ih=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,rh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),oh=["color"],ah=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,oh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),lh=["color"],sh=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,lh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),uh=["color"],ch=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,uh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),fh=["color"],dh=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,fh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),hh=["color"],ph=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,hh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),vh=["color"],mh=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,vh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),gh=["color"],yh=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,gh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))}),xh=["color"],xf=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,xh);return k.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}),k.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:v}))}),wh=["color"],wf=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,wh);return k.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}),k.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:v}))}),Sh=["color"],Sf=k.forwardRef(function(a,n){var c=a.color,v=c===void 0?"currentColor":c,i=gt(a,Sh);return k.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}),k.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:v,fillRule:"evenodd",clipRule:"evenodd"}))});function Ch(a,n){if(typeof a!="object"||a===null)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var v=c.call(a,n||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)}function _h(a){var n=Ch(a,"string");return typeof n=="symbol"?n:String(n)}function Eh(a,n,c){return n=_h(n),n in a?Object.defineProperty(a,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[n]=c,a}function mc(a,n){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(a);n&&(v=v.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),c.push.apply(c,v)}return c}function Hl(a){for(var n=1;n(a==null?void 0:a.reduce((n,c)=>n+c,0))/a.length;class Th{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=kc.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 c=v=>{++n<20?this.rafId=window.requestAnimationFrame(c):(this.detected=Math.ceil(1e3*n/(v-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=v)};this.rafId=window.requestAnimationFrame(c)}addUI(n){this.names.indexOf(n)===-1&&(this.names.push(n),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(n){const c=16.666666666666668,v=c-n.timeRemaining(),i=c*Pn.fpsLimit/10/v;i<0||(Pn.value=i,Pn.isOverLimit<25?Pn.isOverLimit++:Ge.setState({overclockingFps:!0}))}nextFrame(n){this.frameId++;const c=n||this.now();let v=c-this.paramTime,i=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=c;else if(c>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const r=this.frameId-this.paramFrame,s=r*1e3/v,f=Ge.getState().overclockingFps?Pn.value:s;if(i=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/v,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(s),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(Pn.isOverLimit>0&&f>s?Pn.isOverLimit--:Ge.getState().overclockingFps&&Ge.setState({overclockingFps:!1})),c>=this.paramTime+180&&(this.paramLogger({cpu:eo(this.logsAccums.cpu),gpu:eo(this.logsAccums.gpu),mem:eo(this.logsAccums.mem),fps:eo(this.logsAccums.fps),duration:Math.round(v),maxMemory:this.maxMemory,frameCount:r}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=c),this.overClock&&c-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=n,Pn.fpsLimit=Math.round(eo(this.logsAccums.fpsFixed)/10)*100,Ge.setState({fpsLimit:Pn.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=c)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=c,this.circularId=0;else{const r=c-this.chartTime;let s=this.chartHz*r/1e3;for(;--s>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,h=Ge.getState().overclockingFps?Pn.value:u;this.fpsChart[this.circularId%this.chartLen]=h;const d=1e3/this.currentMem,m=this.currentCpu,y=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/v*100))+4;y>0&&(this.gpuChart[this.circularId%this.chartLen]=y),m>0&&(this.cpuChart[this.circularId%this.chartLen]=m),d>0&&(this.memChart[this.circularId%this.chartLen]=d);for(let x=0;x0&&(i||this.activeAccums.forEach((u,h)=>{this.gpuAccums[h]=f}))}}(v||!this.query)&&(this.queryCreated=!0,this.query=n.createQuery(),n.beginQuery(c.TIME_ELAPSED_EXT,this.query))}}endGpu(){const n=this.extension,c=this.gl;this.isWebGL2&&this.queryCreated&&c.getQuery(n.TIME_ELAPSED_EXT,c.CURRENT_QUERY)&&c.endQuery(n.TIME_ELAPSED_EXT)}begin(n){this.startGpu(),this.updateAccums(n)}end(n){this.endGpu(),this.updateAccums(n)}updateAccums(n){let c=this.names.indexOf(n);c===-1&&(c=this.names.length,this.addUI(n));const v=this.now();this.activeAccums[c]=!this.activeAccums[c],this.t0=v}}const Mh=a=>{a.forEach((n,c)=>{const{meshes:v}=n;if(!v)return;let i={total:0,type:"Triangle",data:[]};Object.keys(v).forEach(r=>{const s=v[r],{geometry:f,material:u}=s;let h=f.index;const d=f.attributes.position;if(!d)return;let m=1;u.wireframe===!0&&(m=0);const y=h!==null?h.count:d.count,x=f.drawRange.start*m,C=f.drawRange.count*m,T=x,S=Math.min(y,x+C)-1;let _=1;const w=s.count||1;let M="Triangle",D=0;s.isMesh?u.wireframe===!0?(M="Line",_=_/2):(M="Triangle",_=_/3):s.isLine?(M="Line",s.isLineSegments?_=_/2:s.isLineLoop?_=_:_=_-1):s.isPoints?(M="Point",_=_):s.isSprite&&(M="Triangle",_=_/3);const R=Math.round(Math.max(0,S-T+1)*(_*w));R>D&&(D=R,i.type=M),i.total+=R,i.data.push({drawCount:R,type:M}),s.userData.drawCount={type:M,count:R}}),n.drawCounts=i})},kh=Ir.prototype.updateMatrixWorld,Ph=Ir.prototype.updateWorldMatrix,gc=Ir.prototype.updateMatrix;let yi={value:0},Xn={value:0};const Lh=a=>{let n=""+a;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},yc=(a,n)=>{a.defines||(a.defines={}),a.defines&&!a.defines.muiPerf&&(a.defines=Object.assign(a.defines||{},{muiPerf:a.uuid}));const c=a.uuid;return n[c]||(n[c]={meshes:{},material:a},a.needsUpdate=!0),a.needsUpdate=!1,c},Uh=a=>a==="muiPerf",Ge=td(a=>({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"})),Cf=({trackCPU:a,overClock:n,chart:c,deepAnalyze:v,matrixUpdate:i})=>{const{gl:r,scene:s}=Si();Ge.setState({gl:r,scene:s});const f=k.useMemo(()=>{const u=new Th({trackGPU:!0,overClock:n,chartLen:c?c.length:120,chartHz:c?c.hz:60,gl:r.getContext(),chartLogger:m=>{Ge.setState({chart:m})},paramLogger:m=>{Ge.setState({log:{maxMemory:m.maxMemory,gpu:m.gpu,cpu:m.cpu,mem:m.mem,fps:m.fps,totalTime:m.duration,frameCount:m.frameCount}})}}),h=new Map,d=new Map;return Object.defineProperty(da.prototype,"onBeforeRender",{get(){return(...m)=>{var y;u&&u.begin("profiler"),(y=h.get(this))===null||y===void 0||y(...m)}},set(m){h.set(this,m)},configurable:!0}),Object.defineProperty(da.prototype,"onAfterRender",{get(){return(...m)=>{var y;u&&u.end("profiler"),(y=d.get(this))===null||y===void 0||y(...m)}},set(m){d.set(this,m)},configurable:!0}),u},[]);return k.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ge.setState({overclockingFps:!1}),Pn.value=0,Pn.isOverLimit=0),f.chartHz=(c==null?void 0:c.hz)||60,f.chartLen=(c==null?void 0:c.length)||120)},[n,f,c==null?void 0:c.length,c==null?void 0:c.hz]),k.useEffect(()=>{i&&(Ir.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&yi.value++,kh.apply(this,arguments)},Ir.prototype.updateWorldMatrix=function(){yi.value++,Ph.apply(this,arguments)},Ir.prototype.updateMatrix=function(){Xn.value++,gc.apply(this,arguments)}),r.info.autoReset=!1;let u=null,h=null;if(r.info)return u=i1(function(){Ge.getState().paused&&Ge.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),Xn.value-=1,yi.value=0,Xn.value=0,r.info&&r.info.reset()}),h=o1(function(){if(f&&!f.paused&&(f.nextFrame(window.performance.now()),n&&typeof window.requestIdleCallback<"u"&&(f.idleCbId=requestIdleCallback(f.nextFps))),v){var m,y;const x={},C=new Map;s.traverse(function(S){if((S instanceof io||S instanceof Fd)&&S.material){let _=S.material.uuid;Array.isArray(S.material)&&S.material.length>1?_=yc(S.material[1],x):_=yc(S.material,x),x[_].meshes[S.uuid]=S}}),r==null||(m=r.info)===null||m===void 0||(y=m.programs)===null||y===void 0||y.forEach(T=>{const S=T.cacheKey.split(","),_=S[S.findIndex(Uh)+1];if(Lh(_)&&x[_]){const{material:w,meshes:M}=x[_];C.set(_,{program:T,material:w,meshes:M,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),C.size!==Ge.getState().programs.size&&(Mh(C),Ge.setState({programs:C,triggerProgramsUpdate:Ge.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Ir.prototype.updateMatrixWorld=gc),u(),h()}},[f,r,a,c,i]),k.useEffect(()=>{const u=a1(function(){return f&&(f.paused=!0,Xn.value=0,yi.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},Rh=_t("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"}}),Pl=_t("small",{position:"absolute",right:0,fontSize:"10px"}),Nt=_t("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"}}),rn=_t("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),Rh=_t("div",{display:"flex"}),Fh=_t("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"}}),Ah=_t("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"}}),Dh=_t("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%"}),is=_t("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"}}),Oh=_t("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"}}),zh=_t("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),Ih=_t("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),jh=_t("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),bh=_t("div",{marginTop:"0"}),xc=_t("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),Cf=_t("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)"}}),_f=_t("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"}),Bh=_t("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"}}),Nh=_t("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),kn=P.memo(({isPerf:l,color:n,colorBlind:c,customData:v,isMemory:i,isShadersInfo:r,metric:s,fontSize:f,offsetY:u=0,offsetX:h,round:d,hasInstance:m})=>{const{width:y,height:x}=Si(S=>S.viewport),C=P.useRef(null),T=P.useRef(null);return ao(function(){const _=Ge.getState().gl,w=Ge.getState().log;if(!w||!C.current||(v&&(C.current.text=Ge.getState().customData),!s))return;let M=w[s];if(r){var D;M=(D=_.info.programs)===null||D===void 0?void 0:D.length}else s==="matriceCount"?M=Xn.value:!l&&_.info.render&&(M=(i?_.info.memory:_.info.render)[s]);if(s==="fps"&&(C.current.color=Ge.getState().overclockingFps?Gt(c).overClock.toString():`rgb(${Gt(c).fps.toString()})`),C.current.text=(Math.round(M*Math.pow(10,d))/Math.pow(10,d)).toFixed(d),m){const R=_.info.instance;if(typeof R>"u"&&s!=="matriceCount")return;let A;s==="matriceCount"?A=gi.value:A=R[s],A>0?(C.current.fontSize=f/1.15,T.current.fontSize=M>0?f/1.4:f,C.current.position.y=x/2-u-f/1.9,T.current.text=" ± "+(Math.round(A*Math.pow(10,d))/Math.pow(10,d)).toFixed(d)):(C.current.position.y=x/2-u-f,C.current.fontSize=f)}Xn.value-=1,C.current.updateMatrix(),C.current.matrixWorld.copy(C.current.matrix)}),L.jsxs(P.Suspense,{fallback:null,children:[L.jsxs(vc,{textAlign:"justify",matrixAutoUpdate:!1,ref:C,fontSize:f,position:[-y/2+h+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:S=>{S.updateMatrix(),Xn.value-=1,S.matrixWorld.copy(S.matrix)},children:[L.jsx("meshBasicMaterial",{blending:Du}),"0"]}),m&&L.jsx(vc,{textAlign:"justify",matrixAutoUpdate:!1,ref:T,fontSize:8,position:[-y/2+h+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:S=>{S.updateMatrix(),Xn.value-=1,S.matrixWorld.copy(S.matrix)},children:L.jsx("meshBasicMaterial",{blending:Du})})]})}),Gh=({colorBlind:l,customData:n,minimal:c,matrixUpdate:v})=>L.jsxs(L.Fragment,{children:[L.jsx(kn,{colorBlind:l,color:`rgb(${Gt(l).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),L.jsx(kn,{color:`rgb(${Gt(l).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),L.jsx(kn,{color:`rgb(${Gt(l).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),c?null:L.jsxs(L.Fragment,{children:[L.jsx(kn,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),L.jsx(kn,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),L.jsx(kn,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),L.jsx(kn,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),L.jsx(kn,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),L.jsx(kn,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),L.jsx(kn,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),v&&L.jsx(kn,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&L.jsx(kn,{color:`rgb(${Gt(l).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:c?200:320,round:0})]}),Wh=({colorBlind:l,minimal:n,chart:c={length:30,hz:15}})=>{const v=P.useMemo(()=>({fps:new Float32Array(c.length*3),cpu:new Float32Array(c.length*3),gpu:new Float32Array(c.length*3)}),[c]),i=P.useRef(null),r=P.useRef(null),s=P.useRef(null),f=P.useRef(null),u=P.useMemo(()=>new st(0,0,0),[]),h=(d,m=1,y,x)=>{let C=0;const{width:T,height:S}=x,_=Ge.getState().chart.data[d];if(!_||_.length===0)return;const w=n?2:6,M=n?12:50;let D=_.length;for(let R=0;RC&&(C=_[A]*m),u.set(w+R/(D-1)*(T-w*2)-T/2,Math.min(100,_[A])*m/100*(S-w*2-M)-S/2,0),u.toArray(y.attributes.position.array,R*3))}y.attributes.position.needsUpdate=!0};return ao(function({viewport:m}){h("fps",1,i.current,m),r.current&&r.current.color.set(Ge.getState().overclockingFps?Gt(l).overClock.toString():`rgb(${Gt(l).fps.toString()})`),h("gpu",5,s.current,m),h("cpu",5,f.current,m)}),L.jsxs(L.Fragment,{children:[L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:i,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.fps,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Gt(l).fps.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:s,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.gpu,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Gt(l).gpu.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:f,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.cpu,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Gt(l).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},Hh=({colorBlind:l,chart:n,customData:c,matrixUpdate:v,showGraph:i=!0,antialias:r=!0,minimal:s})=>{const f=P.useRef(void 0),u=Ge(h=>h.paused);return L.jsxs(Ah,{style:{display:"flex",position:"absolute",height:`${s?37:i?100:60}px`,minWidth:`${s?"100px":c?"370px":"310px"}`},children:[L.jsx(P1,{ref:f,orthographic:!0,dpr:r?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:h})=>{h.traverse(d=>{d.matrixWorldAutoUpdate=!1,d.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${s?37:i?100:60}px`},children:u?null:L.jsxs(L.Fragment,{children:[L.jsx(Vh,{}),L.jsx(Gh,{customData:c,minimal:s,matrixUpdate:v}),i&&L.jsx(Wh,{colorBlind:l,minimal:s,chart:n})]})}),u&&L.jsxs(Dh,{children:[L.jsx(fh,{})," PAUSED"]})]})},Vh=()=>(ao(function({gl:n,scene:c,camera:v}){v.updateMatrix(),Xn.value-=1,v.matrixWorld.copy(v.matrix),v.matrixWorldInverse.copy(v.matrixWorld).invert(),n.render(c,v),gi.value=0,Xn.value=0},1/0),null);function Zh(l,n){if(l==null)return{};var c={},v=Object.keys(l),i,r;for(r=0;r=0)&&(c[i]=l[i]);return c}function Qh(l,n){if(l==null)return{};var c=Zh(l,n),v,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(l,v)&&(c[v]=l[v])}return c}const Xh=["portal","className","children"],Yh=P.forwardRef((l,n)=>{let{portal:c,className:v,children:i}=l,r=Qh(l,Xh);const s=Si(d=>d.gl),f=P.useRef(null),u=P.useRef(null),h=(c==null?void 0:c.current)!=null?c.current:s.domElement.parentNode;return P.useLayoutEffect(()=>{if(!f.current||!h)return;const d=document.createElement("div"),m=u.current=_c(d);return h.appendChild(d),()=>{m.unmount(),u.current=null,h.removeChild(d)}},[h]),P.useLayoutEffect(()=>{const d=u.current;d&&d.render(L.jsx("div",{ref:n,className:v,children:i}))}),L.jsx("group",Hl(Hl({},r),{},{ref:f}))}),wc=(l,n)=>{const c=i=>{switch(i){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},v=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:l,url:n.image.currentSrc,encoding:v(n.encoding),wrapT:c(n.image.wrapT),flipY:n.flipY.toString()}},Jh=({program:l,material:n,setTexNumber:c})=>{const v=Ge(s=>s.gl),[i,r]=P.useState(null);return P.useEffect(()=>{if(v){const s=l==null?void 0:l.getUniforms();let f=0;const u=new Map;s.seq.forEach(h=>{if(!h.id.includes("uTroika")&&h.id!=="isOrthographic"&&h.id!=="uvTransform"&&h.id!=="lightProbe"&&h.id!=="projectionMatrix"&&h.id!=="viewMatrix"&&h.id!=="normalMatrix"&&h.id!=="modelMatrix"&&h.id!=="modelViewMatrix"){let d=[],m={name:h.id};h.cache&&(h.cache.forEach(y=>{typeof y<"u"&&d.push(y.toString().substring(0,4))}),m.value=d.join(),n[h.id]&&n[h.id].image&&n[h.id].image&&(f++,m.value=wc(h.id,n[h.id])),m.value||(m.value="empty"),u.set(h.id,m))}}),n.uniforms&&Object.keys(n.uniforms).forEach(h=>{const d=n.uniforms[h];if(d.value){const{value:m}=d;let y={name:h};if(h.includes("uTroika"))return;if(m instanceof Vl)f++,y.value=wc(h,m);else{let x=JSON.stringify(m);try{x=JSON.stringify(m)}catch{x=m.toString()}y.value=x}u.set(h,y)}}),f>0&&c(f),r(u)}},[]),L.jsx(Cf,{children:i&&Array.from(i.values()).map(s=>L.jsx("span",{children:typeof s.value=="string"?L.jsx("li",{children:L.jsxs("span",{children:[s.name," :"," ",L.jsxs("b",{children:[s.value.substring(0,30),s.value.length>30?"...":""]})]})}):L.jsxs(L.Fragment,{children:[L.jsx("li",{children:L.jsxs("b",{children:[s.value.name,":"]})}),L.jsxs("div",{children:[Object.keys(s.value).map(f=>f!=="name"?L.jsx("div",{children:f==="url"?L.jsx("a",{href:s.value[f],target:"_blank",children:L.jsx("img",{src:s.value[f]})}):L.jsxs("li",{children:[f,": ",L.jsx("b",{children:s.value[f]})]})},f):null),L.jsxs(_f,{onClick:()=>{var f;console.info(n[s.value.name]||(n==null||(f=n.uniforms[s.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",s.value.name,");"]})]})]})},s.name))})},Kh=({el:l})=>{Ge(v=>v.log);const n=Ge(v=>v.gl),c=v=>{if(!n)return 0;const i=Math.round(v.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:l.drawCounts.total>0&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[l.drawCounts.type==="Triangle"?L.jsx(wf,{style:{top:"-1px"}}):L.jsx(gf,{style:{top:"-1px"}}),l.drawCounts.total,L.jsxs("small",{children:[l.drawCounts.type,"s"]}),n&&L.jsxs(rn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[l.visible&&!l.material.wireframe?c(l):0,"%"]})]})})},qh=({el:l})=>{const[n,c]=P.useState(l.visible),[v,i]=P.useState(l.expand),[r,s]=P.useState(0),{meshes:f,program:u,material:h}=l;return L.jsxs(zh,{children:[L.jsxs(Fh,{onClick:()=>{l.expand=!v,Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!1}),i(!v)},children:[L.jsx(is,{style:{marginRight:"6px"},children:v?L.jsx("span",{children:L.jsx(yf,{})}):L.jsx("span",{children:L.jsx(xf,{})})}),u&&L.jsxs("span",{children:[L.jsx(Ih,{children:u.name}),L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(rh,{style:{top:"-1px"}}),Object.keys(f).length,L.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?L.jsx(Wl,{style:{top:"-1px"}}):L.jsx(Wl,{style:{top:"-1px"}}),r,L.jsx("small",{children:"tex"})]}),L.jsx(Kh,{el:l}),h.glslVersion==="300 es"&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(hh,{style:{top:"-1px"}}),"300",L.jsx("small",{children:"es"}),L.jsx(rn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),L.jsx(Oh,{onPointerEnter:()=>{Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!1})},onClick:d=>{d.stopPropagation(),Object.keys(f).forEach(m=>{const y=f[m],x=!n;y.visible=x,l.visible=x,c(x)})},children:n?L.jsx(q0,{}):L.jsx(J0,{})})]}),L.jsxs("div",{style:{maxHeight:v?"9999px":0,overflow:"hidden"},children:[L.jsxs(xc,{children:[L.jsx(G0,{})," Uniforms:"]}),L.jsx(Jh,{program:u,material:h,setTexNumber:s}),L.jsxs(xc,{children:[L.jsx(H0,{})," Geometries:"]}),L.jsx(Cf,{children:f&&Object.keys(f).map(d=>f[d]&&f[d].geometry&&L.jsxs(Nh,{children:[L.jsxs("span",{children:[f[d].geometry.type,": "]}),f[d].userData&&f[d].userData.drawCount&&L.jsxs("b",{children:[L.jsxs("div",{children:[f[d].userData.drawCount.count,L.jsxs("small",{children:[" ",f[d].userData.drawCount.type,"s"]})]}),L.jsx("br",{}),L.jsxs("div",{children:[Math.round(j1(f[d].geometry)/1024*1e3)/1e3,"Kb",L.jsx("small",{children:" memory used"})]})]})]},d))}),L.jsxs(_f,{onClick:()=>{console.info(h)},children:["console.info(",h.type,")"]})]})]})},$h=()=>{Ge(n=>n.triggerProgramsUpdate);const l=Ge(n=>n.programs);return L.jsx(bh,{children:l&&Array.from(l.values()).map(n=>n&&n?L.jsx(qh,{el:n},n.material.uuid):null)})},Gt=l=>({overClock:"#ff6eff",fps:l?"100, 143, 255":"238,38,110",cpu:l?"254, 254, 98":"66,226,46",gpu:l?"254,254,254":"253,151,31",custom:l?"86,180,233":"40,255,255"}),ep=({showGraph:l,colorBlind:n})=>{const c=Ge(i=>i.overclockingFps),v=Ge(i=>i.fpsLimit);return L.jsxs(rn,{style:l?{color:c?Gt(n).overClock.toString():`rgb(${Gt(n).fps})`}:{},children:["FPS ",c?`${v}🚀`:""]})},tp=({showGraph:l,colorBlind:n,customData:c,minimal:v})=>{const i=Ge(r=>r.gl);return i?L.jsxs(Rh,{children:[L.jsxs(Nt,{children:[L.jsx(oh,{}),L.jsx(rn,{style:l?{color:`rgb(${Gt(n).gpu.toString()})`}:{},children:"GPU"}),L.jsx(Pl,{children:"ms"})]}),L.jsxs(Nt,{children:[L.jsx(vh,{}),L.jsx(rn,{style:l?{color:`rgb(${Gt(n).cpu.toString()})`}:{},children:"CPU"}),L.jsx(Pl,{children:"ms"})]}),L.jsxs(Nt,{children:[L.jsx(th,{}),L.jsx(ep,{showGraph:l,colorBlind:n})]}),!v&&i&&L.jsxs(Nt,{children:[L.jsx(gh,{}),L.jsx(rn,{children:i.info.render.calls===1?"call":"calls"})]}),!v&&i&&L.jsxs(Nt,{children:[L.jsx(wf,{}),L.jsx(rn,{children:"Triangles"})]}),c&&L.jsxs(Nt,{children:[L.jsx(B0,{}),L.jsx(rn,{style:l?{color:`rgb(${Gt(n).custom})`}:{},children:c.name}),c.info&&L.jsx(Pl,{children:c.info})]})]}):null},np=({showGraph:l,colorBlind:n,deepAnalyze:c,customData:v,matrixUpdate:i,openByDefault:r,minimal:s})=>L.jsxs(L.Fragment,{children:[L.jsx(tp,{showGraph:l,colorBlind:n,customData:v,minimal:s}),!s&&L.jsx(ip,{matrixUpdate:i,openByDefault:r,deepAnalyze:c,showGraph:l})]}),rp=({matrixUpdate:l})=>L.jsxs("div",{children:[L.jsxs(Nt,{children:[L.jsx(lh,{}),L.jsx(rn,{children:"Geometries"})]}),L.jsxs(Nt,{children:[L.jsx(Wl,{}),L.jsx(rn,{children:"Textures"})]}),L.jsxs(Nt,{children:[L.jsx(gf,{}),L.jsx(rn,{children:"shaders"})]}),L.jsxs(Nt,{children:[L.jsx(uh,{}),L.jsx(rn,{children:"Lines"})]}),L.jsxs(Nt,{children:[L.jsx(Z0,{}),L.jsx(rn,{children:"Points"})]}),l&&L.jsxs(Nt,{children:[L.jsx(X0,{}),L.jsx(rn,{children:"Matrices"})]})]}),Sc=({tab:l,title:n,set:c})=>{const v=Ge(i=>i.tab);return L.jsx(is,{className:`${v===l?" __perf_toggle_tab_active":""}`,onClick:()=>{c(!0),Ge.setState({tab:l})},children:L.jsx("span",{children:n})})},ip=({openByDefault:l,showGraph:n,deepAnalyze:c,matrixUpdate:v})=>{const[i,r]=td.useState(l);return L.jsxs("span",{children:[L.jsx(op,{show:i,showGraph:n,matrixUpdate:v}),l&&!c?null:L.jsxs(Bh,{className:"__perf_toggle",children:[c&&L.jsx(Sc,{tab:"programs",title:"Programs",set:r}),c&&L.jsx(Sc,{tab:"infos",title:"Infos",set:r}),L.jsx(is,{onClick:()=>{r(!i)},children:i?L.jsxs("span",{children:[L.jsx(yf,{})," Minimize"]}):L.jsxs("span",{children:[L.jsx(xf,{})," More"]})})]})]})},op=({show:l,showGraph:n,matrixUpdate:c})=>{const v=Ge(i=>i.tab);return L.jsxs(L.Fragment,{children:[L.jsx(rp,{matrixUpdate:c}),l&&L.jsx("div",{children:L.jsx(jh,{style:{marginTop:n?"38px":0},children:v==="programs"&&L.jsx($h,{})})})]})},ap=({showGraph:l,colorBlind:n,openByDefault:c,className:v,overClock:i,style:r,position:s,chart:f,deepAnalyze:u,antialias:h,customData:d,matrixUpdate:m,minimal:y})=>{const x=P.useRef(null);return L.jsxs(L.Fragment,{children:[L.jsx(Sf,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:m}),L.jsx(Yh,{transform:!1,children:L.jsxs(Uh,{className:(v?" ".concat(v):" ")+` ${s||""} ${y?"minimal":""}`,style:Hl({minHeight:y?"37px":l?"100px":"60px"},r),ref:x,children:[L.jsx(Hh,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:l,antialias:h,customData:d,minimal:y,matrixUpdate:m}),L.jsx(np,{colorBlind:n,showGraph:l,deepAnalyze:u,openByDefault:c,customData:d,matrixUpdate:m,minimal:y})]})})]})},mp=({headless:l=!1,colorBlind:n=!1,overClock:c=!1,showGraph:v=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:s=!0,openByDefault:f=!0,customData:u,matrixUpdate:h=!1,position:d="top-right",chart:m={length:30,hz:15},className:y,style:x,minimal:C=!1})=>l?L.jsx(Sf,{chart:m,deepAnalyze:r,matrixUpdate:h,overClock:c}):L.jsx(ap,{colorBlind:n,showGraph:v,trackCPU:i,openByDefault:f,className:y,style:x,overClock:c,position:d,antialias:s,chart:m,deepAnalyze:r,minimal:C,customData:u,matrixUpdate:h}),Ll=5e3,lp={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},gp=(l,n)=>{const c=lp[l]||"#F8F8FF";return n?c:parseInt(c.replace("#","0x"),16)},yp=()=>{const{fogColor:l}=Fd("universe",{fogColor:id}),n=Ad(r=>r.graphStyle),c=P.useRef(null),v=P.useRef(null),i=P.useRef(null);return ao(({camera:r,clock:s})=>{const f=s.getElapsedTime();if(c.current){const h=Math.sin(f/8)*1e3;c.current.position.setZ(h)}if(v.current&&v.current.position.lerp(r.position,.5),i.current){const u=f*.5,h=Math.sin(u)*Ll,d=Math.cos(u)*Ll;i.current.position.set(h,0,d)}}),L.jsxs(L.Fragment,{children:[L.jsx("hemisphereLight",{args:[Ji.white,nd,rd]}),n!=="earth"&&L.jsx("fog",{args:[l,5,18e3],attach:"fog"}),L.jsx("ambientLight",{color:Ji.white,intensity:1}),L.jsx("pointLight",{ref:v,color:Ji.white,distance:4e3,intensity:5,position:[0,0,0]}),L.jsx("directionalLight",{ref:i,color:Ji.white,intensity:8,position:[Ll,0,0]}),L.jsx("pointLight",{ref:c,color:Ji.white,distance:4e3,intensity:8,position:[0,0,0]})]})},xp=l=>{const n=P.useRef();return P.useEffect(()=>{n.current=l}),n.current},wp={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},Sp=(l,n)=>l.length>n?`${l.substring(0,n)}...`:l;export{P1 as C,dp as H,N1 as L,mp as P,vc as T,ao as a,Yc as b,ns as c,ts as d,Hd as e,pp as f,gp as g,wp as h,xp as i,yp as j,hp as m,Sp as t,Si as u}; + sans-serif`,backgroundColor:"rgba(36, 36, 36, .9)",color:"#fff",margin:0,minHeight:"100px",padding:"4px 0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",userSelect:"none","&.top-left":{right:"initial",left:0},"&.bottom-left":{right:"initial",top:"initial",bottom:0,left:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.bottom-right":{top:"initial",bottom:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.minimal":{backgroundColor:"rgba(36, 36, 36, .75)"},"*":{margin:"0",padding:"0",border:"0",fontSize:"100%",lineHeight:"1",verticalAlign:"baseline"}}),Pl=_t("small",{position:"absolute",right:0,fontSize:"10px"}),Nt=_t("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"}}),rn=_t("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),Fh=_t("div",{display:"flex"}),Ah=_t("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"}}),Dh=_t("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"}}),Oh=_t("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%"}),is=_t("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"}}),zh=_t("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"}}),Ih=_t("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),jh=_t("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),bh=_t("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),Bh=_t("div",{marginTop:"0"}),xc=_t("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),_f=_t("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)"}}),Ef=_t("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"}),Nh=_t("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"}}),Gh=_t("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),kn=k.memo(({isPerf:a,color:n,colorBlind:c,customData:v,isMemory:i,isShadersInfo:r,metric:s,fontSize:f,offsetY:u=0,offsetX:h,round:d,hasInstance:m})=>{const{width:y,height:x}=Si(S=>S.viewport),C=k.useRef(null),T=k.useRef(null);return ao(function(){const _=Ge.getState().gl,w=Ge.getState().log;if(!w||!C.current||(v&&(C.current.text=Ge.getState().customData),!s))return;let M=w[s];if(r){var D;M=(D=_.info.programs)===null||D===void 0?void 0:D.length}else s==="matriceCount"?M=Xn.value:!a&&_.info.render&&(M=(i?_.info.memory:_.info.render)[s]);if(s==="fps"&&(C.current.color=Ge.getState().overclockingFps?Gt(c).overClock.toString():`rgb(${Gt(c).fps.toString()})`),C.current.text=(Math.round(M*Math.pow(10,d))/Math.pow(10,d)).toFixed(d),m){const R=_.info.instance;if(typeof R>"u"&&s!=="matriceCount")return;let A;s==="matriceCount"?A=yi.value:A=R[s],A>0?(C.current.fontSize=f/1.15,T.current.fontSize=M>0?f/1.4:f,C.current.position.y=x/2-u-f/1.9,T.current.text=" ± "+(Math.round(A*Math.pow(10,d))/Math.pow(10,d)).toFixed(d)):(C.current.position.y=x/2-u-f,C.current.fontSize=f)}Xn.value-=1,C.current.updateMatrix(),C.current.matrixWorld.copy(C.current.matrix)}),L.jsxs(k.Suspense,{fallback:null,children:[L.jsxs(vc,{textAlign:"justify",matrixAutoUpdate:!1,ref:C,fontSize:f,position:[-y/2+h+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:S=>{S.updateMatrix(),Xn.value-=1,S.matrixWorld.copy(S.matrix)},children:[L.jsx("meshBasicMaterial",{blending:Du}),"0"]}),m&&L.jsx(vc,{textAlign:"justify",matrixAutoUpdate:!1,ref:T,fontSize:8,position:[-y/2+h+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:S=>{S.updateMatrix(),Xn.value-=1,S.matrixWorld.copy(S.matrix)},children:L.jsx("meshBasicMaterial",{blending:Du})})]})}),Wh=({colorBlind:a,customData:n,minimal:c,matrixUpdate:v})=>L.jsxs(L.Fragment,{children:[L.jsx(kn,{colorBlind:a,color:`rgb(${Gt(a).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),L.jsx(kn,{color:`rgb(${Gt(a).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),L.jsx(kn,{color:`rgb(${Gt(a).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),c?null:L.jsxs(L.Fragment,{children:[L.jsx(kn,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),L.jsx(kn,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),L.jsx(kn,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),L.jsx(kn,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),L.jsx(kn,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),L.jsx(kn,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),L.jsx(kn,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),v&&L.jsx(kn,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&L.jsx(kn,{color:`rgb(${Gt(a).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:c?200:320,round:0})]}),Hh=({colorBlind:a,minimal:n,chart:c={length:30,hz:15}})=>{const v=k.useMemo(()=>({fps:new Float32Array(c.length*3),cpu:new Float32Array(c.length*3),gpu:new Float32Array(c.length*3)}),[c]),i=k.useRef(null),r=k.useRef(null),s=k.useRef(null),f=k.useRef(null),u=k.useMemo(()=>new st(0,0,0),[]),h=(d,m=1,y,x)=>{let C=0;const{width:T,height:S}=x,_=Ge.getState().chart.data[d];if(!_||_.length===0)return;const w=n?2:6,M=n?12:50;let D=_.length;for(let R=0;RC&&(C=_[A]*m),u.set(w+R/(D-1)*(T-w*2)-T/2,Math.min(100,_[A])*m/100*(S-w*2-M)-S/2,0),u.toArray(y.attributes.position.array,R*3))}y.attributes.position.needsUpdate=!0};return ao(function({viewport:m}){h("fps",1,i.current,m),r.current&&r.current.color.set(Ge.getState().overclockingFps?Gt(a).overClock.toString():`rgb(${Gt(a).fps.toString()})`),h("gpu",5,s.current,m),h("cpu",5,f.current,m)}),L.jsxs(L.Fragment,{children:[L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:i,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.fps,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Gt(a).fps.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:s,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.gpu,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Gt(a).gpu.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:f,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:c.length,array:v.cpu,itemSize:3,usage:hl,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Gt(a).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},Vh=({colorBlind:a,chart:n,customData:c,matrixUpdate:v,showGraph:i=!0,antialias:r=!0,minimal:s})=>{const f=k.useRef(void 0),u=Ge(h=>h.paused);return L.jsxs(Dh,{style:{display:"flex",position:"absolute",height:`${s?37:i?100:60}px`,minWidth:`${s?"100px":c?"370px":"310px"}`},children:[L.jsx(L1,{ref:f,orthographic:!0,dpr:r?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:h})=>{h.traverse(d=>{d.matrixWorldAutoUpdate=!1,d.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${s?37:i?100:60}px`},children:u?null:L.jsxs(L.Fragment,{children:[L.jsx(Zh,{}),L.jsx(Wh,{customData:c,minimal:s,matrixUpdate:v}),i&&L.jsx(Hh,{colorBlind:a,minimal:s,chart:n})]})}),u&&L.jsxs(Oh,{children:[L.jsx(dh,{})," PAUSED"]})]})},Zh=()=>(ao(function({gl:n,scene:c,camera:v}){v.updateMatrix(),Xn.value-=1,v.matrixWorld.copy(v.matrix),v.matrixWorldInverse.copy(v.matrixWorld).invert(),n.render(c,v),yi.value=0,Xn.value=0},1/0),null);function Qh(a,n){if(a==null)return{};var c={},v=Object.keys(a),i,r;for(r=0;r=0)&&(c[i]=a[i]);return c}function Xh(a,n){if(a==null)return{};var c=Qh(a,n),v,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(a,v)&&(c[v]=a[v])}return c}const Yh=["portal","className","children"],Jh=k.forwardRef((a,n)=>{let{portal:c,className:v,children:i}=a,r=Xh(a,Yh);const s=Si(d=>d.gl),f=k.useRef(null),u=k.useRef(null),h=(c==null?void 0:c.current)!=null?c.current:s.domElement.parentNode;return k.useLayoutEffect(()=>{if(!f.current||!h)return;const d=document.createElement("div"),m=u.current=_c(d);return h.appendChild(d),()=>{m.unmount(),u.current=null,h.removeChild(d)}},[h]),k.useLayoutEffect(()=>{const d=u.current;d&&d.render(L.jsx("div",{ref:n,className:v,children:i}))}),L.jsx("group",Hl(Hl({},r),{},{ref:f}))}),wc=(a,n)=>{const c=i=>{switch(i){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},v=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:a,url:n.image.currentSrc,encoding:v(n.encoding),wrapT:c(n.image.wrapT),flipY:n.flipY.toString()}},Kh=({program:a,material:n,setTexNumber:c})=>{const v=Ge(s=>s.gl),[i,r]=k.useState(null);return k.useEffect(()=>{if(v){const s=a==null?void 0:a.getUniforms();let f=0;const u=new Map;s.seq.forEach(h=>{if(!h.id.includes("uTroika")&&h.id!=="isOrthographic"&&h.id!=="uvTransform"&&h.id!=="lightProbe"&&h.id!=="projectionMatrix"&&h.id!=="viewMatrix"&&h.id!=="normalMatrix"&&h.id!=="modelMatrix"&&h.id!=="modelViewMatrix"){let d=[],m={name:h.id};h.cache&&(h.cache.forEach(y=>{typeof y<"u"&&d.push(y.toString().substring(0,4))}),m.value=d.join(),n[h.id]&&n[h.id].image&&n[h.id].image&&(f++,m.value=wc(h.id,n[h.id])),m.value||(m.value="empty"),u.set(h.id,m))}}),n.uniforms&&Object.keys(n.uniforms).forEach(h=>{const d=n.uniforms[h];if(d.value){const{value:m}=d;let y={name:h};if(h.includes("uTroika"))return;if(m instanceof Vl)f++,y.value=wc(h,m);else{let x=JSON.stringify(m);try{x=JSON.stringify(m)}catch{x=m.toString()}y.value=x}u.set(h,y)}}),f>0&&c(f),r(u)}},[]),L.jsx(_f,{children:i&&Array.from(i.values()).map(s=>L.jsx("span",{children:typeof s.value=="string"?L.jsx("li",{children:L.jsxs("span",{children:[s.name," :"," ",L.jsxs("b",{children:[s.value.substring(0,30),s.value.length>30?"...":""]})]})}):L.jsxs(L.Fragment,{children:[L.jsx("li",{children:L.jsxs("b",{children:[s.value.name,":"]})}),L.jsxs("div",{children:[Object.keys(s.value).map(f=>f!=="name"?L.jsx("div",{children:f==="url"?L.jsx("a",{href:s.value[f],target:"_blank",children:L.jsx("img",{src:s.value[f]})}):L.jsxs("li",{children:[f,": ",L.jsx("b",{children:s.value[f]})]})},f):null),L.jsxs(Ef,{onClick:()=>{var f;console.info(n[s.value.name]||(n==null||(f=n.uniforms[s.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",s.value.name,");"]})]})]})},s.name))})},qh=({el:a})=>{Ge(v=>v.log);const n=Ge(v=>v.gl),c=v=>{if(!n)return 0;const i=Math.round(v.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:a.drawCounts.total>0&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[a.drawCounts.type==="Triangle"?L.jsx(Sf,{style:{top:"-1px"}}):L.jsx(yf,{style:{top:"-1px"}}),a.drawCounts.total,L.jsxs("small",{children:[a.drawCounts.type,"s"]}),n&&L.jsxs(rn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[a.visible&&!a.material.wireframe?c(a):0,"%"]})]})})},$h=({el:a})=>{const[n,c]=k.useState(a.visible),[v,i]=k.useState(a.expand),[r,s]=k.useState(0),{meshes:f,program:u,material:h}=a;return L.jsxs(Ih,{children:[L.jsxs(Ah,{onClick:()=>{a.expand=!v,Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!1}),i(!v)},children:[L.jsx(is,{style:{marginRight:"6px"},children:v?L.jsx("span",{children:L.jsx(xf,{})}):L.jsx("span",{children:L.jsx(wf,{})})}),u&&L.jsxs("span",{children:[L.jsx(jh,{children:u.name}),L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(ih,{style:{top:"-1px"}}),Object.keys(f).length,L.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?L.jsx(Wl,{style:{top:"-1px"}}):L.jsx(Wl,{style:{top:"-1px"}}),r,L.jsx("small",{children:"tex"})]}),L.jsx(qh,{el:a}),h.glslVersion==="300 es"&&L.jsxs(Nt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(ph,{style:{top:"-1px"}}),"300",L.jsx("small",{children:"es"}),L.jsx(rn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),L.jsx(zh,{onPointerEnter:()=>{Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(f).forEach(d=>{const m=f[d];m.material.wireframe=!1})},onClick:d=>{d.stopPropagation(),Object.keys(f).forEach(m=>{const y=f[m],x=!n;y.visible=x,a.visible=x,c(x)})},children:n?L.jsx($0,{}):L.jsx(K0,{})})]}),L.jsxs("div",{style:{maxHeight:v?"9999px":0,overflow:"hidden"},children:[L.jsxs(xc,{children:[L.jsx(W0,{})," Uniforms:"]}),L.jsx(Kh,{program:u,material:h,setTexNumber:s}),L.jsxs(xc,{children:[L.jsx(V0,{})," Geometries:"]}),L.jsx(_f,{children:f&&Object.keys(f).map(d=>f[d]&&f[d].geometry&&L.jsxs(Gh,{children:[L.jsxs("span",{children:[f[d].geometry.type,": "]}),f[d].userData&&f[d].userData.drawCount&&L.jsxs("b",{children:[L.jsxs("div",{children:[f[d].userData.drawCount.count,L.jsxs("small",{children:[" ",f[d].userData.drawCount.type,"s"]})]}),L.jsx("br",{}),L.jsxs("div",{children:[Math.round(b1(f[d].geometry)/1024*1e3)/1e3,"Kb",L.jsx("small",{children:" memory used"})]})]})]},d))}),L.jsxs(Ef,{onClick:()=>{console.info(h)},children:["console.info(",h.type,")"]})]})]})},ep=()=>{Ge(n=>n.triggerProgramsUpdate);const a=Ge(n=>n.programs);return L.jsx(Bh,{children:a&&Array.from(a.values()).map(n=>n&&n?L.jsx($h,{el:n},n.material.uuid):null)})},Gt=a=>({overClock:"#ff6eff",fps:a?"100, 143, 255":"238,38,110",cpu:a?"254, 254, 98":"66,226,46",gpu:a?"254,254,254":"253,151,31",custom:a?"86,180,233":"40,255,255"}),tp=({showGraph:a,colorBlind:n})=>{const c=Ge(i=>i.overclockingFps),v=Ge(i=>i.fpsLimit);return L.jsxs(rn,{style:a?{color:c?Gt(n).overClock.toString():`rgb(${Gt(n).fps})`}:{},children:["FPS ",c?`${v}🚀`:""]})},np=({showGraph:a,colorBlind:n,customData:c,minimal:v})=>{const i=Ge(r=>r.gl);return i?L.jsxs(Fh,{children:[L.jsxs(Nt,{children:[L.jsx(ah,{}),L.jsx(rn,{style:a?{color:`rgb(${Gt(n).gpu.toString()})`}:{},children:"GPU"}),L.jsx(Pl,{children:"ms"})]}),L.jsxs(Nt,{children:[L.jsx(mh,{}),L.jsx(rn,{style:a?{color:`rgb(${Gt(n).cpu.toString()})`}:{},children:"CPU"}),L.jsx(Pl,{children:"ms"})]}),L.jsxs(Nt,{children:[L.jsx(nh,{}),L.jsx(tp,{showGraph:a,colorBlind:n})]}),!v&&i&&L.jsxs(Nt,{children:[L.jsx(yh,{}),L.jsx(rn,{children:i.info.render.calls===1?"call":"calls"})]}),!v&&i&&L.jsxs(Nt,{children:[L.jsx(Sf,{}),L.jsx(rn,{children:"Triangles"})]}),c&&L.jsxs(Nt,{children:[L.jsx(N0,{}),L.jsx(rn,{style:a?{color:`rgb(${Gt(n).custom})`}:{},children:c.name}),c.info&&L.jsx(Pl,{children:c.info})]})]}):null},rp=({showGraph:a,colorBlind:n,deepAnalyze:c,customData:v,matrixUpdate:i,openByDefault:r,minimal:s})=>L.jsxs(L.Fragment,{children:[L.jsx(np,{showGraph:a,colorBlind:n,customData:v,minimal:s}),!s&&L.jsx(op,{matrixUpdate:i,openByDefault:r,deepAnalyze:c,showGraph:a})]}),ip=({matrixUpdate:a})=>L.jsxs("div",{children:[L.jsxs(Nt,{children:[L.jsx(sh,{}),L.jsx(rn,{children:"Geometries"})]}),L.jsxs(Nt,{children:[L.jsx(Wl,{}),L.jsx(rn,{children:"Textures"})]}),L.jsxs(Nt,{children:[L.jsx(yf,{}),L.jsx(rn,{children:"shaders"})]}),L.jsxs(Nt,{children:[L.jsx(ch,{}),L.jsx(rn,{children:"Lines"})]}),L.jsxs(Nt,{children:[L.jsx(Q0,{}),L.jsx(rn,{children:"Points"})]}),a&&L.jsxs(Nt,{children:[L.jsx(Y0,{}),L.jsx(rn,{children:"Matrices"})]})]}),Sc=({tab:a,title:n,set:c})=>{const v=Ge(i=>i.tab);return L.jsx(is,{className:`${v===a?" __perf_toggle_tab_active":""}`,onClick:()=>{c(!0),Ge.setState({tab:a})},children:L.jsx("span",{children:n})})},op=({openByDefault:a,showGraph:n,deepAnalyze:c,matrixUpdate:v})=>{const[i,r]=nd.useState(a);return L.jsxs("span",{children:[L.jsx(ap,{show:i,showGraph:n,matrixUpdate:v}),a&&!c?null:L.jsxs(Nh,{className:"__perf_toggle",children:[c&&L.jsx(Sc,{tab:"programs",title:"Programs",set:r}),c&&L.jsx(Sc,{tab:"infos",title:"Infos",set:r}),L.jsx(is,{onClick:()=>{r(!i)},children:i?L.jsxs("span",{children:[L.jsx(xf,{})," Minimize"]}):L.jsxs("span",{children:[L.jsx(wf,{})," More"]})})]})]})},ap=({show:a,showGraph:n,matrixUpdate:c})=>{const v=Ge(i=>i.tab);return L.jsxs(L.Fragment,{children:[L.jsx(ip,{matrixUpdate:c}),a&&L.jsx("div",{children:L.jsx(bh,{style:{marginTop:n?"38px":0},children:v==="programs"&&L.jsx(ep,{})})})]})},lp=({showGraph:a,colorBlind:n,openByDefault:c,className:v,overClock:i,style:r,position:s,chart:f,deepAnalyze:u,antialias:h,customData:d,matrixUpdate:m,minimal:y})=>{const x=k.useRef(null);return L.jsxs(L.Fragment,{children:[L.jsx(Cf,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:m}),L.jsx(Jh,{transform:!1,children:L.jsxs(Rh,{className:(v?" ".concat(v):" ")+` ${s||""} ${y?"minimal":""}`,style:Hl({minHeight:y?"37px":a?"100px":"60px"},r),ref:x,children:[L.jsx(Vh,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:a,antialias:h,customData:d,minimal:y,matrixUpdate:m}),L.jsx(rp,{colorBlind:n,showGraph:a,deepAnalyze:u,openByDefault:c,customData:d,matrixUpdate:m,minimal:y})]})})]})},xp=({headless:a=!1,colorBlind:n=!1,overClock:c=!1,showGraph:v=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:s=!0,openByDefault:f=!0,customData:u,matrixUpdate:h=!1,position:d="top-right",chart:m={length:30,hz:15},className:y,style:x,minimal:C=!1})=>a?L.jsx(Cf,{chart:m,deepAnalyze:r,matrixUpdate:h,overClock:c}):L.jsx(lp,{colorBlind:n,showGraph:v,trackCPU:i,openByDefault:f,className:y,style:x,overClock:c,position:d,antialias:s,chart:m,deepAnalyze:r,minimal:C,customData:u,matrixUpdate:h}),Ll=5e3,sp={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},wp=(a,n)=>{const c=sp[a]||"#F8F8FF";return n?c:parseInt(c.replace("#","0x"),16)},Sp=()=>{const{fogColor:a}=Ad("universe",{fogColor:od}),n=Dd(r=>r.graphStyle),c=k.useRef(null),v=k.useRef(null),i=k.useRef(null);return ao(({camera:r,clock:s})=>{const f=s.getElapsedTime();if(c.current){const h=Math.sin(f/8)*1e3;c.current.position.setZ(h)}if(v.current&&v.current.position.lerp(r.position,.5),i.current){const u=f*.5,h=Math.sin(u)*Ll,d=Math.cos(u)*Ll;i.current.position.set(h,0,d)}}),L.jsxs(L.Fragment,{children:[L.jsx("hemisphereLight",{args:[Ji.white,rd,id]}),n!=="earth"&&L.jsx("fog",{args:[a,5,18e3],attach:"fog"}),L.jsx("ambientLight",{color:Ji.white,intensity:1}),L.jsx("pointLight",{ref:v,color:Ji.white,distance:4e3,intensity:5,position:[0,0,0]}),L.jsx("directionalLight",{ref:i,color:Ji.white,intensity:8,position:[Ll,0,0]}),L.jsx("pointLight",{ref:c,color:Ji.white,distance:4e3,intensity:8,position:[0,0,0]})]})},Cp=a=>{const n=k.useRef();return k.useEffect(()=>{n.current=a}),n.current},_p={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},Ep=(a,n)=>a.length>n?`${a.substring(0,n)}...`:a;export{L1 as C,hp as H,G1 as L,yp as P,vc as T,ao as a,Yc as b,ns as c,ts as d,Vd as e,vp as f,wp as g,_p as h,Cp as i,xp as j,Sp as k,gp as l,pp as m,Ep as t,Si as u}; diff --git a/build/assets/index-5c574277.js b/build/assets/index-067fb061.js similarity index 99% rename from build/assets/index-5c574277.js rename to build/assets/index-067fb061.js index 7d9d87c03..e37364b2d 100644 --- a/build/assets/index-5c574277.js +++ b/build/assets/index-067fb061.js @@ -1,4 +1,4 @@ -import{g as Qr,_ as As,R as F0,a as I1,b as v,T as Jr,c as Ee,d as Se,s as D0,e as F,f as Ke,r as h,u as Ae,j as c,h as S0,i as _e,B as _s,k as H0,l as B0,m as ri,n as oi,o as pt,p as ai,q as eo,$ as Vs,W as Ds,t as An,v as g0,w as q,x as N,F as K,y as Bs,z as _n,C as xt,A as js,L as $s,D as kt,E as Vn,G as to,H as C1,S as Gs,I as p1,J as no,K as Ps,M as Ms,N as Ls,O as Os,P as Ts,Q as Rs,U as Fs,V as io,X as Is,Y as Hs,Z as Ns,a0 as zs,a1 as Zs,a2 as Us,a3 as Ws,a4 as Ks}from"./index-bde6e5ef.js";function qs(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function Ys(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const Xs=e=>{const[t,n,i]=e.split(":"),r=parseInt(t,10),o=parseInt(n,10),a=parseInt(i,10);return r*3600+o*60+a};var ro={exports:{}},Qs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Js=Qs,e2=Js;function oo(){}function ao(){}ao.resetWarningCache=oo;var t2=function(){function e(i,r,o,a,s,l){if(l!==e2){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ao,resetWarningCache:oo};return n.PropTypes=n,n};ro.exports=t2();var n2=ro.exports;const o1=Qr(n2);function si(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function i2(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function Y1(e){return e&&e.ownerDocument||document}function ke(e){return Y1(e).defaultView||window}function r2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const o2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},li=o2,ci={disabled:!1};var a2=function(t){return t.scrollTop},ce="unmounted",y0="exited",b0="entering",R0="entered",Xt="exiting",l0=function(e){As(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var a=r,s=a&&!a.isMounting?i.enter:i.appear,l;return o.appearStatus=null,i.in?s?(l=y0,o.appearStatus=b0):l=R0:i.unmountOnExit||i.mountOnEnter?l=ce:l=y0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ce?{status:y0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==b0&&a!==R0&&(o=b0):(a===b0||a===R0)&&(o=Xt)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===b0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this);a&&a2(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y0&&this.setState({status:ce})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[F0.findDOMNode(this),s],u=l[0],d=l[1],f=this.getTimeouts(),m=s?f.appear:f.enter;if(!r&&!a||ci.disabled){this.safeSetState({status:R0},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:b0},function(){o.props.onEntering(u,d),o.onTransitionEnd(m,function(){o.safeSetState({status:R0},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:F0.findDOMNode(this);if(!o||ci.disabled){this.safeSetState({status:y0},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Xt},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:y0},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ce)return null;var o=this.props,a=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 s=I1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Jr.Provider,{value:null},typeof a=="function"?a(r,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);l0.contextType=Jr;l0.propTypes={};function M0(){}l0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:M0,onEntering:M0,onEntered:M0,onExit:M0,onExiting:M0,onExited:M0};l0.UNMOUNTED=ce;l0.EXITED=y0;l0.ENTERING=b0;l0.ENTERED=R0;l0.EXITING=Xt;const so=l0,lo=e=>e.scrollTop;function qe(e,t){var n,i;const{timeout:r,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(i=a.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function s2(e){return Ee("MuiPaper",e)}Se("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 l2=["className","component","elevation","square","variant"],c2=e=>{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return _e(o,s2,r)},u2=D0("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ke("#fff",li(t.elevation))}, ${Ke("#fff",li(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),d2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=i,u=I1(i,l2),d=F({},i,{component:o,elevation:a,square:s,variant:l}),f=c2(d);return c.jsx(u2,F({as:o,ownerState:d,className:S0(f.root,r),ref:n},u))}),f2=d2;function h2(e){return Ee("MuiIconButton",e)}const m2=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),p2=m2,x2=["edge","children","className","color","disabled","disableFocusRipple","size"],k2=e=>{const{classes:t,disabled:n,color:i,edge:r,size:o}=e,a={root:["root",n&&"disabled",i!=="default"&&`color${H0(i)}`,r&&`edge${H0(r)}`,`size${H0(o)}`]};return _e(a,h2,t)},g2=D0(_s,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${H0(n.color)}`],n.edge&&t[`edge${H0(n.edge)}`],t[`size${H0(n.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":F({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),C2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=i,f=I1(i,x2),m=F({},i,{edge:r,color:s,disabled:l,disableFocusRipple:u,size:d}),k=k2(m);return c.jsx(g2,F({className:S0(k.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:m},f,{children:o}))}),co=C2;function uo(e){return typeof e=="string"}function y2(e,t,n){return e===void 0||uo(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}function fo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function b2(e,t,n){return typeof e=="function"?e(t,n):e}function ho(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const k=ui(n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),p=F({},n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),g=F({},n,r,i);return k.length>0&&(g.className=k),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const a=fo(F({},r,i)),s=di(i),l=di(r),u=t(a),d=ui(u==null?void 0:u.className,n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),f=F({},u==null?void 0:u.style,n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),m=F({},u,n,l,s);return d.length>0&&(m.className=d),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const w2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ye(e){var t;const{elementType:n,externalSlotProps:i,ownerState:r,skipResolvingSlotProps:o=!1}=e,a=I1(e,w2),s=o?{}:b2(i,r),{props:l,internalRef:u}=v2(F({},a,{externalSlotProps:s})),d=B0(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return y2(n,F({},l,{ref:d}),r)}const E2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function S2(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function A2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function _2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||A2(e))}function V2(e){const t=[],n=[];return Array.from(e.querySelectorAll(E2)).forEach((i,r)=>{const o=S2(i);o===-1||!_2(i)||(o===0?t.push(i):n.push({documentOrder:r,tabIndex:o,node:i}))}),n.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(t)}function D2(){return!0}function B2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=V2,isEnabled:a=D2,open:s}=e,l=h.useRef(!1),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),m=h.useRef(null),k=h.useRef(!1),p=h.useRef(null),g=B0(t.ref,p),C=h.useRef(null);h.useEffect(()=>{!s||!p.current||(k.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current);return p.current.contains(b.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),k.current&&p.current.focus()),()=>{r||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current),w=A=>{C.current=A,!(i||!a()||A.key!=="Tab")&&b.activeElement===p.current&&A.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const A=p.current;if(A===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(A.contains(b.activeElement)||i&&b.activeElement!==u.current&&b.activeElement!==d.current)return;if(b.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!k.current)return;let _=[];if((b.activeElement===u.current||b.activeElement===d.current)&&(_=o(p.current)),_.length>0){var G,B;const D=!!((G=C.current)!=null&&G.shiftKey&&((B=C.current)==null?void 0:B.key)==="Tab"),V=_[0],R=_[_.length-1];typeof V!="string"&&typeof R!="string"&&(D?R.focus():V.focus())}else A.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const S=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,i,r,a,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0,m.current=b.target;const w=t.props.onFocus;w&&w(b)},y=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0};return c.jsxs(h.Fragment,{children:[c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:x}),c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}function j2(e){return typeof e=="function"?e():e}const $2=h.forwardRef(function(t,n){const{children:i,container:r,disablePortal:o=!1}=t,[a,s]=h.useState(null),l=B0(h.isValidElement(i)?i.ref:null,n);if(ri(()=>{o||s(j2(r)||document.body)},[r,o]),ri(()=>{if(a&&!o)return oi(n,a),()=>{oi(n,null)}},[n,a,o]),o){if(h.isValidElement(i)){const u={ref:l};return h.cloneElement(i,u)}return c.jsx(h.Fragment,{children:i})}return c.jsx(h.Fragment,{children:a&&pt.createPortal(i,a)})});function G2(e){const t=Y1(e);return t.body===e?ke(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function he(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fi(e){return parseInt(ke(e).getComputedStyle(e).paddingRight,10)||0}function P2(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function hi(e,t,n,i,r){const o=[t,n,...i];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!P2(a);s&&l&&he(a,r)})}function Gt(e,t){let n=-1;return e.some((i,r)=>t(i)?(n=r,!0):!1),n}function M2(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(G2(i)){const a=r2(Y1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${fi(i)+a}px`;const s=Y1(i).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${fi(l)+a}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=Y1(i).body;else{const a=i.parentElement,s=ke(i);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function L2(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O2{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&he(t.modalRef,!1);const r=L2(n);hi(n,t.mount,t.modalRef,r,!0);const o=Gt(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),i)}mount(t,n){const i=Gt(this.containers,o=>o.modals.indexOf(t)!==-1),r=this.containers[i];r.restore||(r.restore=M2(r,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const r=Gt(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&he(t.modalRef,n),hi(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&he(a.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function T2(e){return typeof e=="function"?e():e}function R2(e){return e?e.props.hasOwnProperty("in"):!1}const F2=new O2;function I2(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:r=F2,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,m=h.useRef({}),k=h.useRef(null),p=h.useRef(null),g=B0(p,f),[C,x]=h.useState(!d),y=R2(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>Y1(k.current),E=()=>(m.current.modalRef=p.current,m.current.mount=k.current,m.current),S=()=>{r.mount(E(),{disableScrollLock:i}),p.current&&(p.current.scrollTop=0)},A=ai(()=>{const j=T2(t)||w().body;r.add(E(),j),p.current&&S()}),_=h.useCallback(()=>r.isTopModal(E()),[r]),G=ai(j=>{k.current=j,j&&(d&&_()?S():p.current&&he(p.current,b))}),B=h.useCallback(()=>{r.remove(E(),b)},[b,r]);h.useEffect(()=>()=>{B()},[B]),h.useEffect(()=>{d?A():(!y||!o)&&B()},[d,B,y,o,A]);const D=j=>L=>{var Z;(Z=j.onKeyDown)==null||Z.call(j,L),!(L.key!=="Escape"||L.which===229||!_())&&(n||(L.stopPropagation(),u&&u(L,"escapeKeyDown")))},V=j=>L=>{var Z;(Z=j.onClick)==null||Z.call(j,L),L.target===L.currentTarget&&u&&u(L,"backdropClick")};return{getRootProps:(j={})=>{const L=fo(e);delete L.onTransitionEnter,delete L.onTransitionExited;const Z=F({},L,j);return F({role:"presentation"},Z,{onKeyDown:D(Z),ref:g})},getBackdropProps:(j={})=>{const L=j;return F({"aria-hidden":!0},L,{onClick:V(L),open:d})},getTransitionProps:()=>{const j=()=>{x(!1),a&&a()},L=()=>{x(!0),s&&s(),o&&B()};return{onEnter:si(j,l==null?void 0:l.props.onEnter),onExited:si(L,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:G,isTopModal:_,exited:C,hasTransition:y}}const H2=["top","right","bottom","left"],m0=Math.min,$1=Math.max,Xe=Math.round,Te=Math.floor,p0=e=>({x:e,y:e}),N2={left:"right",right:"left",bottom:"top",top:"bottom"},z2={start:"end",end:"start"};function Qt(e,t,n){return $1(e,m0(t,n))}function r0(e,t){return typeof e=="function"?e(t):e}function o0(e){return e.split("-")[0]}function q0(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function Bn(e){return e==="y"?"height":"width"}function Y0(e){return["top","bottom"].includes(o0(e))?"y":"x"}function jn(e){return Dn(Y0(e))}function Z2(e,t,n){n===void 0&&(n=!1);const i=q0(e),r=jn(e),o=Bn(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Qe(a)),[a,Qe(a)]}function U2(e){const t=Qe(e);return[Jt(e),t,Jt(t)]}function Jt(e){return e.replace(/start|end/g,t=>z2[t])}function W2(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:a;default:return[]}}function K2(e,t,n,i){const r=q0(e);let o=W2(o0(e),n==="start",i);return r&&(o=o.map(a=>a+"-"+r),t&&(o=o.concat(o.map(Jt)))),o}function Qe(e){return e.replace(/left|right|bottom|top/g,t=>N2[t])}function q2(e){return{top:0,right:0,bottom:0,left:0,...e}}function mo(e){return typeof e!="number"?q2(e):{top:e,right:e,bottom:e,left:e}}function Je(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function mi(e,t,n){let{reference:i,floating:r}=e;const o=Y0(t),a=jn(t),s=Bn(a),l=o0(t),u=o==="y",d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,m=i[s]/2-r[s]/2;let k;switch(l){case"top":k={x:d,y:i.y-r.height};break;case"bottom":k={x:d,y:i.y+i.height};break;case"right":k={x:i.x+i.width,y:f};break;case"left":k={x:i.x-r.width,y:f};break;default:k={x:i.x,y:i.y}}switch(q0(t)){case"start":k[a]-=m*(n&&u?-1:1);break;case"end":k[a]+=m*(n&&u?-1:1);break}return k}const Y2=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=mi(u,i,l),m=i,k={},p=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=r0(e,t)||{};if(u==null)return{};const f=mo(d),m={x:n,y:i},k=jn(r),p=Bn(k),g=await a.getDimensions(u),C=k==="y",x=C?"top":"left",y=C?"bottom":"right",b=C?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[k]-m[k]-o.floating[p],E=m[k]-o.reference[k],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=S?S[b]:0;(!A||!await(a.isElement==null?void 0:a.isElement(S)))&&(A=s.floating[b]||o.floating[p]);const _=w/2-E/2,G=A/2-g[p]/2-1,B=m0(f[x],G),D=m0(f[y],G),V=B,R=A-g[p]-D,P=A/2-g[p]/2+_,$=Qt(V,P,R),j=!l.arrow&&q0(r)!=null&&P!=$&&o.reference[p]/2-(PV<=0)){var G,B;const V=(((G=o.flip)==null?void 0:G.index)||0)+1,R=E[V];if(R)return{data:{index:V,overflows:_},reset:{placement:R}};let P=(B=_.filter($=>$.overflows[0]<=0).sort(($,j)=>$.overflows[1]-j.overflows[1])[0])==null?void 0:B.placement;if(!P)switch(k){case"bestFit":{var D;const $=(D=_.map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,Z)=>L+Z,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:D[0];$&&(P=$);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function xi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ki(e){return H2.some(t=>e[t]>=0)}const Q2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=r0(e,t);switch(i){case"referenceHidden":{const o=await ge(t,{...r,elementContext:"reference"}),a=xi(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ki(a)}}}case"escaped":{const o=await ge(t,{...r,altBoundary:!0}),a=xi(o,n.floating);return{data:{escapedOffsets:a,escaped:ki(a)}}}default:return{}}}}};async function J2(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=o0(n),s=q0(n),l=Y0(n)==="y",u=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,f=r0(t,e);let{mainAxis:m,crossAxis:k,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(k=s==="end"?p*-1:p),l?{x:k*d,y:m*u}:{x:m*u,y:k*d}}const e3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:a,middlewareData:s}=t,l=await J2(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}}},t3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:C=>{let{x,y}=C;return{x,y}}},...l}=r0(e,t),u={x:n,y:i},d=await ge(t,l),f=Y0(o0(r)),m=Dn(f);let k=u[m],p=u[f];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=k+d[C],b=k-d[x];k=Qt(y,k,b)}if(a){const C=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=p+d[C],b=p-d[x];p=Qt(y,p,b)}const g=s.fn({...t,[m]:k,[f]:p});return{...g,data:{x:g.x-n,y:g.y-i}}}}},n3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=r0(e,t),d={x:n,y:i},f=Y0(r),m=Dn(f);let k=d[m],p=d[f];const g=r0(s,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=m==="y"?"height":"width",w=o.reference[m]-o.floating[b]+C.mainAxis,E=o.reference[m]+o.reference[b]-C.mainAxis;kE&&(k=E)}if(u){var x,y;const b=m==="y"?"width":"height",w=["top","left"].includes(o0(r)),E=o.reference[f]-o.floating[b]+(w&&((x=a.offset)==null?void 0:x[f])||0)+(w?0:C.crossAxis),S=o.reference[f]+o.reference[b]+(w?0:((y=a.offset)==null?void 0:y[f])||0)-(w?C.crossAxis:0);pS&&(p=S)}return{[m]:k,[f]:p}}}},i3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:r,elements:o}=t,{apply:a=()=>{},...s}=r0(e,t),l=await ge(t,s),u=o0(n),d=q0(n),f=Y0(n)==="y",{width:m,height:k}=i.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(g=u,p=d==="end"?"top":"bottom");const C=k-l[p],x=m-l[g],y=!t.middlewareData.shift;let b=C,w=x;if(f){const S=m-l.left-l.right;w=d||y?m0(x,S):S}else{const S=k-l.top-l.bottom;b=d||y?m0(C,S):S}if(y&&!d){const S=$1(l.left,0),A=$1(l.right,0),_=$1(l.top,0),G=$1(l.bottom,0);f?w=m-2*(S!==0||A!==0?S+A:$1(l.left,l.right)):b=k-2*(_!==0||G!==0?_+G:$1(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const E=await r.getDimensions(o.floating);return m!==E.width||k!==E.height?{reset:{rects:!0}}:{}}}};function x0(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function G1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function c0(e){var t;return(t=(po(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function po(e){return e instanceof Node||e instanceof G1(e).Node}function a0(e){return e instanceof Element||e instanceof G1(e).Element}function X1(e){return e instanceof HTMLElement||e instanceof G1(e).HTMLElement}function gi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G1(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=O1(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function r3(e){return["table","td","th"].includes(x0(e))}function $n(e){const t=Gn(),n=O1(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function o3(e){let t=Z0(e);for(;X1(t)&&!gt(t);){if($n(t))return t;t=Z0(t)}return null}function Gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gt(e){return["html","body","#document"].includes(x0(e))}function O1(e){return G1(e).getComputedStyle(e)}function Ct(e){return a0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z0(e){if(x0(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gi(e)&&e.host||c0(e);return gi(t)?t.host:t}function xo(e){const t=Z0(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:X1(t)&&Ve(t)?t:xo(t)}function Ce(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xo(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),a=G1(r);return o?t.concat(a,a.visualViewport||[],Ve(r)?r:[],a.frameElement&&n?Ce(a.frameElement):[]):t.concat(r,Ce(r,[],n))}function ko(e){const t=O1(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=X1(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:i,s=Xe(n)!==o||Xe(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function Pn(e){return a0(e)?e:e.contextElement}function N0(e){const t=Pn(e);if(!X1(t))return p0(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=ko(t);let a=(o?Xe(n.width):n.width)/i,s=(o?Xe(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const a3=p0(0);function go(e){const t=G1(e);return!Gn()||!t.visualViewport?a3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G1(e)?!1:t}function A0(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Pn(e);let a=p0(1);t&&(i?a0(i)&&(a=N0(i)):a=N0(e));const s=s3(o,n,i)?go(o):p0(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(o){const m=G1(o),k=i&&a0(i)?G1(i):i;let p=m.frameElement;for(;p&&i&&k!==m;){const g=N0(p),C=p.getBoundingClientRect(),x=O1(p),y=C.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,b=C.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=y,u+=b,p=G1(p).frameElement}}return Je({width:d,height:f,x:l,y:u})}function l3(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=X1(n),o=c0(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=p0(1);const l=p0(0);if((r||!r&&i!=="fixed")&&((x0(n)!=="body"||Ve(o))&&(a=Ct(n)),X1(n))){const u=A0(n);s=N0(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function c3(e){return Array.from(e.getClientRects())}function Co(e){return A0(c0(e)).left+Ct(e).scrollLeft}function u3(e){const t=c0(e),n=Ct(e),i=e.ownerDocument.body,r=$1(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=$1(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Co(e);const s=-n.scrollTop;return O1(i).direction==="rtl"&&(a+=$1(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}function d3(e,t){const n=G1(e),i=c0(e),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const u=Gn();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}function f3(e,t){const n=A0(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=X1(e)?N0(e):p0(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:a,height:s,x:l,y:u}}function Ci(e,t,n){let i;if(t==="viewport")i=d3(e,n);else if(t==="document")i=u3(c0(e));else if(a0(t))i=f3(t,n);else{const r=go(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Je(i)}function yo(e,t){const n=Z0(e);return n===t||!a0(n)||gt(n)?!1:O1(n).position==="fixed"||yo(n,t)}function h3(e,t){const n=t.get(e);if(n)return n;let i=Ce(e,[],!1).filter(s=>a0(s)&&x0(s)!=="body"),r=null;const o=O1(e).position==="fixed";let a=o?Z0(e):e;for(;a0(a)&&!gt(a);){const s=O1(a),l=$n(a);!l&&s.position==="fixed"&&(r=null),(o?!l&&!r:!l&&s.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ve(a)&&!l&&yo(e,a))?i=i.filter(d=>d!==a):r=s,a=Z0(a)}return t.set(e,i),i}function m3(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?h3(t,this._c):[].concat(n),i],s=a[0],l=a.reduce((u,d)=>{const f=Ci(t,d,r);return u.top=$1(f.top,u.top),u.right=m0(f.right,u.right),u.bottom=m0(f.bottom,u.bottom),u.left=$1(f.left,u.left),u},Ci(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function p3(e){return ko(e)}function x3(e,t,n){const i=X1(t),r=c0(t),o=n==="fixed",a=A0(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=p0(0);if(i||!i&&!o)if((x0(t)!=="body"||Ve(r))&&(s=Ct(t)),i){const u=A0(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=Co(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yi(e,t){return!X1(e)||O1(e).position==="fixed"?null:t?t(e):e.offsetParent}function bo(e,t){const n=G1(e);if(!X1(e))return n;let i=yi(e,t);for(;i&&r3(i)&&O1(i).position==="static";)i=yi(i,t);return i&&(x0(i)==="html"||x0(i)==="body"&&O1(i).position==="static"&&!$n(i))?n:i||o3(e)||n}const k3=async function(e){let{reference:t,floating:n,strategy:i}=e;const r=this.getOffsetParent||bo,o=this.getDimensions;return{reference:x3(t,await r(n),i),floating:{x:0,y:0,...await o(n)}}};function g3(e){return O1(e).direction==="rtl"}const C3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:c0,getClippingRect:m3,getOffsetParent:bo,getElementRects:k3,getClientRects:c3,getDimensions:p3,getScale:N0,isElement:a0,isRTL:g3};function y3(e,t){let n=null,i;const r=c0(e);function o(){clearTimeout(i),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:d,width:f,height:m}=e.getBoundingClientRect();if(s||t(),!f||!m)return;const k=Te(d),p=Te(r.clientWidth-(u+f)),g=Te(r.clientHeight-(d+m)),C=Te(u),y={rootMargin:-k+"px "+-p+"px "+-g+"px "+-C+"px",threshold:$1(0,m0(1,l))||1};let b=!0;function w(E){const S=E[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):i=setTimeout(()=>{a(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return a(!0),o}function b3(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=Pn(e),d=r||o?[...u?Ce(u):[],...Ce(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=u&&s?y3(u,n):null;let m=-1,k=null;a&&(k=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&k&&(k.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{k&&k.observe(t)})),n()}),u&&!l&&k.observe(u),k.observe(t));let p,g=l?A0(e):null;l&&C();function C(){const x=A0(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&n(),g=x,p=requestAnimationFrame(C)}return n(),()=>{d.forEach(x=>{r&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f&&f(),k&&k.disconnect(),k=null,l&&cancelAnimationFrame(p)}}const v3=(e,t,n)=>{const i=new Map,r={platform:C3,...n},o={...r.platform,_c:i};return Y2(e,t,{...r,platform:o})},w3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?pi({element:i.current,padding:r}).fn(n):{}:i?pi({element:i,padding:r}).fn(n):{}}}};var Ze=typeof document<"u"?h.useLayoutEffect:h.useEffect;function et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!et(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!et(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bi(e,t){const n=vo(e);return Math.round(t*n)/n}function vi(e){const t=h.useRef(e);return Ze(()=>{t.current=e}),t}function E3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,k]=h.useState(i);et(m,i)||k(i);const[p,g]=h.useState(null),[C,x]=h.useState(null),y=h.useCallback(j=>{j!=S.current&&(S.current=j,g(j))},[g]),b=h.useCallback(j=>{j!==A.current&&(A.current=j,x(j))},[x]),w=o||p,E=a||C,S=h.useRef(null),A=h.useRef(null),_=h.useRef(d),G=vi(l),B=vi(r),D=h.useCallback(()=>{if(!S.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),v3(S.current,A.current,j).then(L=>{const Z={...L,isPositioned:!0};V.current&&!et(_.current,Z)&&(_.current=Z,pt.flushSync(()=>{f(Z)}))})},[m,t,n,B]);Ze(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const V=h.useRef(!1);Ze(()=>(V.current=!0,()=>{V.current=!1}),[]),Ze(()=>{if(w&&(S.current=w),E&&(A.current=E),w&&E){if(G.current)return G.current(w,E,D);D()}},[w,E,D,G]);const R=h.useMemo(()=>({reference:S,floating:A,setReference:y,setFloating:b}),[y,b]),P=h.useMemo(()=>({reference:w,floating:E}),[w,E]),$=h.useMemo(()=>{const j={position:n,left:0,top:0};if(!P.floating)return j;const L=bi(P.floating,d.x),Z=bi(P.floating,d.y);return s?{...j,transform:"translate("+L+"px, "+Z+"px)",...vo(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:Z}},[n,s,P.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:D,refs:R,elements:P,floatingStyles:$}),[d,D,R,P,$])}const S3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],A3={entering:{opacity:1},entered:{opacity:1}},_3=h.forwardRef(function(t,n){const i=eo(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:k,onExited:p,onExiting:g,style:C,timeout:x=r,TransitionComponent:y=so}=t,b=I1(t,S3),w=h.useRef(null),E=B0(w,s.ref,n),S=P=>$=>{if(P){const j=w.current;$===void 0?P(j):P(j,$)}},A=S(m),_=S((P,$)=>{lo(P);const j=qe({style:C,timeout:x,easing:l},{mode:"enter"});P.style.webkitTransition=i.transitions.create("opacity",j),P.style.transition=i.transitions.create("opacity",j),d&&d(P,$)}),G=S(f),B=S(g),D=S(P=>{const $=qe({style:C,timeout:x,easing:l},{mode:"exit"});P.style.webkitTransition=i.transitions.create("opacity",$),P.style.transition=i.transitions.create("opacity",$),k&&k(P)}),V=S(p),R=P=>{o&&o(w.current,P)};return c.jsx(y,F({appear:a,in:u,nodeRef:w,onEnter:_,onEntered:G,onEntering:A,onExit:D,onExited:V,onExiting:B,addEndListener:R,timeout:x},b,{children:(P,$)=>h.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},A3[P],C,s.props.style),ref:E},$))}))}),V3=_3;function D3(e){return Ee("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const B3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],j3=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},D3,t)},$3=D0("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),G3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:d={},componentsProps:f={},invisible:m=!1,open:k,slotProps:p={},slots:g={},TransitionComponent:C=V3,transitionDuration:x}=a,y=I1(a,B3),b=F({},a,{component:u,invisible:m}),w=j3(b),E=(i=p.root)!=null?i:f.root;return c.jsx(C,F({in:k,timeout:x},y,{children:c.jsx($3,F({"aria-hidden":!0},E,{as:(r=(o=g.root)!=null?o:d.Root)!=null?r:u,className:S0(w.root,l,E==null?void 0:E.className),ownerState:F({},b,E==null?void 0:E.ownerState),classes:w,ref:n,children:s}))}))}),P3=G3;function M3(e){return Ee("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const L3=["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"],O3=e=>{const{open:t,exited:n,classes:i}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},M3,i)},T3=D0("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),R3=D0(P3,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F3=h.forwardRef(function(t,n){var i,r,o,a,s,l;const u=Ae({name:"MuiModal",props:t}),{BackdropComponent:d=R3,BackdropProps:f,className:m,closeAfterTransition:k=!1,children:p,container:g,component:C,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:A=!1,disableScrollLock:_=!1,hideBackdrop:G=!1,keepMounted:B=!1,onBackdropClick:D,open:V,slotProps:R,slots:P}=u,$=I1(u,L3),j=F({},u,{closeAfterTransition:k,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:A,disableScrollLock:_,hideBackdrop:G,keepMounted:B}),{getRootProps:L,getBackdropProps:Z,getTransitionProps:U,portalRef:J,isTopModal:W,exited:M,hasTransition:X}=I2(F({},j,{rootRef:n})),e1=F({},j,{exited:M}),Q=O3(e1),d1={};if(p.props.tabIndex===void 0&&(d1.tabIndex="-1"),X){const{onEnter:Y,onExited:r1}=U();d1.onEnter=Y,d1.onExited=r1}const S1=(i=(r=P==null?void 0:P.root)!=null?r:x.Root)!=null?i:T3,A1=(o=(a=P==null?void 0:P.backdrop)!=null?a:x.Backdrop)!=null?o:d,j1=(s=R==null?void 0:R.root)!=null?s:y.root,R1=(l=R==null?void 0:R.backdrop)!=null?l:y.backdrop,d0=Ye({elementType:S1,externalSlotProps:j1,externalForwardedProps:$,getSlotProps:L,additionalProps:{ref:n,as:C},ownerState:e1,className:S0(m,j1==null?void 0:j1.className,Q==null?void 0:Q.root,!e1.open&&e1.exited&&(Q==null?void 0:Q.hidden))}),f0=Ye({elementType:A1,externalSlotProps:R1,additionalProps:f,getSlotProps:Y=>Z(F({},Y,{onClick:r1=>{D&&D(r1),Y!=null&&Y.onClick&&Y.onClick(r1)}})),className:S0(R1==null?void 0:R1.className,f==null?void 0:f.className,Q==null?void 0:Q.backdrop),ownerState:e1});return!B&&!V&&(!X||M)?null:c.jsx($2,{ref:J,container:g,disablePortal:S,children:c.jsxs(S1,F({},d0,{children:[!G&&d?c.jsx(A1,F({},f0)):null,c.jsx(B2,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:A,isEnabled:W,open:V,children:h.cloneElement(p,d1)})]}))})}),I3=F3,H3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function en(e){return`scale(${e}, ${e**2})`}const N3={entering:{opacity:1,transform:en(1)},entered:{opacity:1,transform:"none"}},Pt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wo=h.forwardRef(function(t,n){const{addEndListener:i,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:m,onExiting:k,style:p,timeout:g="auto",TransitionComponent:C=so}=t,x=I1(t,H3),y=h.useRef(),b=h.useRef(),w=eo(),E=h.useRef(null),S=B0(E,o.ref,n),A=$=>j=>{if($){const L=E.current;j===void 0?$(L):$(L,j)}},_=A(d),G=A(($,j)=>{lo($);const{duration:L,delay:Z,easing:U}=qe({style:p,timeout:g,easing:a},{mode:"enter"});let J;g==="auto"?(J=w.transitions.getAutoHeightDuration($.clientHeight),b.current=J):J=L,$.style.transition=[w.transitions.create("opacity",{duration:J,delay:Z}),w.transitions.create("transform",{duration:Pt?J:J*.666,delay:Z,easing:U})].join(","),l&&l($,j)}),B=A(u),D=A(k),V=A($=>{const{duration:j,delay:L,easing:Z}=qe({style:p,timeout:g,easing:a},{mode:"exit"});let U;g==="auto"?(U=w.transitions.getAutoHeightDuration($.clientHeight),b.current=U):U=j,$.style.transition=[w.transitions.create("opacity",{duration:U,delay:L}),w.transitions.create("transform",{duration:Pt?U:U*.666,delay:Pt?L:L||U*.333,easing:Z})].join(","),$.style.opacity=0,$.style.transform=en(.75),f&&f($)}),R=A(m),P=$=>{g==="auto"&&(y.current=setTimeout($,b.current||0)),i&&i(E.current,$)};return h.useEffect(()=>()=>{clearTimeout(y.current)},[]),c.jsx(C,F({appear:r,in:s,nodeRef:E,onEnter:G,onEntered:B,onEntering:_,onExit:V,onExited:R,onExiting:D,addEndListener:P,timeout:g==="auto"?null:g},x,{children:($,j)=>h.cloneElement(o,F({style:F({opacity:0,transform:en(.75),visibility:$==="exited"&&!s?"hidden":void 0},N3[$],p,o.props.style),ref:S},j))}))});wo.muiSupportAuto=!0;const z3=wo;function Z3(e){return Ee("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const U3=["onEntering"],W3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],K3=["slotProps"];function wi(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ei(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Si(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mt(e){return typeof e=="function"?e():e}const q3=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Z3,t)},Y3=D0(I3,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X3=D0(f2,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Q3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:m,className:k,container:p,elevation:g=8,marginThreshold:C=16,open:x,PaperProps:y={},slots:b,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=z3,transitionDuration:A="auto",TransitionProps:{onEntering:_}={},disableScrollLock:G=!1}=a,B=I1(a.TransitionProps,U3),D=I1(a,W3),V=(i=w==null?void 0:w.paper)!=null?i:y,R=h.useRef(),P=B0(R,V.ref),$=F({},a,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:E,TransitionComponent:S,transitionDuration:A,TransitionProps:B}),j=q3($),L=h.useCallback(()=>{if(f==="anchorPosition")return d;const Y=Mt(l),a1=(Y&&Y.nodeType===1?Y:Y1(R.current).body).getBoundingClientRect();return{top:a1.top+wi(a1,u.vertical),left:a1.left+Ei(a1,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),Z=h.useCallback(Y=>({vertical:wi(Y,E.vertical),horizontal:Ei(Y,E.horizontal)}),[E.horizontal,E.vertical]),U=h.useCallback(Y=>{const r1={width:Y.offsetWidth,height:Y.offsetHeight},a1=Z(r1);if(f==="none")return{top:null,left:null,transformOrigin:Si(a1)};const Z1=L();let U1=Z1.top-a1.vertical,W1=Z1.left-a1.horizontal;const G0=U1+r1.height,C0=W1+r1.width,K1=ke(Mt(l)),Le=K1.innerHeight-C,O=K1.innerWidth-C;if(C!==null&&U1Le){const I=G0-Le;U1-=I,a1.vertical+=I}if(C!==null&&W1O){const I=C0-O;W1-=I,a1.horizontal+=I}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:Si(a1)}},[l,f,L,Z,C]),[J,W]=h.useState(x),M=h.useCallback(()=>{const Y=R.current;if(!Y)return;const r1=U(Y);r1.top!==null&&(Y.style.top=r1.top),r1.left!==null&&(Y.style.left=r1.left),Y.style.transformOrigin=r1.transformOrigin,W(!0)},[U]);h.useEffect(()=>(G&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[l,G,M]);const X=(Y,r1)=>{_&&_(Y,r1),M()},e1=()=>{W(!1)};h.useEffect(()=>{x&&M()}),h.useImperativeHandle(s,()=>x?{updatePosition:()=>{M()}}:null,[x,M]),h.useEffect(()=>{if(!x)return;const Y=i2(()=>{M()}),r1=ke(l);return r1.addEventListener("resize",Y),()=>{Y.clear(),r1.removeEventListener("resize",Y)}},[l,x,M]);let Q=A;A==="auto"&&!S.muiSupportAuto&&(Q=void 0);const d1=p||(l?Y1(Mt(l)).body:void 0),S1=(r=b==null?void 0:b.root)!=null?r:Y3,A1=(o=b==null?void 0:b.paper)!=null?o:X3,j1=Ye({elementType:A1,externalSlotProps:F({},V,{style:J?V.style:F({},V.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:$,className:S0(j.paper,V==null?void 0:V.className)}),R1=Ye({elementType:S1,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:x},ownerState:$,className:S0(j.root,k)}),{slotProps:d0}=R1,f0=I1(R1,K3);return c.jsx(S1,F({},f0,!uo(S1)&&{slotProps:d0,disableScrollLock:G},{children:c.jsx(S,F({appear:!0,in:x,onEntering:X,onExited:e1,timeout:Q},B,{children:c.jsx(A1,F({},j1,{children:m}))}))}))}),J3=Q3;function e5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Eo(...e){return t=>e.forEach(n=>e5(n,t))}function X0(...e){return h.useCallback(Eo(...e),e)}const So=h.forwardRef((e,t)=>{const{children:n,...i}=e,r=h.Children.toArray(n),o=r.find(t5);if(o){const a=o.props.children,s=r.map(l=>l===o?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:l);return h.createElement(tn,F({},i,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,s):null)}return h.createElement(tn,F({},i,{ref:t}),n)});So.displayName="Slot";const tn=h.forwardRef((e,t)=>{const{children:n,...i}=e;return h.isValidElement(n)?h.cloneElement(n,{...n5(i,n.props),ref:t?Eo(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});tn.displayName="SlotClone";const Ao=({children:e})=>h.createElement(h.Fragment,null,e);function t5(e){return h.isValidElement(e)&&e.type===Ao}function n5(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...s)=>{o(...s),r(...s)}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}const i5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],j0=i5.reduce((e,t)=>{const n=h.forwardRef((i,r)=>{const{asChild:o,...a}=i,s=o?So:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,F({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function r5(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}const o5=h.forwardRef((e,t)=>{var n;const{container:i=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return i?F0.createPortal(h.createElement(j0.div,F({},r,{ref:t})),i):null}),a5=o5;var Ai=Object.prototype.hasOwnProperty;function ye(e,t){var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&ye(e[i],t[i]););return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(Ai.call(e,n)&&++i&&!Ai.call(t,n)||!(n in t)||!ye(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function De(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i0;)a[s]=arguments[s+4];e.call(this,a),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=i,this.cause=r,this.target=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Q1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Q1.prototype._applyRule=function(t,n){var i=this;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return i.chain.push(new yt(n,t.apply(i,r),r,i.nextRuleModifiers)),i.nextRuleModifiers=[],i}};Q1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new s5(n,t.simple,t.async)),this};Q1.prototype._clone=function(){return new Q1(this.chain.slice(),this.nextRuleModifiers.slice())};Q1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Q1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(i){try{i._check(t)}catch(r){n.push(new Mn(i,t,r))}}),n};Q1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(i){throw new Mn(n,t,i)}})};Q1.prototype.testAsync=function(t){var n=this;return new Promise(function(i,r){Do(t,n.chain.slice(),i,r)})};function Do(e,t,n,i){if(t.length){var r=t.shift();r._testAsync(e).then(function(){Do(e,t,n,i)},function(o){i(new Mn(r,e,o))})}else n(e)}var _i=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function l5(e,t){return t===void 0&&(t=!1),{simple:function(n){return _i(n,t)||e.check(n)===void 0},async:function(n){return _i(n,t)||e.testAsync(n)}}}function D1(){return typeof Proxy<"u"?Bo(new Q1):nn(new Q1)}var be={};D1.extend=function(e){Object.assign(be,e)};D1.clearCustomRules=function(){be={}};function Bo(e){return new Proxy(e,{get:function(n,i){if(i in n)return n[i];var r=Bo(e._clone());if(i in tt)return r._applyModifier(tt[i],i);if(i in be)return r._applyRule(be[i],i);if(i in rn)return r._applyRule(rn[i],i)}})}function nn(e){var t=function(r,o){return Object.keys(r).forEach(function(a){o[a]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var u=nn(o._clone()),d=u._applyRule(r[a],a).apply(void 0,s);return d}}),o},n=t(rn,e),i=t(be,n);return Object.keys(tt).forEach(function(r){Object.defineProperty(i,r,{get:function(){var o=nn(i._clone());return o._applyModifier(tt[r],r)}})}),i}var tt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Re(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Re(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Re(t).every(e)}},async:function(e){return function(t){return Promise.all(Re(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(i){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&i:i}).catch(function(){return!1})}}}};function Vi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Re(e){return typeof e=="string"?e.split(""):e}var rn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||c5;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return L0("string")},boolean:function(){return L0("boolean")},undefined:function(){return L0("undefined")},null:function(){return L0("null")},array:function(){return L0("array")},object:function(){return L0("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return u5(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(i){return i.test(n)})}},optional:l5};function L0(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function c5(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function u5(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(i){var r=e[i];try{r.check((t||{})[i])}catch(o){o.target=i,n.push(o)}}),n.length>0)throw n;return!0},async:function(t){var n=[],i=Object.keys(e).map(function(r){var o=e[r];return o.testAsync((t||{})[r]).catch(function(a){a.target=r,n.push(a)})});return Promise.all(i).then(function(){if(n.length>0)throw n;return!0})}}}var t1="colors",g1="sizes",T="space",d5={gap:T,gridGap:T,columnGap:T,gridColumnGap:T,rowGap:T,gridRowGap:T,inset:T,insetBlock:T,insetBlockEnd:T,insetBlockStart:T,insetInline:T,insetInlineEnd:T,insetInlineStart:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockEnd:T,marginBlockStart:T,marginInline:T,marginInlineEnd:T,marginInlineStart:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockEnd:T,paddingBlockStart:T,paddingInline:T,paddingInlineEnd:T,paddingInlineStart:T,top:T,right:T,bottom:T,left:T,scrollMargin:T,scrollMarginTop:T,scrollMarginRight:T,scrollMarginBottom:T,scrollMarginLeft:T,scrollMarginX:T,scrollMarginY:T,scrollMarginBlock:T,scrollMarginBlockEnd:T,scrollMarginBlockStart:T,scrollMarginInline:T,scrollMarginInlineEnd:T,scrollMarginInlineStart:T,scrollPadding:T,scrollPaddingTop:T,scrollPaddingRight:T,scrollPaddingBottom:T,scrollPaddingLeft:T,scrollPaddingX:T,scrollPaddingY:T,scrollPaddingBlock:T,scrollPaddingBlockEnd:T,scrollPaddingBlockStart:T,scrollPaddingInline:T,scrollPaddingInlineEnd:T,scrollPaddingInlineStart:T,fontSize:"fontSizes",background:t1,backgroundColor:t1,backgroundImage:t1,borderImage:t1,border:t1,borderBlock:t1,borderBlockEnd:t1,borderBlockStart:t1,borderBottom:t1,borderBottomColor:t1,borderColor:t1,borderInline:t1,borderInlineEnd:t1,borderInlineStart:t1,borderLeft:t1,borderLeftColor:t1,borderRight:t1,borderRightColor:t1,borderTop:t1,borderTopColor:t1,caretColor:t1,color:t1,columnRuleColor:t1,fill:t1,outline:t1,outlineColor:t1,stroke:t1,textDecorationColor:t1,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:g1,minBlockSize:g1,maxBlockSize:g1,inlineSize:g1,minInlineSize:g1,maxInlineSize:g1,width:g1,minWidth:g1,maxWidth:g1,height:g1,minHeight:g1,maxHeight:g1,flexBasis:g1,gridTemplateColumns:g1,gridTemplateRows:g1,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"},f5=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Q0=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(o=>JSON.stringify(o,f5))(t);return r in e?e[r]:e[r]=n(t,...i)}},w0=Symbol.for("sxs.internal"),Ln=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Di=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:h5}=Object.prototype,on=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),m5=/\s+(?![^()]*\))/,O0=e=>t=>e(...typeof t=="string"?String(t).split(m5):[t]),Bi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:O0((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:O0((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:O0((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:O0((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:O0((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:O0((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Lt=/([\d.]+)([^]*)/,p5=(e,t)=>e.length?e.reduce((n,i)=>(n.push(...t.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),n),[]):t,x5=(e,t)=>e in k5&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${on(e)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${on(e)}:${i}fit-content`)+o):String(t),k5={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},s0=e=>e?e+"-":"",jo=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,a,s)=>a=="$"==!!o?i:(r||a=="--"?"calc(":"")+"var(--"+(a==="$"?s0(t)+(s.includes("$")?"":s0(n))+s.replace(/\$/g,"-"):s)+")"+(r||a=="--"?"*"+(r||"")+(o||"1")+")":"")),g5=/\s*,\s*(?![^()]*\))/,C5=Object.prototype.toString,I0=(e,t,n,i,r)=>{let o,a,s;const l=(u,d,f)=>{let m,k;const p=g=>{for(m in g){const y=m.charCodeAt(0)===64,b=y&&Array.isArray(g[m])?g[m]:[g[m]];for(k of b){const w=/[A-Z]/.test(x=m)?x:x.replace(/-[^]/g,S=>S[1].toUpperCase()),E=typeof k=="object"&&k&&k.toString===C5&&(!i.utils[w]||!d.length);if(w in i.utils&&!E){const S=i.utils[w];if(S!==a){a=S,p(S(k)),a=null;continue}}else if(w in Bi){const S=Bi[w];if(S!==s){s=S,p(S(k)),s=null;continue}}if(y&&(C=m.slice(1)in i.media?"@media "+i.media[m.slice(1)]:m,m=C.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(S,A,_,G,B,D)=>{const V=Lt.test(A),R=.0625*(V?-1:1),[P,$]=V?[G,A]:[A,G];return"("+(_[0]==="="?"":_[0]===">"===V?"max-":"min-")+P+":"+(_[0]!=="="&&_.length===1?$.replace(Lt,(j,L,Z)=>Number(L)+R*(_===">"?1:-1)+Z):$)+(B?") and ("+(B[0]===">"?"min-":"max-")+P+":"+(B.length===1?D.replace(Lt,(j,L,Z)=>Number(L)+R*(B===">"?-1:1)+Z):D):"")+")"})),E){const S=y?f.concat(m):[...f],A=y?[...d]:p5(d,m.split(g5));o!==void 0&&r(ji(...o)),o=void 0,l(k,A,S)}else o===void 0&&(o=[[],d,f]),m=y||m.charCodeAt(0)!==36?m:`--${s0(i.prefix)}${m.slice(1).replace(/\$/g,"-")}`,k=E?k:typeof k=="number"?k&&w in y5?String(k)+"px":String(k):jo(x5(w,k??""),i.prefix,i.themeMap[w]),o[0].push(`${y?`${m} `:`${on(m)}:`}${k}`)}}var C,x};p(u),o!==void 0&&r(ji(...o)),o=void 0};l(e,t,n)},ji=(e,t,n)=>`${n.map(i=>`${i}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,y5={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},$i=e=>String.fromCharCode(e+(e>25?39:97)),E0=e=>(t=>{let n,i="";for(n=Math.abs(t);n>52;n=n/52|0)i=$i(n%52)+i;return $i(n%52)+i})(((t,n)=>{let i=n.length;for(;i;)t=33*t^n.charCodeAt(--i);return t})(5381,JSON.stringify(e))>>>0),ue=["themed","global","styled","onevar","resonevar","allvar","inline"],b5=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},v5=e=>{let t;const n=()=>{const{cssRules:r}=t.sheet;return[].map.call(r,(o,a)=>{const{cssText:s}=o;let l="";if(s.startsWith("--sxs"))return"";if(r[a-1]&&(l=r[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${s}`;return o.cssRules.length?`${l}${s}`:""}return s}).join("")},i=()=>{if(t){const{rules:s,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const u in s)delete s[u]}const r=Object(e).styleSheets||[];for(const s of r)if(b5(s)){for(let l=0,u=s.cssRules;u[l];++l){const d=Object(u[l]);if(d.type!==1)continue;const f=Object(u[l+1]);if(f.type!==4)continue;++l;const{cssText:m}=d;if(!m.startsWith("--sxs"))continue;const k=m.slice(14,-3).trim().split(/\s+/),p=ue[k[0]];p&&(t||(t={sheet:s,reset:i,rules:{},toString:n}),t.rules[p]={group:f,index:l,cache:new Set(k)})}if(t)break}if(!t){const s=(l,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,s(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:a}=t;for(let s=ue.length-1;s>=0;--s){const l=ue[s];if(!a[l]){const u=ue[s+1],d=a[u]?a[u].index:o.cssRules.length;o.insertRule("@media{}",d),o.insertRule(`--sxs{--sxs:${s}}`,d),a[l]={group:o.cssRules[d+1],index:d,cache:new Set([s])}}w5(a[l])}};return i(),t},w5=e=>{const t=e.group;let n=t.cssRules.length;e.apply=i=>{try{t.insertRule(i,n),++n}catch{}}},re=Symbol(),E5=Q0(),Gi=(e,t)=>E5(e,()=>(...n)=>{let i={type:null,composers:new Set};for(const r of n)if(r!=null)if(r[w0]){i.type==null&&(i.type=r[w0].type);for(const o of r[w0].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(S5(r,e));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),A5(e,i,t)}),S5=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${s0(r.prefix)}c-${E0(i)}`,a=[],s=[],l=Object.create(null),u=[];for(const m in n)l[m]=String(n[m]);if(typeof e=="object"&&e)for(const m in e){d=l,f=m,h5.call(d,f)||(l[m]="undefined");const k=e[m];for(const p in k){const g={[m]:String(p)};String(p)==="undefined"&&u.push(m);const C=k[p],x=[g,C,!Di(C)];a.push(x)}}var d,f;if(typeof t=="object"&&t)for(const m of t){let{css:k,...p}=m;k=typeof k=="object"&&k||{};for(const C in p)p[C]=String(p[C]);const g=[p,k,!Di(k)];s.push(g)}return[o,i,a,s,l,u]},A5=(e,t,n)=>{const[i,r,o,a]=_5(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function m(){for(let k=0;km.rules[k]={apply:p=>m[re].push([k,p])}),m})(n):null,l=(s||n).rules,u=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||V5;const{css:m,...k}=f,p={};for(const x in o)if(delete k[x],x in f){let y=f[x];typeof y=="object"&&y?p[x]={"@initial":o[x],...y}:(y=String(y),p[x]=y!=="undefined"||a.has(x)?y:o[x])}else p[x]=o[x];const g=new Set([...r]);for(const[x,y,b,w]of t.composers){n.rules.styled.cache.has(x)||(n.rules.styled.cache.add(x),I0(y,[`.${x}`],[],e,A=>{l.styled.apply(A)}));const E=Pi(b,p,e.media),S=Pi(w,p,e.media,!0);for(const A of E)if(A!==void 0)for(const[_,G,B]of A){const D=`${x}-${E0(G)}-${_}`;g.add(D);const V=(B?n.rules.resonevar:n.rules.onevar).cache,R=B?l.resonevar:l.onevar;V.has(D)||(V.add(D),I0(G,[`.${D}`],[],e,P=>{R.apply(P)}))}for(const A of S)if(A!==void 0)for(const[_,G]of A){const B=`${x}-${E0(G)}-${_}`;g.add(B),n.rules.allvar.cache.has(B)||(n.rules.allvar.cache.add(B),I0(G,[`.${B}`],[],e,D=>{l.allvar.apply(D)}))}}if(typeof m=="object"&&m){const x=`${i}-i${E0(m)}-css`;g.add(x),n.rules.inline.cache.has(x)||(n.rules.inline.cache.add(x),I0(m,[`.${x}`],[],e,y=>{l.inline.apply(y)}))}for(const x of String(f.className||"").trim().split(/\s+/))x&&g.add(x);const C=k.className=[...g].join(" ");return{type:t.type,className:C,selector:u,props:k,toString:()=>C,deferredInjector:s}};return Ln(d,{className:i,selector:u,[w0]:t,toString:()=>(n.rules.styled.cache.has(i)||d(),i)})},_5=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,a,s]of e){t===""&&(t=o),n.push(o),r.push(...s);for(const l in a){const u=a[l];(i[l]===void 0||u!=="undefined"||s.includes(u))&&(i[l]=u)}}return[t,n,i,new Set(r)]},Pi=(e,t,n,i)=>{const r=[];e:for(let[o,a,s]of e){if(s)continue;let l,u=0,d=!1;for(l in o){const f=o[l];let m=t[l];if(m!==f){if(typeof m!="object"||!m)continue e;{let k,p,g=0;for(const C in m){if(f===String(m[C])){if(C!=="@initial"){const x=C.slice(1);(p=p||[]).push(x in n?n[x]:C.replace(/^@media ?/,"")),d=!0}u+=g,k=!0}++g}if(p&&p.length&&(a={["@media "+p.join(", ")]:a}),!k)continue e}}}(r[u]=r[u]||[]).push([i?"cv":`${l}-${o[l]}`,a,d])}return r},V5={},D5=Q0(),B5=(e,t)=>D5(e,()=>(...n)=>{const i=()=>{for(let r of n){r=typeof r=="object"&&r||{};let o=E0(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(r["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete r["@import"]}I0(r,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return Ln(i,{toString:i})}),j5=Q0(),$5=(e,t)=>j5(e,()=>n=>{const i=`${s0(e.prefix)}k-${E0(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const o=[];I0(n,[],[],e,s=>o.push(s));const a=`@keyframes ${i}{${o.join("")}}`;t.rules.global.apply(a)}return i};return Ln(r,{get name(){return r()},toString:r})}),G5=class{constructor(e,t,n,i){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+s0(this.prefix)+s0(this.scale)+this.token}toString(){return this.computedValue}},P5=Q0(),M5=(e,t)=>P5(e,()=>(n,i)=>{i=typeof n=="object"&&n||Object(i);const r=`.${n=(n=typeof n=="string"?n:"")||`${s0(e.prefix)}t-${E0(i)}`}`,o={},a=[];for(const l in i){o[l]={};for(const u in i[l]){const d=`--${s0(e.prefix)}${l}-${u}`,f=jo(String(i[l][u]),e.prefix,l);o[l][u]=new G5(u,f,l,e.prefix),a.push(`${d}:${f}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${i===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(l)}return n};return{...o,get className(){return s()},selector:r,toString:s}}),L5=Q0(),Mi,O5=Q0(),$o=e=>{const t=(n=>{let i=!1;const r=L5(n,o=>{i=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},d={prefix:a,media:s,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...d5},utils:typeof o.utils=="object"&&o.utils||{}},f=v5(l),m={css:Gi(d,f),globalCss:B5(d,f),keyframes:$5(d,f),createTheme:M5(d,f),reset(){f.reset(),m.theme.toString()},theme:{},sheet:f,config:d,prefix:a,getCssText:f.toString,toString:f.toString};return String(m.theme=m.createTheme(u)),m});return i||r.reset(),r})(e);return t.styled=(({config:n,sheet:i})=>O5(n,()=>{const r=Gi(n,i);return(...o)=>{const a=r(...o),s=a[w0].type,l=v.forwardRef((u,d)=>{const f=u&&u.as||s,{props:m,deferredInjector:k}=a(u);return delete m.as,m.ref=d,k?v.createElement(v.Fragment,null,v.createElement(f,m),v.createElement(k,null)):v.createElement(f,m)});return l.className=a.className,l.displayName=`Styled.${s.displayName||s.name||s}`,l.selector=a.selector,l.toString=()=>a.selector,l[w0]=a[w0],l}}))(t),t},T5=()=>Mi||(Mi=$o()),Ym=(...e)=>T5().styled(...e);function R5(e,t,n){return Math.max(t,Math.min(e,n))}const m1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Li(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Oi(e,t,n,i=.15){return i===0?R5(e,t,n):en?+Li(e-n,n-t,i)+n:e}function F5(e,[t,n],[i,r]){const[[o,a],[s,l]]=e;return[Oi(t,o,a,i),Oi(n,s,l,r)]}function I5(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e){var t=I5(e,"string");return typeof t=="symbol"?t:String(t)}function V1(e,t,n){return t=H5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function c1(e){for(var t=1;t{var n,i;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(i=n.contains)===null||i===void 0?void 0:i.call(n,t.target))})}function Y5(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Mo(e){return bt(e)?Y5(e)[0]:e}function X5(e){return q5(e).map(t=>t.identifier)}function Ot(e){const t=Mo(e);return bt(e)?t.identifier:t.pointerId}function Fi(e){const t=Mo(e);return[t.clientX,t.clientY]}function Q5(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return t}function nt(e,...t){return typeof e=="function"?e(...t):e}function J5(){}function el(...e){return e.length===0?J5:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Ii(e,t){return Object.assign({},t,e||{})}const tl=32;class nl{constructor(t,n,i){this.ctrl=t,this.args=n,this.key=i,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:i,args:r}=this;n[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,i=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=i.from?nt(i.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:i,shared:r}=this;n.args=this.args;let o=0;if(t&&(n.event=t,i.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Q5(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const S=n._delta.map(Math.abs);m1.addTo(n._distance,S)}this.axisIntent&&this.axisIntent(t);const[a,s]=n._movement,[l,u]=i.threshold,{_step:d,values:f}=n;if(i.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(s)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=l&&Math.sign(a)*l),d[1]===!1&&(d[1]=Math.abs(s)>=u&&Math.sign(s)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const m=[0,0];if(i.hasCustomTransform){const[S,A]=f;m[0]=d[0]!==!1?S-d[0]:0,m[1]=d[1]!==!1?A-d[1]:0}else m[0]=d[0]!==!1?a-d[0]:0,m[1]=d[1]!==!1?s-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(m);const k=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in i&&(n._bounds=nt(i.bounds,n)),this.setup&&this.setup()),n.movement=m,this.computeOffset()));const[g,C]=n.offset,[[x,y],[b,w]]=n._bounds;n.overflow=[gy?1:0,Cw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?i.rubberband||[0,0]:[0,0];if(n.offset=F5(n._bounds,n.offset,E),n.delta=m1.sub(n.offset,k),this.computeMovement(),p&&(!n.last||o>tl)){n.delta=m1.sub(n.offset,k);const S=n.delta.map(Math.abs);m1.addTo(n.distance,S),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[S[0]/o,S[1]/o],n.timeDelta=o)}}emit(){const t=this.state,n=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const r=this.handler(c1(c1(c1({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function il([e,t],n){const i=Math.abs(e),r=Math.abs(t);if(i>r&&i>n)return"x";if(r>i&&r>n)return"y"}class rl extends nl{constructor(...t){super(...t),V1(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=m1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=m1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,i=this.config;if(!n.axis&&t){const r=typeof i.axisThreshold=="object"?i.axisThreshold[Po(t)]:i.axisThreshold;n.axis=il(n._movement,r)}n._blocked=(i.lockDirection||!!i.axis)&&!n.axis||!!i.axis&&i.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const ol=e=>e,Hi=.15,Lo={enabled(e=!0){return e},eventOptions(e,t,n){return c1(c1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Hi,Hi];case!1:return[0,0];default:return m1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return m1.toVector(e)},transform(e,t,n){const i=e||n.shared.transform;return this.hasCustomTransform=!!i,i||ol},threshold(e){return m1.toVector(e,0)}},al=0,Be=c1(c1({},Lo),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=al){return e},bounds(e={}){if(typeof e=="function")return o=>Be.bounds(e(o));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=e;return[[t,n],[i,r]]}}),Ni={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class sl extends rl{constructor(...t){super(...t),V1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),r={left:n.left-i.left+t.offset[0],right:n.right-i.right+t.offset[0],top:n.top-i.top+t.offset[1],bottom:n.bottom-i.bottom+t.offset[1]};t._bounds=Be.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=Ot(t),i._pointerActive=!0,this.computeValues(Fi(t)),this.computeInitial(),n.preventScrollAxis&&Po(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,i=this.config;if(!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const o=Fi(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=m1.sub(o,n._values),this.computeValues(o)),m1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,i=this.config;if(!n._active||!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[o,a]=n._distance;if(n.tap=o<=i.tapsThreshold&&a<=i.tapsThreshold,n.tap&&i.filterTaps)n._force=!0;else{const[s,l]=n._delta,[u,d]=n._movement,[f,m]=i.swipe.velocity,[k,p]=i.swipe.distance,g=i.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>k&&(n.swipe[0]=Math.sign(s)),x>m&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,i=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,ll(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Ni[t.key];if(n){const i=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=n(this.config.keyboardDisplacement,r),i._keyboardActive=!0,m1.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Ni&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function ll(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const je=typeof window<"u"&&window.document&&window.document.createElement;function Oo(){return je&&"ontouchstart"in window}function cl(){return Oo()||je&&window.navigator.maxTouchPoints>1}function ul(){return je&&"onpointerdown"in window}function dl(){return je&&"exitPointerLock"in window.document}function fl(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:je,gesture:fl(),touch:Oo(),touchscreen:cl(),pointer:ul(),pointerLock:dl()},hl=250,ml=180,pl=.5,xl=50,kl=250,gl=10,zi={mouse:0,touch:0,pen:8},Cl=c1(c1({},Be),{},{device(e,t,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!r?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?hl:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:i=3,axis:r=void 0}){const o=m1.toVector(e,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,o},swipe({velocity:e=pl,distance:t=xl,duration:n=kl}={}){return{velocity:this.transform(m1.toVector(e)),distance:this.transform(m1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return ml;case!1:return 0;default:return e}},axisThreshold(e){return e?c1(c1({},zi),e):zi},keyboardDisplacement(e=gl){return e}});c1(c1({},Lo),{},{device(e,t,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&i)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:i={}}){const r=a=>{const s=Ii(nt(n,a),{min:-1/0,max:1/0});return[s.min,s.max]},o=a=>{const s=Ii(nt(i,a),{min:-1/0,max:1/0});return[s.min,s.max]};return typeof n!="function"&&typeof i!="function"?[r(),o()]:a=>[r(a),o(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",m1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});const To=new Map,an=new Map;function yl(e){To.set(e.key,e.engine),an.set(e.key,e.resolver)}const bl={key:"drag",engine:sl,resolver:Cl};function vl(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function wl(e,t){if(e==null)return{};var n=vl(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}const El={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=P1.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},Sl=["target","eventOptions","window","enabled","transform"];function Ue(e={},t){const n={};for(const[i,r]of Object.entries(t))switch(typeof r){case"function":n[i]=r.call(n,e[i],i,e);break;case"object":n[i]=Ue(e[i],r);break;case"boolean":r&&(n[i]=e[i]);break}return n}function Al(e,t,n={}){const i=e,{target:r,eventOptions:o,window:a,enabled:s,transform:l}=i,u=wl(i,Sl);if(n.shared=Ue({target:r,eventOptions:o,window:a,enabled:s,transform:l},El),t){const d=an.get(t);n[t]=Ue(c1({shared:n.shared},u),d)}else for(const d in u){const f=an.get(d);f&&(n[d]=Ue(c1({shared:n.shared},u[d]),f))}return n}class Ro{constructor(t,n){V1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,i,r,o){const a=this._listeners,s=K5(n,i),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=c1(c1({},l),o);t.addEventListener(s,r,u);const d=()=>{t.removeEventListener(s,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class _l{constructor(){V1(this,"_timeouts",new Map)}add(t,n,i=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,i,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Vl{constructor(t){V1(this,"gestures",new Set),V1(this,"_targetEventStore",new Ro(this)),V1(this,"gestureEventStores",{}),V1(this,"gestureTimeoutStores",{}),V1(this,"handlers",{}),V1(this,"config",{}),V1(this,"pointerIds",new Set),V1(this,"touchIds",new Set),V1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Dl(this,t)}setEventIds(t){if(bt(t))return this.touchIds=new Set(X5(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Al(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,i={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=Zi(i,s.eventOptions,!!r);if(s.enabled){const u=To.get(a);new u(this,t,a).bind(l)}}const o=Zi(i,n.eventOptions,!!r);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a](c1(c1({},this.state.shared),{},{event:s,args:t})),void 0,!0)}for(const o in i)i[o]=el(...i[o]);if(!r)return i;for(const o in i){const{device:a,capture:s,passive:l}=W5(o);this._targetEventStore.add(r,a,"",i[o],{capture:s,passive:l})}}}}function T0(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ro(e,t),e.gestureTimeoutStores[t]=new _l}function Dl(e,t){t.drag&&T0(e,"drag"),t.wheel&&T0(e,"wheel"),t.scroll&&T0(e,"scroll"),t.move&&T0(e,"move"),t.pinch&&T0(e,"pinch"),t.hover&&T0(e,"hover")}const Zi=(e,t,n)=>(i,r,o,a={},s=!1)=>{var l,u;const d=(l=a.capture)!==null&&l!==void 0?l:t.capture,f=(u=a.passive)!==null&&u!==void 0?u:t.passive;let m=s?i:Z5(i,r,d);n&&f&&(m+="Passive"),e[m]=e[m]||[],e[m].push(o)};function Bl(e,t={},n,i){const r=v.useMemo(()=>new Vl(e),[]);if(r.applyHandlers(e,i),r.applyConfig(t,n),v.useEffect(r.effect.bind(r)),v.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function jl(e,t){return yl(bl),Bl({drag:e},t||{},"drag")}function e0(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fo(e,t=[]){let n=[];function i(o,a){const s=h.createContext(a),l=n.length;n=[...n,a];function u(f){const{scope:m,children:k,...p}=f,g=(m==null?void 0:m[e][l])||s,C=h.useMemo(()=>p,Object.values(p));return h.createElement(g.Provider,{value:C},k)}function d(f,m){const k=(m==null?void 0:m[e][l])||s,p=h.useContext(k);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const r=()=>{const o=n.map(a=>h.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[i,$l(r,...t)]}function $l(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const a=i.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function J0(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...n)},[])}function Gl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e);h.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i)},[n,t])}const sn="dismissableLayer.update",Pl="dismissableLayer.pointerDownOutside",Ml="dismissableLayer.focusOutside";let Ui;const Ll=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ol=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=h.useContext(Ll),[f,m]=h.useState(null),k=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=h.useState({}),g=X0(t,_=>m(_)),C=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=C.indexOf(x),b=f?C.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,S=Tl(_=>{const G=_.target,B=[...d.branches].some(D=>D.contains(G));!E||B||(o==null||o(_),s==null||s(_),_.defaultPrevented||l==null||l())},k),A=Rl(_=>{const G=_.target;[...d.branches].some(D=>D.contains(G))||(a==null||a(_),s==null||s(_),_.defaultPrevented||l==null||l())},k);return Gl(_=>{b===d.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},k),h.useEffect(()=>{if(f)return i&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ui=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wi(),()=>{i&&d.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=Ui)}},[f,k,i,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wi())},[f,d]),h.useEffect(()=>{const _=()=>p({});return document.addEventListener(sn,_),()=>document.removeEventListener(sn,_)},[]),h.createElement(j0.div,F({},u,{ref:g,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:e0(e.onFocusCapture,A.onFocusCapture),onBlurCapture:e0(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:e0(e.onPointerDownCapture,S.onPointerDownCapture)}))});function Tl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1),r=h.useRef(()=>{});return h.useEffect(()=>{const o=s=>{if(s.target&&!i.current){let u=function(){Io(Pl,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Rl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1);return h.useEffect(()=>{const r=o=>{o.target&&!i.current&&Io(Ml,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wi(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function Io(e,t,n,{discrete:i}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?r5(r,o):r.dispatchEvent(o)}const U0=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Fl=Vs["useId".toString()]||(()=>{});let Il=0;function Hl(e){const[t,n]=h.useState(Fl());return U0(()=>{e||n(i=>i??String(Il++))},[e]),e||(t?`radix-${t}`:"")}const Nl=h.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...o}=e;return h.createElement(j0.svg,F({},o,{ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),zl=Nl;function Zl(e){const[t,n]=h.useState(void 0);return U0(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}const Ho="Popper",[No,zo]=Fo(Ho),[Ul,Zo]=No(Ho),Wl=e=>{const{__scopePopper:t,children:n}=e,[i,r]=h.useState(null);return h.createElement(Ul,{scope:t,anchor:i,onAnchorChange:r},n)},Kl="PopperAnchor",ql=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,o=Zo(Kl,n),a=h.useRef(null),s=X0(t,a);return h.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||a.current)}),i?null:h.createElement(j0.div,F({},r,{ref:s}))}),Uo="PopperContent",[Yl,Xl]=No(Uo),Ql=h.forwardRef((e,t)=>{var n,i,r,o,a,s,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:k="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:x=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:S,...A}=e,_=Zo(Uo,d),[G,B]=h.useState(null),D=X0(t,a1=>B(a1)),[V,R]=h.useState(null),P=Zl(V),$=(n=P==null?void 0:P.width)!==null&&n!==void 0?n:0,j=(i=P==null?void 0:P.height)!==null&&i!==void 0?i:0,L=f+(k!=="center"?"-"+k:""),Z=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},U=Array.isArray(x)?x:[x],J=U.length>0,W={padding:Z,boundary:U.filter(n4),altBoundary:J},{refs:M,floatingStyles:X,placement:e1,isPositioned:Q,middlewareData:d1}=E3({strategy:"fixed",placement:L,whileElementsMounted:(...a1)=>b3(...a1,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[e3({mainAxis:m+j,alignmentAxis:p}),C&&t3({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?n3():void 0,...W}),C&&X2({...W}),i3({...W,apply:({elements:a1,rects:Z1,availableWidth:U1,availableHeight:W1})=>{const{width:G0,height:C0}=Z1.reference,K1=a1.floating.style;K1.setProperty("--radix-popper-available-width",`${U1}px`),K1.setProperty("--radix-popper-available-height",`${W1}px`),K1.setProperty("--radix-popper-anchor-width",`${G0}px`),K1.setProperty("--radix-popper-anchor-height",`${C0}px`)}}),V&&w3({element:V,padding:g}),i4({arrowWidth:$,arrowHeight:j}),w&&Q2({strategy:"referenceHidden",...W})]}),[S1,A1]=Wo(e1),j1=J0(S);U0(()=>{Q&&(j1==null||j1())},[Q,j1]);const R1=(r=d1.arrow)===null||r===void 0?void 0:r.x,d0=(o=d1.arrow)===null||o===void 0?void 0:o.y,f0=((a=d1.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,r1]=h.useState();return U0(()=>{G&&r1(window.getComputedStyle(G).zIndex)},[G]),h.createElement("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(s=d1.transformOrigin)===null||s===void 0?void 0:s.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},h.createElement(Yl,{scope:d,placedSide:S1,onArrowChange:R,arrowX:R1,arrowY:d0,shouldHideArrow:f0},h.createElement(j0.div,F({"data-side":S1,"data-align":A1},A,{ref:D,style:{...A.style,animation:Q?void 0:"none",opacity:(u=d1.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Jl="PopperArrow",e4={top:"bottom",right:"left",bottom:"top",left:"right"},t4=h.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,o=Xl(Jl,i),a=e4[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(zl,F({},r,{ref:n,style:{...r.style,display:"block"}})))});function n4(e){return e!==null}const i4=e=>({name:"transformOrigin",options:e,fn(t){var n,i,r,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,k=f?0:e.arrowHeight,[p,g]=Wo(s),C={start:"0%",center:"50%",end:"100%"}[g],x=((i=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&i!==void 0?i:0)+m/2,y=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+k/2;let b="",w="";return p==="bottom"?(b=f?C:`${x}px`,w=`${-k}px`):p==="top"?(b=f?C:`${x}px`,w=`${l.floating.height+k}px`):p==="right"?(b=`${-k}px`,w=f?C:`${y}px`):p==="left"&&(b=`${l.floating.width+k}px`,w=f?C:`${y}px`),{data:{x:b,y:w}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}const r4=Wl,o4=ql,a4=Ql,s4=t4;function l4(e,t){return h.useReducer((n,i)=>{const r=t[n][i];return r??n},e)}const Ko=e=>{const{present:t,children:n}=e,i=c4(t),r=typeof n=="function"?n({present:i.isPresent}):h.Children.only(n),o=X0(i.ref,r.ref);return typeof n=="function"||i.isPresent?h.cloneElement(r,{ref:o}):null};Ko.displayName="Presence";function c4(e){const[t,n]=h.useState(),i=h.useRef({}),r=h.useRef(e),o=h.useRef("none"),a=e?"mounted":"unmounted",[s,l]=l4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Fe(i.current);o.current=s==="mounted"?u:"none"},[s]),U0(()=>{const u=i.current,d=r.current;if(d!==e){const m=o.current,k=Fe(u);e?l("MOUNT"):k==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==k?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),U0(()=>{if(t){const u=f=>{const k=Fe(i.current).includes(f.animationName);f.target===t&&k&&pt.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(o.current=Fe(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(i.current=getComputedStyle(u)),n(u)},[])}}function Fe(e){return(e==null?void 0:e.animationName)||"none"}function u4({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,r]=d4({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:i,s=J0(n),l=h.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else r(u)},[o,e,r,s]);return[a,l]}function d4({defaultProp:e,onChange:t}){const n=h.useState(e),[i]=n,r=h.useRef(i),o=J0(t);return h.useEffect(()=>{r.current!==i&&(o(i),r.current=i)},[i,r,o]),n}const f4=h.forwardRef((e,t)=>h.createElement(j0.span,F({},e,{ref:t,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",...e.style}}))),h4=f4,[vt,Xm]=Fo("Tooltip",[zo]),wt=zo(),m4="TooltipProvider",ln="tooltip.open",[Qm,On]=vt(m4),Tn="Tooltip",[p4,Et]=vt(Tn),x4=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=On(Tn,e.__scopeTooltip),u=wt(t),[d,f]=h.useState(null),m=Hl(),k=h.useRef(0),p=a??l.disableHoverableContent,g=s??l.delayDuration,C=h.useRef(!1),[x=!1,y]=u4({prop:i,defaultProp:r,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ln))):l.onClose(),o==null||o(A)}}),b=h.useMemo(()=>x?C.current?"delayed-open":"instant-open":"closed",[x]),w=h.useCallback(()=>{window.clearTimeout(k.current),C.current=!1,y(!0)},[y]),E=h.useCallback(()=>{window.clearTimeout(k.current),y(!1)},[y]),S=h.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{C.current=!0,y(!0)},g)},[g,y]);return h.useEffect(()=>()=>window.clearTimeout(k.current),[]),h.createElement(r4,u,h.createElement(p4,{scope:t,contentId:m,open:x,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayed?S():w()},[l.isOpenDelayed,S,w]),onTriggerLeave:h.useCallback(()=>{p?E():window.clearTimeout(k.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},Ki="TooltipTrigger",k4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Et(Ki,n),o=On(Ki,n),a=wt(n),s=h.useRef(null),l=X0(t,s,r.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(o4,F({asChild:!0},a),h.createElement(j0.button,F({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:l,onPointerMove:e0(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:e0(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:e0(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:e0(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:e0(e.onBlur,r.onClose),onClick:e0(e.onClick,r.onClose)})))}),g4="TooltipPortal",[Jm,C4]=vt(g4,{forceMount:void 0}),ve="TooltipContent",y4=h.forwardRef((e,t)=>{const n=C4(ve,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=e,a=Et(ve,e.__scopeTooltip);return h.createElement(Ko,{present:i||a.open},a.disableHoverableContent?h.createElement(qo,F({side:r},o,{ref:t})):h.createElement(b4,F({side:r},o,{ref:t})))}),b4=h.forwardRef((e,t)=>{const n=Et(ve,e.__scopeTooltip),i=On(ve,e.__scopeTooltip),r=h.useRef(null),o=X0(t,r),[a,s]=h.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=i,m=h.useCallback(()=>{s(null),f(!1)},[f]),k=h.useCallback((p,g)=>{const C=p.currentTarget,x={x:p.clientX,y:p.clientY},y=A4(x,C.getBoundingClientRect()),b=_4(x,y),w=V4(g.getBoundingClientRect()),E=B4([...b,...w]);s(E),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(l&&d){const p=C=>k(C,d),g=C=>k(C,l);return l.addEventListener("pointerleave",p),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",p),d.removeEventListener("pointerleave",g)}}},[l,d,k,m]),h.useEffect(()=>{if(a){const p=g=>{const C=g.target,x={x:g.clientX,y:g.clientY},y=(l==null?void 0:l.contains(C))||(d==null?void 0:d.contains(C)),b=!D4(x,a);y?m():b&&(m(),u())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,d,a,u,m]),h.createElement(qo,F({},e,{ref:o}))}),[v4,w4]=vt(Tn,{isInside:!1}),qo=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Et(ve,n),u=wt(n),{onClose:d}=l;return h.useEffect(()=>(document.addEventListener(ln,d),()=>document.removeEventListener(ln,d)),[d]),h.useEffect(()=>{if(l.trigger){const f=m=>{const k=m.target;k!=null&&k.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),h.createElement(Ol,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(a4,F({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.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)"}}),h.createElement(Ao,null,i),h.createElement(v4,{scope:n,isInside:!0},h.createElement(h4,{id:l.contentId,role:"tooltip"},r||i))))}),E4="TooltipArrow",S4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=wt(n);return w4(E4,n).isInside?null:h.createElement(s4,F({},r,i,{ref:t}))});function A4(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function _4(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function V4(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function D4(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,a=t.length-1;oi!=d>i&&n<(u-s)*(i-l)/(d-l)+s&&(r=!r)}return r}function B4(e){const t=e.slice();return t.sort((n,i)=>n.xi.x?1:n.yi.y?1:0),j4(t)}function j4(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const $4=x4,G4=k4,P4=y4,M4=S4;function L4(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function n1(e,t){if(e==null)return{};var n=L4(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}let l1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(l1||(l1={}));const O4={[l1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[l1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[l1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[l1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[l1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[l1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[l1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[l1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[l1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Yo(e,t,...n){const[i,...r]=O4[t](...n);console[e]("LEVA: "+i,...r)}const t0=Yo.bind(null,"warn"),T4=Yo.bind(null,"log"),R4=["value"],F4=["schema"],I4=["value"],Xo=[],_0={};function qi(e){let{value:t}=e,n=n1(e,R4);for(let i of Xo){const r=i(t,n);if(r)return r}}function u0(e,t){let{schema:n}=t,i=n1(t,F4);if(e in _0){t0(l1.ALREADY_REGISTERED_TYPE,e);return}Xo.push((r,o)=>n(r,o)&&e),_0[e]=i}function Tt(e,t,n,i){const{normalize:r}=_0[e];if(r)return r(t,n,i);if(typeof t!="object"||!("value"in t))return{value:t};const{value:o}=t,a=n1(t,I4);return{value:o,settings:a}}function H4(e,t,n,i,r,o){const{sanitize:a}=_0[e];return a?a(t,n,i,r,o):t}function Yi(e,t,n){const{format:i}=_0[e];return i?i(t,n):t}function N4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=h0(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Z4=Math.log(10);function Qi(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Z4)+1,i=Math.floor(Math.log10(Math.abs(e))),r=Math.pow(10,i-n);return Math.max(r,.001)}const it=(e,t,n)=>n===t?0:(k0(e,t,n)-t)/(n-t),rt=(e,t,n)=>e*(n-t)+t,U4=()=>"_"+Math.random().toString(36).substr(2,9),Ji=/\(([0-9+\-*/^ .]+)\)/,er=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,tr=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,nr=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,ir=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,rr=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function h0(e){if(isNaN(Number(e)))if(Ji.test(e)){const t=e.replace(Ji,(n,i)=>String(h0(i)));return h0(t)}else if(er.test(e)){const t=e.replace(er,(n,i,r)=>String(Math.pow(Number(i),Number(r))));return h0(t)}else if(tr.test(e)){const t=e.replace(tr,(n,i,r)=>String(Number(i)*Number(r)));return h0(t)}else if(nr.test(e)){const t=e.replace(nr,(n,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return h0(t)}else if(ir.test(e)){const t=e.replace(ir,(n,i,r)=>String(Number(i)+Number(r)));return h0(t)}else if(rr.test(e)){const t=e.replace(rr,(n,i,r)=>String(Number(i)-Number(r)));return h0(t)}else return Number(e);return Number(e)}function W4(e,t){return t.reduce((n,i)=>(e&&e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}function K4(e,t){const n=z({},e);return t.forEach(i=>i in e&&delete n[i]),n}function q4(e,t){return e.reduce((n,i,r)=>Object.assign(n,{[t[r]]:i}),{})}function Qo(e){return Object.prototype.toString.call(e)==="[object Object]"}const Y4=e=>Qo(e)&&Object.keys(e).length===0;let H1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(H1||(H1={}));let N1;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(N1||(N1={}));const X4=["type","__customInput"],Q4=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],J4=["type"];function Jo(e,t,n={},i){var r,o;if(typeof e!="object"||Array.isArray(e))return{type:i,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:S}=e,A=n1(e,X4);return Jo(S,t,A,E)}const{render:a,label:s,optional:l,order:u=0,disabled:d,hint:f,onChange:m,onEditStart:k,onEditEnd:p,transient:g}=e,C=n1(e,Q4),x=z({render:a,key:t,label:s??t,hint:f,transient:g??!!m,onEditStart:k,onEditEnd:p,disabled:d,optional:l,order:u},n);let{type:y}=C,b=n1(C,J4);if(y=i??y,y in H1)return{type:y,input:b,options:x};let w;return i&&Qo(b)&&"value"in b?w=b.value:w=Y4(b)?void 0:b,{type:y,input:w,options:z(z({},x),{},{onChange:m,optional:(r=x.optional)!==null&&r!==void 0?r:!1,disabled:(o=x.disabled)!==null&&o!==void 0?o:!1})}}function e6(e,t,n,i){const r=Jo(e,t),{type:o,input:a,options:s}=r;if(o)return o in H1?r:{type:o,input:Tt(o,a,n,i),options:s};let l=qi(a);return l?{type:l,input:Tt(l,a,n,i),options:s}:(l=qi({value:a}),l?{type:l,input:Tt(l,{value:a},n,i),options:s}:!1)}function or(e,t,n,i,r){const{value:o,type:a,settings:s}=e;e.value=ea({type:a,value:o,settings:s},t,n,i),e.fromPanel=r}const t6=function(t,n,i){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=i};function ea({type:e,value:t,settings:n},i,r,o){const a=e!=="SELECT"&&typeof i=="function"?i(t):i;let s;try{s=H4(e,a,n,t,r,o)}catch(l){throw new t6(`The value \`${i}\` did not result in a correct value.`,t,l)}return ye(s,t)?t:s}const ta=(e,t,n=!1)=>{let i=0;return function(){const r=arguments,o=n&&!i,a=()=>e.apply(this,r);window.clearTimeout(i),i=window.setTimeout(a,t),o&&a()}},na=e=>e.shiftKey?5:e.altKey?1/5:1;function n6(e,t){const n=console.error;console.error=()=>{},F0.render(e,t),console.error=n}const i6=["value"],r6=["min","max"],o6=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ia=(e,{min:t=-1/0,max:n=1/0,suffix:i})=>{const r=parseFloat(e);if(e===""||isNaN(r))throw Error("Invalid number");const o=k0(r,t,n);return i?o+i:o},a6=(e,{pad:t=0,suffix:n})=>{const i=parseFloat(e).toFixed(t);return n?i+n:i},ra=e=>{let{value:t}=e,n=n1(e,i6);const{min:i=-1/0,max:r=1/0}=n,o=n1(n,r6);let a=parseFloat(t);const s=typeof t=="string"?t.substring((""+a).length):void 0;a=k0(a,i,r);let l=n.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(a-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-a)/100).toPrecision(1)));const u=l?Qi(l)*10:Qi(a);l=l||u/10;const d=Math.round(k0(Math.log10(1/u),0,2));return{value:s?a+s:a,settings:z({initialValue:a,step:l,pad:d,min:i,max:r,suffix:s},o)}},oa=(e,{step:t,initialValue:n})=>{const i=Math.round((e-n)/t);return n+i*t};var aa=Object.freeze({__proto__:null,schema:o6,sanitize:ia,format:a6,normalize:ra,sanitizeStep:oa});function u1(){return u1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({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 Ie(e,t){const[n,i]=e.split(" "),r={};return n!=="none"&&(r.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),i&&(r.backgroundColor=i),r}const oe={$inputStyle:()=>e=>Ie(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Ie(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Ie(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Ie(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:H,css:ep,createTheme:l6,globalCss:c6,keyframes:tp}=$o({prefix:"leva",theme:ua(),utils:z(z({},oe),{},{$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:e=>({"&:focus":oe.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":oe.$focusStyle()(e)}),$hover:e=>({"&:hover":oe.$hoverStyle()(e)}),$active:e=>({"&:active":oe.$activeStyle()(e)})})}),u6=c6({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function d6(e){const t=ua();if(!e)return{theme:t,className:""};Object.keys(e).forEach(i=>{Object.assign(t[i],e[i])});const n=l6(t);return{theme:t,className:n.className}}function n0(e,t){const{theme:n}=h.useContext(Rn);if(!(e in n)||!(t in n[e]))return t0(l1.THEME_ERROR,e,t),"";let i=t;for(;;){let r=n[e][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const da=H("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),fa=H("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${da}`]:{paddingLeft:0}}),f6=H(fa,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),h6=H("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),m6=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],p6=["onUpdate"];function Fn(e){let{innerLabel:t,value:n,onUpdate:i,onChange:r,onKeyDown:o,type:a,id:s,inputType:l="text",rows:u=0}=e,d=n1(e,m6);const{id:f,emitOnEditStart:m,emitOnEditEnd:k,disabled:p}=x1(),g=s||f,C=h.useRef(null),x=u>0,y=x?"textarea":"input",b=h.useCallback(S=>A=>{const _=A.currentTarget.value;S(_)},[]);v.useEffect(()=>{const S=C.current,A=b(_=>{i(_),k()});return S==null||S.addEventListener("blur",A),()=>S==null?void 0:S.removeEventListener("blur",A)},[b,i,k]);const w=h.useCallback(S=>{S.key==="Enter"&&b(i)(S)},[b,i]),E=Object.assign({as:y},x?{rows:u}:{},d);return v.createElement(h6,{textArea:x},t&&typeof t=="string"?v.createElement(fa,null,t):t,v.createElement(da,u1({levaType:a,ref:C,id:g,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(r),onFocus:()=>m(),onKeyPress:w,onKeyDown:o,disabled:p},E)))}function x6(e){let{onUpdate:t}=e,n=n1(e,p6);const i=h.useCallback(o=>t(z4(o)),[t]),r=h.useCallback(o=>{const a=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(a){o.preventDefault();const s=o.altKey?.1:o.shiftKey?10:1;t(l=>parseFloat(l)+a*s)}},[t]);return v.createElement(Fn,u1({},n,{onUpdate:i,onKeyDown:r,type:"number"}))}const ot=H("div",{}),cn=H("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"}}]}),k6=H("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 + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & > svg`]:{opacity:1}}),ha=H("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"},[`> ${ot}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ma=H("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${ha} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),pa=H(ma,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),g6=H("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"}}}}),C6=H("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"}}),un=H("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),y6=H("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${un}`]:{pointerEvents:"auto"}}}}}),xa=H("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),b6=H("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),v6=H(M4,{fill:"$toolTipBackground"});function In({children:e}){const{className:t}=h.useContext(Rn);return v.createElement(a5,{className:t},e)}const w6=["align"];function E6(){const{id:e,disable:t,disabled:n}=x1();return v.createElement(v.Fragment,null,v.createElement(C6,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),v.createElement("label",{htmlFor:e+"__disable"}))}function S6(e){const{id:t,optional:n,hint:i}=x1(),r=e.htmlFor||(t?{htmlFor:t}:null),o=!i&&typeof e.children=="string"?{title:e.children}:null;return v.createElement(v.Fragment,null,n&&v.createElement(E6,null),i!==void 0?v.createElement($4,null,v.createElement(G4,{asChild:!0},v.createElement(un,u1({},r,e))),v.createElement(P4,{side:"top",sideOffset:2},v.createElement(b6,null,i,v.createElement(v6,null)))):v.createElement(un,u1({},r,o,e)))}function z1(e){let{align:t}=e,n=n1(e,w6);const{value:i,label:r,key:o,disabled:a}=x1(),{hideCopyButton:s}=s6(),l=!s&&o!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i??""})),d(!0)}catch{t0(l1.CLIPBOARD_ERROR,{[o]:i})}};return v.createElement(g6,{align:t,onPointerLeave:()=>d(!1)},v.createElement(S6,n),l&&!a&&v.createElement("div",{title:`Click to copy ${typeof r=="string"?r:o} value`},u?v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),v.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"})):v.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),v.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 A6=["toggled"],_6=H("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hn(e){let{toggled:t}=e,n=n1(e,A6);return v.createElement(_6,u1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),v.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 V6=["input"];function T1(e){let{input:t}=e,n=n1(e,V6);return t?v.createElement(pa,n):v.createElement(ma,n)}function ka({value:e,type:t,settings:n,setValue:i}){const[r,o]=h.useState(Yi(t,e,n)),a=h.useRef(e),s=h.useRef(n);s.current=n;const l=h.useCallback(d=>o(Yi(t,d,s.current)),[t]),u=h.useCallback(d=>{try{i(d)}catch(f){const{type:m,previousValue:k}=f;if(m!=="LEVA_ERROR")throw f;l(k)}},[l,i]);return h.useEffect(()=>{ye(e,a.current)||l(e),a.current=e},[e,l]),{displayValue:r,onChange:o,onUpdate:u}}function Ge(e,t){const{emitOnEditStart:n,emitOnEditEnd:i}=x1();return jl(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const o=e(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),i==null||i()),o},t)}function D6(e){const t=h.useRef(null),n=h.useRef(null),i=h.useRef(!1);return h.useEffect(()=>{const r=ta(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ga(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(i=>{Object.assign(t.current,i),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const B6=["__refCount"],Rt=(e,t)=>{if(!e[t])return null;const n=e[t];return n1(n,B6)};function j6(e){const t=$e(),[n,i]=h.useState(Rt(t.getData(),e)),r=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),o=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),a=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),s=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{i(Rt(t.getData(),e));const u=t.useStore.subscribe(d=>Rt(d.data,e),i,{equalityFn:De});return()=>u()},[t,e]),[n,{set:r,setSettings:o,disable:a,storeId:t.storeId,emitOnEditStart:s,emitOnEditEnd:l}]}const $6=H("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Ca=H("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),dn=H("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)))"}}}}),ya=H("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ba=H("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function G6({value:e,min:t,max:n,onDrag:i,step:r,initialValue:o}){const a=h.useRef(null),s=h.useRef(null),l=h.useRef(0),u=n0("sizes","scrubberWidth"),d=Ge(({event:m,first:k,xy:[p],movement:[g],memo:C})=>{if(k){const{width:y,left:b}=a.current.getBoundingClientRect();l.current=y-parseFloat(u),C=(m==null?void 0:m.target)===s.current?e:rt((p-b)/y,t,n)}const x=C+rt(g/l.current,0,n-t);return i(oa(x,{step:r,initialValue:o})),C}),f=it(e,t,n);return v.createElement(ya,u1({ref:a},d()),v.createElement(Ca,null,v.createElement(ba,{style:{left:0,right:`${(1-f)*100}%`}})),v.createElement(dn,{ref:s,style:{left:`calc(${f} * (100% - ${u}))`}}))}const P6=v.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:i})=>{const[r,o]=h.useState(!1),a=Ge(({active:s,delta:[l],event:u,memo:d=0})=>(o(s),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*na(u)),d=0),d));return v.createElement(f6,u1({dragging:r,title:e.length>1?e:""},a()),e.slice(0,i))});function va({label:e,id:t,displayValue:n,onUpdate:i,onChange:r,settings:o,innerLabelTrim:a=1}){const s=a>0&&v.createElement(P6,{label:e,step:o.step,onUpdate:i,innerLabelTrim:a});return v.createElement(x6,{id:t,value:String(n),onUpdate:i,onChange:r,innerLabel:s})}function M6(){const e=x1(),{label:t,value:n,onUpdate:i,settings:r,id:o}=e,{min:a,max:s}=r,l=s!==1/0&&a!==-1/0;return v.createElement(T1,{input:!0},v.createElement(z1,null,t),v.createElement($6,{hasRange:l},l&&v.createElement(G6,u1({value:parseFloat(n),onDrag:i},r)),v.createElement(va,u1({},e,{id:o,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:L6}=aa,O6=n1(aa,["sanitizeStep"]);var T6=z({component:M6},O6);const R6=(e,t)=>D1().schema({options:D1().passesAnyOf(D1().object(),D1().array())}).test(t),F6=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},I6=(e,{values:t})=>t.indexOf(e),H6=e=>{let{value:t,options:n}=e,i,r;return Array.isArray(n)?(r=n,i=n.map(o=>String(o))):(r=Object.values(n),i=Object.keys(n)),"value"in e?r.includes(t)||(i.unshift(String(t)),r.unshift(t)):t=r[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:i,values:r}}};var N6=Object.freeze({__proto__:null,schema:R6,sanitize:F6,format:I6,normalize:H6});const z6=H("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),fn=H("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Z6=H("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${fn}:focus + &`]:{$focusStyle:""},[`${fn}:hover + &`]:{$hoverStyle:""}});function U6({displayValue:e,value:t,onUpdate:n,id:i,settings:r,disabled:o}){const{keys:a,values:s}=r,l=h.useRef();return t===s[e]&&(l.current=a[e]),v.createElement(z6,null,v.createElement(fn,{id:i,value:e,onChange:u=>n(s[Number(u.currentTarget.value)]),disabled:o},a.map((u,d)=>v.createElement("option",{key:u,value:d},u))),v.createElement(Z6,null,l.current),v.createElement(Hn,{toggled:!0}))}function W6(){const{label:e,value:t,displayValue:n,onUpdate:i,id:r,disabled:o,settings:a}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(U6,{id:r,value:t,displayValue:n,onUpdate:i,settings:a,disabled:o}))}var K6=z({component:W6},N6);const q6=e=>D1().string().test(e),Y6=e=>{if(typeof e!="string")throw Error("Invalid string");return e},X6=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Q6=Object.freeze({__proto__:null,schema:q6,sanitize:Y6,normalize:X6});const J6=["displayValue","onUpdate","onChange","editable"],e8=H("div",{whiteSpace:"pre-wrap"});function t8(e){let{displayValue:t,onUpdate:n,onChange:i,editable:r=!0}=e,o=n1(e,J6);return r?v.createElement(Fn,u1({value:t,onUpdate:n,onChange:i},o)):v.createElement(e8,null,t)}function n8(){const{label:e,settings:t,displayValue:n,onUpdate:i,onChange:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(t8,u1({displayValue:n,onUpdate:i,onChange:r},t)))}var i8=z({component:n8},Q6);const r8=e=>D1().boolean().test(e),o8=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var a8=Object.freeze({__proto__:null,schema:r8,sanitize:o8});const s8=H("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 l8({value:e,onUpdate:t,id:n,disabled:i}){return v.createElement(s8,null,v.createElement("input",{id:n,type:"checkbox",checked:e,onChange:r=>t(r.currentTarget.checked),disabled:i}),v.createElement("label",{htmlFor:n},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function c8(){const{label:e,value:t,onUpdate:n,disabled:i,id:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(l8,{value:t,onUpdate:n,id:r,disabled:i}))}var u8=z({component:c8},a8);const d8=["locked"];function f8({value:e,id:t,valueKey:n,settings:i,onUpdate:r,innerLabelTrim:o}){const a=h.useRef(e[n]);a.current=e[n];const s=h.useCallback(u=>r({[n]:ea({type:"NUMBER",value:a.current,settings:i},u)}),[r,i,n]),l=ka({type:"NUMBER",value:e[n],settings:i,setValue:s});return v.createElement(va,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const h8=H("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function m8(e){let{locked:t}=e,n=n1(e,d8);return v.createElement("svg",u1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?v.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"}):v.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 Nn({value:e,onUpdate:t,settings:n,innerLabelTrim:i}){const{id:r,setSettings:o}=x1(),{lock:a,locked:s}=n;return v.createElement(h8,{withLock:a},a&&v.createElement(m8,{locked:s,onClick:()=>o({locked:!s})}),Object.keys(e).map((l,u)=>v.createElement(f8,{id:u===0?r:`${r}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:i})))}const wa=(e,t)=>{const n={};let i=0,r=1/0;Object.entries(e).forEach(([o,a])=>{n[o]=ra(z({value:a},t[o])).settings,i=Math.max(i,n[o].step),r=Math.min(r,n[o].pad)});for(let o in n){const{step:a,min:s,max:l}=t[o]||{};!isFinite(a)&&(!isFinite(s)||!isFinite(l))&&(n[o].step=i,n[o].pad=r)}return n},p8=["lock"],x8=["value"];function k8(e){const t=D1().array().length(e).every.number(),n=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===e&&r.every(o=>isFinite(o))};return i=>t.test(i)||n(i)}function g8(e){return Array.isArray(e)?"array":"object"}function me(e,t,n){return g8(e)===t?e:t==="array"?Object.values(e):q4(e,n)}const C8=(e,t,n)=>{const i=me(e,"object",t.keys);for(let a in i)i[a]=ia(i[a],t[a]);const r=Object.keys(i);let o={};if(r.length===t.keys.length)o=i;else{const a=me(n,"object",t.keys);if(r.length===1&&t.locked){const s=r[0],l=i[s],u=a[s],d=u!==0?l/u:1;for(let f in a)f===s?o[s]=l:o[f]=a[f]*d}else o=z(z({},a),i)}return me(o,t.format,t.keys)},y8=(e,t)=>me(e,"object",t.keys),b8=e=>!!e&&("step"in e||"min"in e||"max"in e);function v8(e,t,n=[]){const{lock:i=!1}=t,r=n1(t,p8),o=Array.isArray(e)?"array":"object",a=o==="object"?Object.keys(e):n,s=me(e,"object",a),l=b8(r)?a.reduce((d,f)=>Object.assign(d,{[f]:r}),{}):r,u=wa(s,l);return{value:o==="array"?e:s,settings:z(z({},u),{},{format:o,keys:a,lock:i,locked:!1})}}function Ea(e){return{schema:k8(e.length),normalize:t=>{let{value:n}=t,i=n1(t,x8);return v8(n,i,e)},format:(t,n)=>y8(t,n),sanitize:(t,n,i)=>C8(t,n,i)}}var w8={grad:.9,turn:360,rad:360/(2*Math.PI)},J1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},f1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},L1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Sa=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ar=function(e){return{r:L1(e.r,0,255),g:L1(e.g,0,255),b:L1(e.b,0,255),a:L1(e.a)}},Ft=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},E8=/^#([0-9a-f]{3,8})$/i,He=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Aa=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:r}},_a=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:255*[i,s,a,a,l,i][u],g:255*[l,i,i,s,a,a][u],b:255*[a,a,l,i,i,s][u],a:r}},sr=function(e){return{h:Sa(e.h),s:L1(e.s,0,100),l:L1(e.l,0,100),a:L1(e.a)}},lr=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},cr=function(e){return _a((n=(t=e).s,{h:t.h,s:(n*=((i=t.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:t.a}));var t,n,i},pe=function(e){return{h:(t=Aa(e)).h,s:(r=(200-(n=t.s))*(i=t.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,i,r},S8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,A8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,V8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hn={string:[[function(e){var t=E8.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?f1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?f1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_8.exec(e)||V8.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ar({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=S8.exec(e)||A8.exec(e);if(!t)return null;var n,i,r=sr({h:(n=t[1],i=t[2],i===void 0&&(i="deg"),Number(n)*(w8[i]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return cr(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=r===void 0?1:r;return J1(t)&&J1(n)&&J1(i)?ar({r:Number(t),g:Number(n),b:Number(i),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,i=e.l,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=sr({h:Number(t),s:Number(n),l:Number(i),a:Number(o)});return cr(a)},"hsl"],[function(e){var t=e.h,n=e.s,i=e.v,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=function(s){return{h:Sa(s.h),s:L1(s.s,0,100),v:L1(s.v,0,100),a:L1(s.a)}}({h:Number(t),s:Number(n),v:Number(i),a:Number(o)});return _a(a)},"hsv"]]},ur=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,a=(o=t.a)<1?He(f1(255*o)):"","#"+He(n)+He(i)+He(r)+a;var t,n,i,r,o,a},e.prototype.toRgb=function(){return Ft(this.rgba)},e.prototype.toRgbString=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,(o=t.a)<1?"rgba("+n+", "+i+", "+r+", "+o+")":"rgb("+n+", "+i+", "+r+")";var t,n,i,r,o},e.prototype.toHsl=function(){return lr(pe(this.rgba))},e.prototype.toHslString=function(){return t=lr(pe(this.rgba)),n=t.h,i=t.s,r=t.l,(o=t.a)<1?"hsla("+n+", "+i+"%, "+r+"%, "+o+")":"hsl("+n+", "+i+"%, "+r+"%)";var t,n,i,r,o},e.prototype.toHsv=function(){return t=Aa(this.rgba),{h:f1(t.h),s:f1(t.s),v:f1(t.v),a:f1(t.a,3)};var t},e.prototype.invert=function(){return y1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,-t))},e.prototype.grayscale=function(){return y1(It(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?y1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):f1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=pe(this.rgba);return typeof t=="number"?y1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===y1(t).toHex()},e}(),y1=function(e){return e instanceof mn?e:new mn(e)},fr=[],B8=function(e){e.forEach(function(t){fr.indexOf(t)<0&&(t(mn,hn),fr.push(t))})};function j8(e,t){var n={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"},i={};for(var r in n)i[n[r]]=r;var o={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,l,u=i[this.toHex()];if(u)return u;if(a!=null&&a.closest){var d=this.toRgb(),f=1/0,m="black";if(!o.length)for(var k in n)o[k]=new e(n[k]).toRgb();for(var p in n){var g=(s=d,l=o[p],Math.pow(s.r-l.r,2)+Math.pow(s.g-l.g,2)+Math.pow(s.b-l.b,2));g=0||(r[n]=e[n]);return r}function pn(e){var t=h.useRef(e),n=h.useRef(function(i){t.current&&t.current(i)});return t.current=e,n.current}var W0=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:C.buttons>0)&&r.current?o(hr(r.current,C,s.current)):g(!1)},p=function(){return g(!1)};function g(C){var x=l.current,y=xn(r.current),b=C?y.addEventListener:y.removeEventListener;b(x?"touchmove":"mousemove",k),b(x?"touchend":"mouseup",p)}return[function(C){var x=C.nativeEvent,y=r.current;if(y&&(mr(x),!function(w,E){return E&&!xe(w)}(x,l.current)&&y)){if(xe(x)){l.current=!0;var b=x.changedTouches||[];b.length&&(s.current=b[0].identifier)}y.focus(),o(hr(y,x,s.current)),g(!0)}},function(C){var x=C.which||C.keyCode;x<37||x>40||(C.preventDefault(),a({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},g]},[a,o]),d=u[0],f=u[1],m=u[2];return h.useEffect(function(){return m},[m]),v.createElement("div",ee({},i,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:r,onKeyDown:f,tabIndex:0,role:"slider"}))}),Pe=function(e){return e.filter(Boolean).join(" ")},Un=function(e){var t=e.color,n=e.left,i=e.top,r=i===void 0?.5:i,o=Pe(["react-colorful__pointer",e.className]);return v.createElement("div",{className:o,style:{top:100*r+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},v1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Da=function(e){var t=e.s,n=e.v,i=e.a,r=(200-t)*n/100;return{h:v1(e.h),s:v1(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:v1(r/2),a:v1(i,2)}},kn=function(e){var t=Da(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nt=function(e){var t=Da(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Ba=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:v1(255*[i,s,a,a,l,i][u]),g:v1(255*[l,i,i,s,a,a][u]),b:v1(255*[a,a,l,i,i,s][u]),a:v1(r,2)}},ja=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:v1(60*(s<0?s+6:s)),s:v1(o?a/o*100:0),v:v1(o/255*100),a:r}},$a=v.memo(function(e){var t=e.hue,n=e.onChange,i=Pe(["react-colorful__hue",e.className]);return v.createElement("div",{className:i},v.createElement(Zn,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:W0(t+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":v1(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(Un,{className:"react-colorful__hue-pointer",left:t/360,color:kn({h:t,s:100,v:100,a:1})})))}),Ga=v.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:kn({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:i},v.createElement(Zn,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:W0(t.s+100*r.left,0,100),v:W0(t.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+v1(t.s)+"%, Brightness "+v1(t.v)+"%"},v.createElement(Un,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:kn(t)})))}),Wn=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Pa(e,t,n){var i=pn(n),r=h.useState(function(){return e.toHsva(t)}),o=r[0],a=r[1],s=h.useRef({color:t,hsva:o});h.useEffect(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},a(u)}},[t,e]),h.useEffect(function(){var u;Wn(o,s.current.hsva)||e.equal(u=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:u},i(u))},[o,e,i]);var l=h.useCallback(function(u){a(function(d){return Object.assign({},d,u)})},[]);return[o,l]}var $8=typeof window<"u"?h.useLayoutEffect:h.useEffect,G8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},pr=new Map,Ma=function(e){$8(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!pr.has(t)){var n=t.createElement("style");n.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}`,pr.set(t,n);var i=G8();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},P8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},M8=function(e){var t=e.className,n=e.hsva,i=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+Nt(Object.assign({},n,{a:0}))+", "+Nt(Object.assign({},n,{a:1}))+")"},o=Pe(["react-colorful__alpha",t]),a=v1(100*n.a);return v.createElement("div",{className:o},v.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),v.createElement(Zn,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:W0(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(Un,{className:"react-colorful__alpha-pointer",left:n.a,color:Nt(n)})))},L8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d}),v.createElement(M8,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},O8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ja,fromHsva:Ba,equal:Wn},T8=function(e){return v.createElement(L8,ee({},e,{colorModel:O8}))},R8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ja({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Ba(e)).r,g:t.g,b:t.b};var t},equal:Wn},F8=function(e){return v.createElement(P8,ee({},e,{colorModel:R8}))};function np(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,n,o):a(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function te(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(i.next(d))}catch(f){a(f)}}function l(d){try{u(i.throw(d))}catch(f){a(f)}}function u(d){d.done?o(d.value):r(d.value).then(s,l)}u((i=i.apply(e,t||[])).next())})}function ne(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(i=1,r&&(o=u[0]&2?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function H8(){for(var e=[],t=0;t0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function z8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),r=N8.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}var Z8=[".DS_Store","Thumbs.db"];function U8(e){return te(this,void 0,void 0,function(){return ne(this,function(t){return at(e)&&W8(e)?[2,X8(e.dataTransfer,e.type)]:K8(e)?[2,q8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Y8(e)]:[2,[]]})})}function W8(e){return at(e.dataTransfer)}function K8(e){return at(e)&&at(e.target)}function at(e){return typeof e=="object"&&e!==null}function q8(e){return gn(e.target.files).map(function(t){return Me(t)})}function Y8(e){return te(this,void 0,void 0,function(){var t;return ne(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return Me(i)})]}})})}function X8(e,t){return te(this,void 0,void 0,function(){var n,i;return ne(this,function(r){switch(r.label){case 0:return e===null?[2,[]]:e.items?(n=gn(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Q8))]):[3,2];case 1:return i=r.sent(),[2,xr(La(i))];case 2:return[2,xr(gn(e.files).map(function(o){return Me(o)}))]}})})}function xr(e){return e.filter(function(t){return Z8.indexOf(t.name)===-1})}function gn(e){if(e===null)return[];for(var t=[],n=0;n{const[t,n,i]=e.split(":"),r=parseInt(t,10),o=parseInt(n,10),a=parseInt(i,10);return r*3600+o*60+a};var ro={exports:{}},Qs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Js=Qs,e2=Js;function oo(){}function ao(){}ao.resetWarningCache=oo;var t2=function(){function e(i,r,o,a,s,l){if(l!==e2){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ao,resetWarningCache:oo};return n.PropTypes=n,n};ro.exports=t2();var n2=ro.exports;const o1=Qr(n2);function si(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function i2(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function Y1(e){return e&&e.ownerDocument||document}function ke(e){return Y1(e).defaultView||window}function r2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const o2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},li=o2,ci={disabled:!1};var a2=function(t){return t.scrollTop},ce="unmounted",y0="exited",b0="entering",R0="entered",Xt="exiting",l0=function(e){As(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var a=r,s=a&&!a.isMounting?i.enter:i.appear,l;return o.appearStatus=null,i.in?s?(l=y0,o.appearStatus=b0):l=R0:i.unmountOnExit||i.mountOnEnter?l=ce:l=y0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ce?{status:y0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==b0&&a!==R0&&(o=b0):(a===b0||a===R0)&&(o=Xt)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===b0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this);a&&a2(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y0&&this.setState({status:ce})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[F0.findDOMNode(this),s],u=l[0],d=l[1],f=this.getTimeouts(),m=s?f.appear:f.enter;if(!r&&!a||ci.disabled){this.safeSetState({status:R0},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:b0},function(){o.props.onEntering(u,d),o.onTransitionEnd(m,function(){o.safeSetState({status:R0},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:F0.findDOMNode(this);if(!o||ci.disabled){this.safeSetState({status:y0},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Xt},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:y0},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ce)return null;var o=this.props,a=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 s=I1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Jr.Provider,{value:null},typeof a=="function"?a(r,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);l0.contextType=Jr;l0.propTypes={};function M0(){}l0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:M0,onEntering:M0,onEntered:M0,onExit:M0,onExiting:M0,onExited:M0};l0.UNMOUNTED=ce;l0.EXITED=y0;l0.ENTERING=b0;l0.ENTERED=R0;l0.EXITING=Xt;const so=l0,lo=e=>e.scrollTop;function qe(e,t){var n,i;const{timeout:r,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(i=a.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function s2(e){return Ee("MuiPaper",e)}Se("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 l2=["className","component","elevation","square","variant"],c2=e=>{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return _e(o,s2,r)},u2=D0("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ke("#fff",li(t.elevation))}, ${Ke("#fff",li(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),d2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=i,u=I1(i,l2),d=F({},i,{component:o,elevation:a,square:s,variant:l}),f=c2(d);return c.jsx(u2,F({as:o,ownerState:d,className:S0(f.root,r),ref:n},u))}),f2=d2;function h2(e){return Ee("MuiIconButton",e)}const m2=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),p2=m2,x2=["edge","children","className","color","disabled","disableFocusRipple","size"],k2=e=>{const{classes:t,disabled:n,color:i,edge:r,size:o}=e,a={root:["root",n&&"disabled",i!=="default"&&`color${H0(i)}`,r&&`edge${H0(r)}`,`size${H0(o)}`]};return _e(a,h2,t)},g2=D0(_s,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${H0(n.color)}`],n.edge&&t[`edge${H0(n.edge)}`],t[`size${H0(n.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":F({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),C2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=i,f=I1(i,x2),m=F({},i,{edge:r,color:s,disabled:l,disableFocusRipple:u,size:d}),k=k2(m);return c.jsx(g2,F({className:S0(k.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:m},f,{children:o}))}),co=C2;function uo(e){return typeof e=="string"}function y2(e,t,n){return e===void 0||uo(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}function fo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function b2(e,t,n){return typeof e=="function"?e(t,n):e}function ho(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const k=ui(n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),p=F({},n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),g=F({},n,r,i);return k.length>0&&(g.className=k),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const a=fo(F({},r,i)),s=di(i),l=di(r),u=t(a),d=ui(u==null?void 0:u.className,n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),f=F({},u==null?void 0:u.style,n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),m=F({},u,n,l,s);return d.length>0&&(m.className=d),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const w2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ye(e){var t;const{elementType:n,externalSlotProps:i,ownerState:r,skipResolvingSlotProps:o=!1}=e,a=I1(e,w2),s=o?{}:b2(i,r),{props:l,internalRef:u}=v2(F({},a,{externalSlotProps:s})),d=B0(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return y2(n,F({},l,{ref:d}),r)}const E2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function S2(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function A2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function _2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||A2(e))}function V2(e){const t=[],n=[];return Array.from(e.querySelectorAll(E2)).forEach((i,r)=>{const o=S2(i);o===-1||!_2(i)||(o===0?t.push(i):n.push({documentOrder:r,tabIndex:o,node:i}))}),n.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(t)}function D2(){return!0}function B2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=V2,isEnabled:a=D2,open:s}=e,l=h.useRef(!1),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),m=h.useRef(null),k=h.useRef(!1),p=h.useRef(null),g=B0(t.ref,p),C=h.useRef(null);h.useEffect(()=>{!s||!p.current||(k.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current);return p.current.contains(b.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),k.current&&p.current.focus()),()=>{r||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current),w=A=>{C.current=A,!(i||!a()||A.key!=="Tab")&&b.activeElement===p.current&&A.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const A=p.current;if(A===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(A.contains(b.activeElement)||i&&b.activeElement!==u.current&&b.activeElement!==d.current)return;if(b.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!k.current)return;let _=[];if((b.activeElement===u.current||b.activeElement===d.current)&&(_=o(p.current)),_.length>0){var G,B;const D=!!((G=C.current)!=null&&G.shiftKey&&((B=C.current)==null?void 0:B.key)==="Tab"),V=_[0],R=_[_.length-1];typeof V!="string"&&typeof R!="string"&&(D?R.focus():V.focus())}else A.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const S=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,i,r,a,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0,m.current=b.target;const w=t.props.onFocus;w&&w(b)},y=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0};return c.jsxs(h.Fragment,{children:[c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:x}),c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}function j2(e){return typeof e=="function"?e():e}const $2=h.forwardRef(function(t,n){const{children:i,container:r,disablePortal:o=!1}=t,[a,s]=h.useState(null),l=B0(h.isValidElement(i)?i.ref:null,n);if(ri(()=>{o||s(j2(r)||document.body)},[r,o]),ri(()=>{if(a&&!o)return oi(n,a),()=>{oi(n,null)}},[n,a,o]),o){if(h.isValidElement(i)){const u={ref:l};return h.cloneElement(i,u)}return c.jsx(h.Fragment,{children:i})}return c.jsx(h.Fragment,{children:a&&pt.createPortal(i,a)})});function G2(e){const t=Y1(e);return t.body===e?ke(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function he(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fi(e){return parseInt(ke(e).getComputedStyle(e).paddingRight,10)||0}function P2(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function hi(e,t,n,i,r){const o=[t,n,...i];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!P2(a);s&&l&&he(a,r)})}function Gt(e,t){let n=-1;return e.some((i,r)=>t(i)?(n=r,!0):!1),n}function M2(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(G2(i)){const a=r2(Y1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${fi(i)+a}px`;const s=Y1(i).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${fi(l)+a}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=Y1(i).body;else{const a=i.parentElement,s=ke(i);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function L2(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O2{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&he(t.modalRef,!1);const r=L2(n);hi(n,t.mount,t.modalRef,r,!0);const o=Gt(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),i)}mount(t,n){const i=Gt(this.containers,o=>o.modals.indexOf(t)!==-1),r=this.containers[i];r.restore||(r.restore=M2(r,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const r=Gt(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&he(t.modalRef,n),hi(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&he(a.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function T2(e){return typeof e=="function"?e():e}function R2(e){return e?e.props.hasOwnProperty("in"):!1}const F2=new O2;function I2(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:r=F2,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,m=h.useRef({}),k=h.useRef(null),p=h.useRef(null),g=B0(p,f),[C,x]=h.useState(!d),y=R2(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>Y1(k.current),E=()=>(m.current.modalRef=p.current,m.current.mount=k.current,m.current),S=()=>{r.mount(E(),{disableScrollLock:i}),p.current&&(p.current.scrollTop=0)},A=ai(()=>{const j=T2(t)||w().body;r.add(E(),j),p.current&&S()}),_=h.useCallback(()=>r.isTopModal(E()),[r]),G=ai(j=>{k.current=j,j&&(d&&_()?S():p.current&&he(p.current,b))}),B=h.useCallback(()=>{r.remove(E(),b)},[b,r]);h.useEffect(()=>()=>{B()},[B]),h.useEffect(()=>{d?A():(!y||!o)&&B()},[d,B,y,o,A]);const D=j=>L=>{var Z;(Z=j.onKeyDown)==null||Z.call(j,L),!(L.key!=="Escape"||L.which===229||!_())&&(n||(L.stopPropagation(),u&&u(L,"escapeKeyDown")))},V=j=>L=>{var Z;(Z=j.onClick)==null||Z.call(j,L),L.target===L.currentTarget&&u&&u(L,"backdropClick")};return{getRootProps:(j={})=>{const L=fo(e);delete L.onTransitionEnter,delete L.onTransitionExited;const Z=F({},L,j);return F({role:"presentation"},Z,{onKeyDown:D(Z),ref:g})},getBackdropProps:(j={})=>{const L=j;return F({"aria-hidden":!0},L,{onClick:V(L),open:d})},getTransitionProps:()=>{const j=()=>{x(!1),a&&a()},L=()=>{x(!0),s&&s(),o&&B()};return{onEnter:si(j,l==null?void 0:l.props.onEnter),onExited:si(L,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:G,isTopModal:_,exited:C,hasTransition:y}}const H2=["top","right","bottom","left"],m0=Math.min,$1=Math.max,Xe=Math.round,Te=Math.floor,p0=e=>({x:e,y:e}),N2={left:"right",right:"left",bottom:"top",top:"bottom"},z2={start:"end",end:"start"};function Qt(e,t,n){return $1(e,m0(t,n))}function r0(e,t){return typeof e=="function"?e(t):e}function o0(e){return e.split("-")[0]}function q0(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function Bn(e){return e==="y"?"height":"width"}function Y0(e){return["top","bottom"].includes(o0(e))?"y":"x"}function jn(e){return Dn(Y0(e))}function Z2(e,t,n){n===void 0&&(n=!1);const i=q0(e),r=jn(e),o=Bn(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Qe(a)),[a,Qe(a)]}function U2(e){const t=Qe(e);return[Jt(e),t,Jt(t)]}function Jt(e){return e.replace(/start|end/g,t=>z2[t])}function W2(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:a;default:return[]}}function K2(e,t,n,i){const r=q0(e);let o=W2(o0(e),n==="start",i);return r&&(o=o.map(a=>a+"-"+r),t&&(o=o.concat(o.map(Jt)))),o}function Qe(e){return e.replace(/left|right|bottom|top/g,t=>N2[t])}function q2(e){return{top:0,right:0,bottom:0,left:0,...e}}function mo(e){return typeof e!="number"?q2(e):{top:e,right:e,bottom:e,left:e}}function Je(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function mi(e,t,n){let{reference:i,floating:r}=e;const o=Y0(t),a=jn(t),s=Bn(a),l=o0(t),u=o==="y",d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,m=i[s]/2-r[s]/2;let k;switch(l){case"top":k={x:d,y:i.y-r.height};break;case"bottom":k={x:d,y:i.y+i.height};break;case"right":k={x:i.x+i.width,y:f};break;case"left":k={x:i.x-r.width,y:f};break;default:k={x:i.x,y:i.y}}switch(q0(t)){case"start":k[a]-=m*(n&&u?-1:1);break;case"end":k[a]+=m*(n&&u?-1:1);break}return k}const Y2=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=mi(u,i,l),m=i,k={},p=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=r0(e,t)||{};if(u==null)return{};const f=mo(d),m={x:n,y:i},k=jn(r),p=Bn(k),g=await a.getDimensions(u),C=k==="y",x=C?"top":"left",y=C?"bottom":"right",b=C?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[k]-m[k]-o.floating[p],E=m[k]-o.reference[k],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=S?S[b]:0;(!A||!await(a.isElement==null?void 0:a.isElement(S)))&&(A=s.floating[b]||o.floating[p]);const _=w/2-E/2,G=A/2-g[p]/2-1,B=m0(f[x],G),D=m0(f[y],G),V=B,R=A-g[p]-D,P=A/2-g[p]/2+_,$=Qt(V,P,R),j=!l.arrow&&q0(r)!=null&&P!=$&&o.reference[p]/2-(PV<=0)){var G,B;const V=(((G=o.flip)==null?void 0:G.index)||0)+1,R=E[V];if(R)return{data:{index:V,overflows:_},reset:{placement:R}};let P=(B=_.filter($=>$.overflows[0]<=0).sort(($,j)=>$.overflows[1]-j.overflows[1])[0])==null?void 0:B.placement;if(!P)switch(k){case"bestFit":{var D;const $=(D=_.map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,Z)=>L+Z,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:D[0];$&&(P=$);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function xi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ki(e){return H2.some(t=>e[t]>=0)}const Q2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=r0(e,t);switch(i){case"referenceHidden":{const o=await ge(t,{...r,elementContext:"reference"}),a=xi(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ki(a)}}}case"escaped":{const o=await ge(t,{...r,altBoundary:!0}),a=xi(o,n.floating);return{data:{escapedOffsets:a,escaped:ki(a)}}}default:return{}}}}};async function J2(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=o0(n),s=q0(n),l=Y0(n)==="y",u=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,f=r0(t,e);let{mainAxis:m,crossAxis:k,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(k=s==="end"?p*-1:p),l?{x:k*d,y:m*u}:{x:m*u,y:k*d}}const e3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:a,middlewareData:s}=t,l=await J2(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}}},t3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:C=>{let{x,y}=C;return{x,y}}},...l}=r0(e,t),u={x:n,y:i},d=await ge(t,l),f=Y0(o0(r)),m=Dn(f);let k=u[m],p=u[f];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=k+d[C],b=k-d[x];k=Qt(y,k,b)}if(a){const C=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=p+d[C],b=p-d[x];p=Qt(y,p,b)}const g=s.fn({...t,[m]:k,[f]:p});return{...g,data:{x:g.x-n,y:g.y-i}}}}},n3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=r0(e,t),d={x:n,y:i},f=Y0(r),m=Dn(f);let k=d[m],p=d[f];const g=r0(s,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=m==="y"?"height":"width",w=o.reference[m]-o.floating[b]+C.mainAxis,E=o.reference[m]+o.reference[b]-C.mainAxis;kE&&(k=E)}if(u){var x,y;const b=m==="y"?"width":"height",w=["top","left"].includes(o0(r)),E=o.reference[f]-o.floating[b]+(w&&((x=a.offset)==null?void 0:x[f])||0)+(w?0:C.crossAxis),S=o.reference[f]+o.reference[b]+(w?0:((y=a.offset)==null?void 0:y[f])||0)-(w?C.crossAxis:0);pS&&(p=S)}return{[m]:k,[f]:p}}}},i3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:r,elements:o}=t,{apply:a=()=>{},...s}=r0(e,t),l=await ge(t,s),u=o0(n),d=q0(n),f=Y0(n)==="y",{width:m,height:k}=i.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(g=u,p=d==="end"?"top":"bottom");const C=k-l[p],x=m-l[g],y=!t.middlewareData.shift;let b=C,w=x;if(f){const S=m-l.left-l.right;w=d||y?m0(x,S):S}else{const S=k-l.top-l.bottom;b=d||y?m0(C,S):S}if(y&&!d){const S=$1(l.left,0),A=$1(l.right,0),_=$1(l.top,0),G=$1(l.bottom,0);f?w=m-2*(S!==0||A!==0?S+A:$1(l.left,l.right)):b=k-2*(_!==0||G!==0?_+G:$1(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const E=await r.getDimensions(o.floating);return m!==E.width||k!==E.height?{reset:{rects:!0}}:{}}}};function x0(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function G1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function c0(e){var t;return(t=(po(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function po(e){return e instanceof Node||e instanceof G1(e).Node}function a0(e){return e instanceof Element||e instanceof G1(e).Element}function X1(e){return e instanceof HTMLElement||e instanceof G1(e).HTMLElement}function gi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G1(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=O1(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function r3(e){return["table","td","th"].includes(x0(e))}function $n(e){const t=Gn(),n=O1(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function o3(e){let t=Z0(e);for(;X1(t)&&!gt(t);){if($n(t))return t;t=Z0(t)}return null}function Gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gt(e){return["html","body","#document"].includes(x0(e))}function O1(e){return G1(e).getComputedStyle(e)}function Ct(e){return a0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z0(e){if(x0(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gi(e)&&e.host||c0(e);return gi(t)?t.host:t}function xo(e){const t=Z0(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:X1(t)&&Ve(t)?t:xo(t)}function Ce(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xo(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),a=G1(r);return o?t.concat(a,a.visualViewport||[],Ve(r)?r:[],a.frameElement&&n?Ce(a.frameElement):[]):t.concat(r,Ce(r,[],n))}function ko(e){const t=O1(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=X1(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:i,s=Xe(n)!==o||Xe(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function Pn(e){return a0(e)?e:e.contextElement}function N0(e){const t=Pn(e);if(!X1(t))return p0(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=ko(t);let a=(o?Xe(n.width):n.width)/i,s=(o?Xe(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const a3=p0(0);function go(e){const t=G1(e);return!Gn()||!t.visualViewport?a3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G1(e)?!1:t}function A0(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Pn(e);let a=p0(1);t&&(i?a0(i)&&(a=N0(i)):a=N0(e));const s=s3(o,n,i)?go(o):p0(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(o){const m=G1(o),k=i&&a0(i)?G1(i):i;let p=m.frameElement;for(;p&&i&&k!==m;){const g=N0(p),C=p.getBoundingClientRect(),x=O1(p),y=C.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,b=C.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=y,u+=b,p=G1(p).frameElement}}return Je({width:d,height:f,x:l,y:u})}function l3(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=X1(n),o=c0(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=p0(1);const l=p0(0);if((r||!r&&i!=="fixed")&&((x0(n)!=="body"||Ve(o))&&(a=Ct(n)),X1(n))){const u=A0(n);s=N0(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function c3(e){return Array.from(e.getClientRects())}function Co(e){return A0(c0(e)).left+Ct(e).scrollLeft}function u3(e){const t=c0(e),n=Ct(e),i=e.ownerDocument.body,r=$1(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=$1(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Co(e);const s=-n.scrollTop;return O1(i).direction==="rtl"&&(a+=$1(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}function d3(e,t){const n=G1(e),i=c0(e),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const u=Gn();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}function f3(e,t){const n=A0(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=X1(e)?N0(e):p0(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:a,height:s,x:l,y:u}}function Ci(e,t,n){let i;if(t==="viewport")i=d3(e,n);else if(t==="document")i=u3(c0(e));else if(a0(t))i=f3(t,n);else{const r=go(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Je(i)}function yo(e,t){const n=Z0(e);return n===t||!a0(n)||gt(n)?!1:O1(n).position==="fixed"||yo(n,t)}function h3(e,t){const n=t.get(e);if(n)return n;let i=Ce(e,[],!1).filter(s=>a0(s)&&x0(s)!=="body"),r=null;const o=O1(e).position==="fixed";let a=o?Z0(e):e;for(;a0(a)&&!gt(a);){const s=O1(a),l=$n(a);!l&&s.position==="fixed"&&(r=null),(o?!l&&!r:!l&&s.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ve(a)&&!l&&yo(e,a))?i=i.filter(d=>d!==a):r=s,a=Z0(a)}return t.set(e,i),i}function m3(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?h3(t,this._c):[].concat(n),i],s=a[0],l=a.reduce((u,d)=>{const f=Ci(t,d,r);return u.top=$1(f.top,u.top),u.right=m0(f.right,u.right),u.bottom=m0(f.bottom,u.bottom),u.left=$1(f.left,u.left),u},Ci(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function p3(e){return ko(e)}function x3(e,t,n){const i=X1(t),r=c0(t),o=n==="fixed",a=A0(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=p0(0);if(i||!i&&!o)if((x0(t)!=="body"||Ve(r))&&(s=Ct(t)),i){const u=A0(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=Co(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yi(e,t){return!X1(e)||O1(e).position==="fixed"?null:t?t(e):e.offsetParent}function bo(e,t){const n=G1(e);if(!X1(e))return n;let i=yi(e,t);for(;i&&r3(i)&&O1(i).position==="static";)i=yi(i,t);return i&&(x0(i)==="html"||x0(i)==="body"&&O1(i).position==="static"&&!$n(i))?n:i||o3(e)||n}const k3=async function(e){let{reference:t,floating:n,strategy:i}=e;const r=this.getOffsetParent||bo,o=this.getDimensions;return{reference:x3(t,await r(n),i),floating:{x:0,y:0,...await o(n)}}};function g3(e){return O1(e).direction==="rtl"}const C3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:c0,getClippingRect:m3,getOffsetParent:bo,getElementRects:k3,getClientRects:c3,getDimensions:p3,getScale:N0,isElement:a0,isRTL:g3};function y3(e,t){let n=null,i;const r=c0(e);function o(){clearTimeout(i),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:d,width:f,height:m}=e.getBoundingClientRect();if(s||t(),!f||!m)return;const k=Te(d),p=Te(r.clientWidth-(u+f)),g=Te(r.clientHeight-(d+m)),C=Te(u),y={rootMargin:-k+"px "+-p+"px "+-g+"px "+-C+"px",threshold:$1(0,m0(1,l))||1};let b=!0;function w(E){const S=E[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):i=setTimeout(()=>{a(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return a(!0),o}function b3(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=Pn(e),d=r||o?[...u?Ce(u):[],...Ce(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=u&&s?y3(u,n):null;let m=-1,k=null;a&&(k=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&k&&(k.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{k&&k.observe(t)})),n()}),u&&!l&&k.observe(u),k.observe(t));let p,g=l?A0(e):null;l&&C();function C(){const x=A0(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&n(),g=x,p=requestAnimationFrame(C)}return n(),()=>{d.forEach(x=>{r&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f&&f(),k&&k.disconnect(),k=null,l&&cancelAnimationFrame(p)}}const v3=(e,t,n)=>{const i=new Map,r={platform:C3,...n},o={...r.platform,_c:i};return Y2(e,t,{...r,platform:o})},w3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?pi({element:i.current,padding:r}).fn(n):{}:i?pi({element:i,padding:r}).fn(n):{}}}};var Ze=typeof document<"u"?h.useLayoutEffect:h.useEffect;function et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!et(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!et(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bi(e,t){const n=vo(e);return Math.round(t*n)/n}function vi(e){const t=h.useRef(e);return Ze(()=>{t.current=e}),t}function E3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,k]=h.useState(i);et(m,i)||k(i);const[p,g]=h.useState(null),[C,x]=h.useState(null),y=h.useCallback(j=>{j!=S.current&&(S.current=j,g(j))},[g]),b=h.useCallback(j=>{j!==A.current&&(A.current=j,x(j))},[x]),w=o||p,E=a||C,S=h.useRef(null),A=h.useRef(null),_=h.useRef(d),G=vi(l),B=vi(r),D=h.useCallback(()=>{if(!S.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),v3(S.current,A.current,j).then(L=>{const Z={...L,isPositioned:!0};V.current&&!et(_.current,Z)&&(_.current=Z,pt.flushSync(()=>{f(Z)}))})},[m,t,n,B]);Ze(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const V=h.useRef(!1);Ze(()=>(V.current=!0,()=>{V.current=!1}),[]),Ze(()=>{if(w&&(S.current=w),E&&(A.current=E),w&&E){if(G.current)return G.current(w,E,D);D()}},[w,E,D,G]);const R=h.useMemo(()=>({reference:S,floating:A,setReference:y,setFloating:b}),[y,b]),P=h.useMemo(()=>({reference:w,floating:E}),[w,E]),$=h.useMemo(()=>{const j={position:n,left:0,top:0};if(!P.floating)return j;const L=bi(P.floating,d.x),Z=bi(P.floating,d.y);return s?{...j,transform:"translate("+L+"px, "+Z+"px)",...vo(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:Z}},[n,s,P.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:D,refs:R,elements:P,floatingStyles:$}),[d,D,R,P,$])}const S3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],A3={entering:{opacity:1},entered:{opacity:1}},_3=h.forwardRef(function(t,n){const i=eo(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:k,onExited:p,onExiting:g,style:C,timeout:x=r,TransitionComponent:y=so}=t,b=I1(t,S3),w=h.useRef(null),E=B0(w,s.ref,n),S=P=>$=>{if(P){const j=w.current;$===void 0?P(j):P(j,$)}},A=S(m),_=S((P,$)=>{lo(P);const j=qe({style:C,timeout:x,easing:l},{mode:"enter"});P.style.webkitTransition=i.transitions.create("opacity",j),P.style.transition=i.transitions.create("opacity",j),d&&d(P,$)}),G=S(f),B=S(g),D=S(P=>{const $=qe({style:C,timeout:x,easing:l},{mode:"exit"});P.style.webkitTransition=i.transitions.create("opacity",$),P.style.transition=i.transitions.create("opacity",$),k&&k(P)}),V=S(p),R=P=>{o&&o(w.current,P)};return c.jsx(y,F({appear:a,in:u,nodeRef:w,onEnter:_,onEntered:G,onEntering:A,onExit:D,onExited:V,onExiting:B,addEndListener:R,timeout:x},b,{children:(P,$)=>h.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},A3[P],C,s.props.style),ref:E},$))}))}),V3=_3;function D3(e){return Ee("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const B3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],j3=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},D3,t)},$3=D0("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),G3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:d={},componentsProps:f={},invisible:m=!1,open:k,slotProps:p={},slots:g={},TransitionComponent:C=V3,transitionDuration:x}=a,y=I1(a,B3),b=F({},a,{component:u,invisible:m}),w=j3(b),E=(i=p.root)!=null?i:f.root;return c.jsx(C,F({in:k,timeout:x},y,{children:c.jsx($3,F({"aria-hidden":!0},E,{as:(r=(o=g.root)!=null?o:d.Root)!=null?r:u,className:S0(w.root,l,E==null?void 0:E.className),ownerState:F({},b,E==null?void 0:E.ownerState),classes:w,ref:n,children:s}))}))}),P3=G3;function M3(e){return Ee("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const L3=["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"],O3=e=>{const{open:t,exited:n,classes:i}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},M3,i)},T3=D0("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),R3=D0(P3,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F3=h.forwardRef(function(t,n){var i,r,o,a,s,l;const u=Ae({name:"MuiModal",props:t}),{BackdropComponent:d=R3,BackdropProps:f,className:m,closeAfterTransition:k=!1,children:p,container:g,component:C,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:A=!1,disableScrollLock:_=!1,hideBackdrop:G=!1,keepMounted:B=!1,onBackdropClick:D,open:V,slotProps:R,slots:P}=u,$=I1(u,L3),j=F({},u,{closeAfterTransition:k,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:A,disableScrollLock:_,hideBackdrop:G,keepMounted:B}),{getRootProps:L,getBackdropProps:Z,getTransitionProps:U,portalRef:J,isTopModal:W,exited:M,hasTransition:X}=I2(F({},j,{rootRef:n})),e1=F({},j,{exited:M}),Q=O3(e1),d1={};if(p.props.tabIndex===void 0&&(d1.tabIndex="-1"),X){const{onEnter:Y,onExited:r1}=U();d1.onEnter=Y,d1.onExited=r1}const S1=(i=(r=P==null?void 0:P.root)!=null?r:x.Root)!=null?i:T3,A1=(o=(a=P==null?void 0:P.backdrop)!=null?a:x.Backdrop)!=null?o:d,j1=(s=R==null?void 0:R.root)!=null?s:y.root,R1=(l=R==null?void 0:R.backdrop)!=null?l:y.backdrop,d0=Ye({elementType:S1,externalSlotProps:j1,externalForwardedProps:$,getSlotProps:L,additionalProps:{ref:n,as:C},ownerState:e1,className:S0(m,j1==null?void 0:j1.className,Q==null?void 0:Q.root,!e1.open&&e1.exited&&(Q==null?void 0:Q.hidden))}),f0=Ye({elementType:A1,externalSlotProps:R1,additionalProps:f,getSlotProps:Y=>Z(F({},Y,{onClick:r1=>{D&&D(r1),Y!=null&&Y.onClick&&Y.onClick(r1)}})),className:S0(R1==null?void 0:R1.className,f==null?void 0:f.className,Q==null?void 0:Q.backdrop),ownerState:e1});return!B&&!V&&(!X||M)?null:c.jsx($2,{ref:J,container:g,disablePortal:S,children:c.jsxs(S1,F({},d0,{children:[!G&&d?c.jsx(A1,F({},f0)):null,c.jsx(B2,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:A,isEnabled:W,open:V,children:h.cloneElement(p,d1)})]}))})}),I3=F3,H3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function en(e){return`scale(${e}, ${e**2})`}const N3={entering:{opacity:1,transform:en(1)},entered:{opacity:1,transform:"none"}},Pt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wo=h.forwardRef(function(t,n){const{addEndListener:i,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:m,onExiting:k,style:p,timeout:g="auto",TransitionComponent:C=so}=t,x=I1(t,H3),y=h.useRef(),b=h.useRef(),w=eo(),E=h.useRef(null),S=B0(E,o.ref,n),A=$=>j=>{if($){const L=E.current;j===void 0?$(L):$(L,j)}},_=A(d),G=A(($,j)=>{lo($);const{duration:L,delay:Z,easing:U}=qe({style:p,timeout:g,easing:a},{mode:"enter"});let J;g==="auto"?(J=w.transitions.getAutoHeightDuration($.clientHeight),b.current=J):J=L,$.style.transition=[w.transitions.create("opacity",{duration:J,delay:Z}),w.transitions.create("transform",{duration:Pt?J:J*.666,delay:Z,easing:U})].join(","),l&&l($,j)}),B=A(u),D=A(k),V=A($=>{const{duration:j,delay:L,easing:Z}=qe({style:p,timeout:g,easing:a},{mode:"exit"});let U;g==="auto"?(U=w.transitions.getAutoHeightDuration($.clientHeight),b.current=U):U=j,$.style.transition=[w.transitions.create("opacity",{duration:U,delay:L}),w.transitions.create("transform",{duration:Pt?U:U*.666,delay:Pt?L:L||U*.333,easing:Z})].join(","),$.style.opacity=0,$.style.transform=en(.75),f&&f($)}),R=A(m),P=$=>{g==="auto"&&(y.current=setTimeout($,b.current||0)),i&&i(E.current,$)};return h.useEffect(()=>()=>{clearTimeout(y.current)},[]),c.jsx(C,F({appear:r,in:s,nodeRef:E,onEnter:G,onEntered:B,onEntering:_,onExit:V,onExited:R,onExiting:D,addEndListener:P,timeout:g==="auto"?null:g},x,{children:($,j)=>h.cloneElement(o,F({style:F({opacity:0,transform:en(.75),visibility:$==="exited"&&!s?"hidden":void 0},N3[$],p,o.props.style),ref:S},j))}))});wo.muiSupportAuto=!0;const z3=wo;function Z3(e){return Ee("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const U3=["onEntering"],W3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],K3=["slotProps"];function wi(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ei(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Si(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mt(e){return typeof e=="function"?e():e}const q3=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Z3,t)},Y3=D0(I3,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X3=D0(f2,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Q3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:m,className:k,container:p,elevation:g=8,marginThreshold:C=16,open:x,PaperProps:y={},slots:b,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=z3,transitionDuration:A="auto",TransitionProps:{onEntering:_}={},disableScrollLock:G=!1}=a,B=I1(a.TransitionProps,U3),D=I1(a,W3),V=(i=w==null?void 0:w.paper)!=null?i:y,R=h.useRef(),P=B0(R,V.ref),$=F({},a,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:E,TransitionComponent:S,transitionDuration:A,TransitionProps:B}),j=q3($),L=h.useCallback(()=>{if(f==="anchorPosition")return d;const Y=Mt(l),a1=(Y&&Y.nodeType===1?Y:Y1(R.current).body).getBoundingClientRect();return{top:a1.top+wi(a1,u.vertical),left:a1.left+Ei(a1,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),Z=h.useCallback(Y=>({vertical:wi(Y,E.vertical),horizontal:Ei(Y,E.horizontal)}),[E.horizontal,E.vertical]),U=h.useCallback(Y=>{const r1={width:Y.offsetWidth,height:Y.offsetHeight},a1=Z(r1);if(f==="none")return{top:null,left:null,transformOrigin:Si(a1)};const Z1=L();let U1=Z1.top-a1.vertical,W1=Z1.left-a1.horizontal;const G0=U1+r1.height,C0=W1+r1.width,K1=ke(Mt(l)),Le=K1.innerHeight-C,O=K1.innerWidth-C;if(C!==null&&U1Le){const I=G0-Le;U1-=I,a1.vertical+=I}if(C!==null&&W1O){const I=C0-O;W1-=I,a1.horizontal+=I}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:Si(a1)}},[l,f,L,Z,C]),[J,W]=h.useState(x),M=h.useCallback(()=>{const Y=R.current;if(!Y)return;const r1=U(Y);r1.top!==null&&(Y.style.top=r1.top),r1.left!==null&&(Y.style.left=r1.left),Y.style.transformOrigin=r1.transformOrigin,W(!0)},[U]);h.useEffect(()=>(G&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[l,G,M]);const X=(Y,r1)=>{_&&_(Y,r1),M()},e1=()=>{W(!1)};h.useEffect(()=>{x&&M()}),h.useImperativeHandle(s,()=>x?{updatePosition:()=>{M()}}:null,[x,M]),h.useEffect(()=>{if(!x)return;const Y=i2(()=>{M()}),r1=ke(l);return r1.addEventListener("resize",Y),()=>{Y.clear(),r1.removeEventListener("resize",Y)}},[l,x,M]);let Q=A;A==="auto"&&!S.muiSupportAuto&&(Q=void 0);const d1=p||(l?Y1(Mt(l)).body:void 0),S1=(r=b==null?void 0:b.root)!=null?r:Y3,A1=(o=b==null?void 0:b.paper)!=null?o:X3,j1=Ye({elementType:A1,externalSlotProps:F({},V,{style:J?V.style:F({},V.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:$,className:S0(j.paper,V==null?void 0:V.className)}),R1=Ye({elementType:S1,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:x},ownerState:$,className:S0(j.root,k)}),{slotProps:d0}=R1,f0=I1(R1,K3);return c.jsx(S1,F({},f0,!uo(S1)&&{slotProps:d0,disableScrollLock:G},{children:c.jsx(S,F({appear:!0,in:x,onEntering:X,onExited:e1,timeout:Q},B,{children:c.jsx(A1,F({},j1,{children:m}))}))}))}),J3=Q3;function e5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Eo(...e){return t=>e.forEach(n=>e5(n,t))}function X0(...e){return h.useCallback(Eo(...e),e)}const So=h.forwardRef((e,t)=>{const{children:n,...i}=e,r=h.Children.toArray(n),o=r.find(t5);if(o){const a=o.props.children,s=r.map(l=>l===o?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:l);return h.createElement(tn,F({},i,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,s):null)}return h.createElement(tn,F({},i,{ref:t}),n)});So.displayName="Slot";const tn=h.forwardRef((e,t)=>{const{children:n,...i}=e;return h.isValidElement(n)?h.cloneElement(n,{...n5(i,n.props),ref:t?Eo(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});tn.displayName="SlotClone";const Ao=({children:e})=>h.createElement(h.Fragment,null,e);function t5(e){return h.isValidElement(e)&&e.type===Ao}function n5(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...s)=>{o(...s),r(...s)}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}const i5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],j0=i5.reduce((e,t)=>{const n=h.forwardRef((i,r)=>{const{asChild:o,...a}=i,s=o?So:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,F({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function r5(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}const o5=h.forwardRef((e,t)=>{var n;const{container:i=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return i?F0.createPortal(h.createElement(j0.div,F({},r,{ref:t})),i):null}),a5=o5;var Ai=Object.prototype.hasOwnProperty;function ye(e,t){var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&ye(e[i],t[i]););return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(Ai.call(e,n)&&++i&&!Ai.call(t,n)||!(n in t)||!ye(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function De(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i0;)a[s]=arguments[s+4];e.call(this,a),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=i,this.cause=r,this.target=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Q1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Q1.prototype._applyRule=function(t,n){var i=this;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return i.chain.push(new yt(n,t.apply(i,r),r,i.nextRuleModifiers)),i.nextRuleModifiers=[],i}};Q1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new s5(n,t.simple,t.async)),this};Q1.prototype._clone=function(){return new Q1(this.chain.slice(),this.nextRuleModifiers.slice())};Q1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Q1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(i){try{i._check(t)}catch(r){n.push(new Mn(i,t,r))}}),n};Q1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(i){throw new Mn(n,t,i)}})};Q1.prototype.testAsync=function(t){var n=this;return new Promise(function(i,r){Do(t,n.chain.slice(),i,r)})};function Do(e,t,n,i){if(t.length){var r=t.shift();r._testAsync(e).then(function(){Do(e,t,n,i)},function(o){i(new Mn(r,e,o))})}else n(e)}var _i=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function l5(e,t){return t===void 0&&(t=!1),{simple:function(n){return _i(n,t)||e.check(n)===void 0},async:function(n){return _i(n,t)||e.testAsync(n)}}}function D1(){return typeof Proxy<"u"?Bo(new Q1):nn(new Q1)}var be={};D1.extend=function(e){Object.assign(be,e)};D1.clearCustomRules=function(){be={}};function Bo(e){return new Proxy(e,{get:function(n,i){if(i in n)return n[i];var r=Bo(e._clone());if(i in tt)return r._applyModifier(tt[i],i);if(i in be)return r._applyRule(be[i],i);if(i in rn)return r._applyRule(rn[i],i)}})}function nn(e){var t=function(r,o){return Object.keys(r).forEach(function(a){o[a]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var u=nn(o._clone()),d=u._applyRule(r[a],a).apply(void 0,s);return d}}),o},n=t(rn,e),i=t(be,n);return Object.keys(tt).forEach(function(r){Object.defineProperty(i,r,{get:function(){var o=nn(i._clone());return o._applyModifier(tt[r],r)}})}),i}var tt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Re(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Re(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Re(t).every(e)}},async:function(e){return function(t){return Promise.all(Re(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(i){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&i:i}).catch(function(){return!1})}}}};function Vi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Re(e){return typeof e=="string"?e.split(""):e}var rn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||c5;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return L0("string")},boolean:function(){return L0("boolean")},undefined:function(){return L0("undefined")},null:function(){return L0("null")},array:function(){return L0("array")},object:function(){return L0("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return u5(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(i){return i.test(n)})}},optional:l5};function L0(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function c5(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function u5(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(i){var r=e[i];try{r.check((t||{})[i])}catch(o){o.target=i,n.push(o)}}),n.length>0)throw n;return!0},async:function(t){var n=[],i=Object.keys(e).map(function(r){var o=e[r];return o.testAsync((t||{})[r]).catch(function(a){a.target=r,n.push(a)})});return Promise.all(i).then(function(){if(n.length>0)throw n;return!0})}}}var t1="colors",g1="sizes",T="space",d5={gap:T,gridGap:T,columnGap:T,gridColumnGap:T,rowGap:T,gridRowGap:T,inset:T,insetBlock:T,insetBlockEnd:T,insetBlockStart:T,insetInline:T,insetInlineEnd:T,insetInlineStart:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockEnd:T,marginBlockStart:T,marginInline:T,marginInlineEnd:T,marginInlineStart:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockEnd:T,paddingBlockStart:T,paddingInline:T,paddingInlineEnd:T,paddingInlineStart:T,top:T,right:T,bottom:T,left:T,scrollMargin:T,scrollMarginTop:T,scrollMarginRight:T,scrollMarginBottom:T,scrollMarginLeft:T,scrollMarginX:T,scrollMarginY:T,scrollMarginBlock:T,scrollMarginBlockEnd:T,scrollMarginBlockStart:T,scrollMarginInline:T,scrollMarginInlineEnd:T,scrollMarginInlineStart:T,scrollPadding:T,scrollPaddingTop:T,scrollPaddingRight:T,scrollPaddingBottom:T,scrollPaddingLeft:T,scrollPaddingX:T,scrollPaddingY:T,scrollPaddingBlock:T,scrollPaddingBlockEnd:T,scrollPaddingBlockStart:T,scrollPaddingInline:T,scrollPaddingInlineEnd:T,scrollPaddingInlineStart:T,fontSize:"fontSizes",background:t1,backgroundColor:t1,backgroundImage:t1,borderImage:t1,border:t1,borderBlock:t1,borderBlockEnd:t1,borderBlockStart:t1,borderBottom:t1,borderBottomColor:t1,borderColor:t1,borderInline:t1,borderInlineEnd:t1,borderInlineStart:t1,borderLeft:t1,borderLeftColor:t1,borderRight:t1,borderRightColor:t1,borderTop:t1,borderTopColor:t1,caretColor:t1,color:t1,columnRuleColor:t1,fill:t1,outline:t1,outlineColor:t1,stroke:t1,textDecorationColor:t1,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:g1,minBlockSize:g1,maxBlockSize:g1,inlineSize:g1,minInlineSize:g1,maxInlineSize:g1,width:g1,minWidth:g1,maxWidth:g1,height:g1,minHeight:g1,maxHeight:g1,flexBasis:g1,gridTemplateColumns:g1,gridTemplateRows:g1,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"},f5=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Q0=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(o=>JSON.stringify(o,f5))(t);return r in e?e[r]:e[r]=n(t,...i)}},w0=Symbol.for("sxs.internal"),Ln=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Di=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:h5}=Object.prototype,on=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),m5=/\s+(?![^()]*\))/,O0=e=>t=>e(...typeof t=="string"?String(t).split(m5):[t]),Bi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:O0((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:O0((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:O0((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:O0((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:O0((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:O0((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Lt=/([\d.]+)([^]*)/,p5=(e,t)=>e.length?e.reduce((n,i)=>(n.push(...t.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),n),[]):t,x5=(e,t)=>e in k5&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${on(e)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${on(e)}:${i}fit-content`)+o):String(t),k5={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},s0=e=>e?e+"-":"",jo=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,a,s)=>a=="$"==!!o?i:(r||a=="--"?"calc(":"")+"var(--"+(a==="$"?s0(t)+(s.includes("$")?"":s0(n))+s.replace(/\$/g,"-"):s)+")"+(r||a=="--"?"*"+(r||"")+(o||"1")+")":"")),g5=/\s*,\s*(?![^()]*\))/,C5=Object.prototype.toString,I0=(e,t,n,i,r)=>{let o,a,s;const l=(u,d,f)=>{let m,k;const p=g=>{for(m in g){const y=m.charCodeAt(0)===64,b=y&&Array.isArray(g[m])?g[m]:[g[m]];for(k of b){const w=/[A-Z]/.test(x=m)?x:x.replace(/-[^]/g,S=>S[1].toUpperCase()),E=typeof k=="object"&&k&&k.toString===C5&&(!i.utils[w]||!d.length);if(w in i.utils&&!E){const S=i.utils[w];if(S!==a){a=S,p(S(k)),a=null;continue}}else if(w in Bi){const S=Bi[w];if(S!==s){s=S,p(S(k)),s=null;continue}}if(y&&(C=m.slice(1)in i.media?"@media "+i.media[m.slice(1)]:m,m=C.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(S,A,_,G,B,D)=>{const V=Lt.test(A),R=.0625*(V?-1:1),[P,$]=V?[G,A]:[A,G];return"("+(_[0]==="="?"":_[0]===">"===V?"max-":"min-")+P+":"+(_[0]!=="="&&_.length===1?$.replace(Lt,(j,L,Z)=>Number(L)+R*(_===">"?1:-1)+Z):$)+(B?") and ("+(B[0]===">"?"min-":"max-")+P+":"+(B.length===1?D.replace(Lt,(j,L,Z)=>Number(L)+R*(B===">"?-1:1)+Z):D):"")+")"})),E){const S=y?f.concat(m):[...f],A=y?[...d]:p5(d,m.split(g5));o!==void 0&&r(ji(...o)),o=void 0,l(k,A,S)}else o===void 0&&(o=[[],d,f]),m=y||m.charCodeAt(0)!==36?m:`--${s0(i.prefix)}${m.slice(1).replace(/\$/g,"-")}`,k=E?k:typeof k=="number"?k&&w in y5?String(k)+"px":String(k):jo(x5(w,k??""),i.prefix,i.themeMap[w]),o[0].push(`${y?`${m} `:`${on(m)}:`}${k}`)}}var C,x};p(u),o!==void 0&&r(ji(...o)),o=void 0};l(e,t,n)},ji=(e,t,n)=>`${n.map(i=>`${i}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,y5={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},$i=e=>String.fromCharCode(e+(e>25?39:97)),E0=e=>(t=>{let n,i="";for(n=Math.abs(t);n>52;n=n/52|0)i=$i(n%52)+i;return $i(n%52)+i})(((t,n)=>{let i=n.length;for(;i;)t=33*t^n.charCodeAt(--i);return t})(5381,JSON.stringify(e))>>>0),ue=["themed","global","styled","onevar","resonevar","allvar","inline"],b5=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},v5=e=>{let t;const n=()=>{const{cssRules:r}=t.sheet;return[].map.call(r,(o,a)=>{const{cssText:s}=o;let l="";if(s.startsWith("--sxs"))return"";if(r[a-1]&&(l=r[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${s}`;return o.cssRules.length?`${l}${s}`:""}return s}).join("")},i=()=>{if(t){const{rules:s,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const u in s)delete s[u]}const r=Object(e).styleSheets||[];for(const s of r)if(b5(s)){for(let l=0,u=s.cssRules;u[l];++l){const d=Object(u[l]);if(d.type!==1)continue;const f=Object(u[l+1]);if(f.type!==4)continue;++l;const{cssText:m}=d;if(!m.startsWith("--sxs"))continue;const k=m.slice(14,-3).trim().split(/\s+/),p=ue[k[0]];p&&(t||(t={sheet:s,reset:i,rules:{},toString:n}),t.rules[p]={group:f,index:l,cache:new Set(k)})}if(t)break}if(!t){const s=(l,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,s(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:a}=t;for(let s=ue.length-1;s>=0;--s){const l=ue[s];if(!a[l]){const u=ue[s+1],d=a[u]?a[u].index:o.cssRules.length;o.insertRule("@media{}",d),o.insertRule(`--sxs{--sxs:${s}}`,d),a[l]={group:o.cssRules[d+1],index:d,cache:new Set([s])}}w5(a[l])}};return i(),t},w5=e=>{const t=e.group;let n=t.cssRules.length;e.apply=i=>{try{t.insertRule(i,n),++n}catch{}}},re=Symbol(),E5=Q0(),Gi=(e,t)=>E5(e,()=>(...n)=>{let i={type:null,composers:new Set};for(const r of n)if(r!=null)if(r[w0]){i.type==null&&(i.type=r[w0].type);for(const o of r[w0].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(S5(r,e));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),A5(e,i,t)}),S5=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${s0(r.prefix)}c-${E0(i)}`,a=[],s=[],l=Object.create(null),u=[];for(const m in n)l[m]=String(n[m]);if(typeof e=="object"&&e)for(const m in e){d=l,f=m,h5.call(d,f)||(l[m]="undefined");const k=e[m];for(const p in k){const g={[m]:String(p)};String(p)==="undefined"&&u.push(m);const C=k[p],x=[g,C,!Di(C)];a.push(x)}}var d,f;if(typeof t=="object"&&t)for(const m of t){let{css:k,...p}=m;k=typeof k=="object"&&k||{};for(const C in p)p[C]=String(p[C]);const g=[p,k,!Di(k)];s.push(g)}return[o,i,a,s,l,u]},A5=(e,t,n)=>{const[i,r,o,a]=_5(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function m(){for(let k=0;km.rules[k]={apply:p=>m[re].push([k,p])}),m})(n):null,l=(s||n).rules,u=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||V5;const{css:m,...k}=f,p={};for(const x in o)if(delete k[x],x in f){let y=f[x];typeof y=="object"&&y?p[x]={"@initial":o[x],...y}:(y=String(y),p[x]=y!=="undefined"||a.has(x)?y:o[x])}else p[x]=o[x];const g=new Set([...r]);for(const[x,y,b,w]of t.composers){n.rules.styled.cache.has(x)||(n.rules.styled.cache.add(x),I0(y,[`.${x}`],[],e,A=>{l.styled.apply(A)}));const E=Pi(b,p,e.media),S=Pi(w,p,e.media,!0);for(const A of E)if(A!==void 0)for(const[_,G,B]of A){const D=`${x}-${E0(G)}-${_}`;g.add(D);const V=(B?n.rules.resonevar:n.rules.onevar).cache,R=B?l.resonevar:l.onevar;V.has(D)||(V.add(D),I0(G,[`.${D}`],[],e,P=>{R.apply(P)}))}for(const A of S)if(A!==void 0)for(const[_,G]of A){const B=`${x}-${E0(G)}-${_}`;g.add(B),n.rules.allvar.cache.has(B)||(n.rules.allvar.cache.add(B),I0(G,[`.${B}`],[],e,D=>{l.allvar.apply(D)}))}}if(typeof m=="object"&&m){const x=`${i}-i${E0(m)}-css`;g.add(x),n.rules.inline.cache.has(x)||(n.rules.inline.cache.add(x),I0(m,[`.${x}`],[],e,y=>{l.inline.apply(y)}))}for(const x of String(f.className||"").trim().split(/\s+/))x&&g.add(x);const C=k.className=[...g].join(" ");return{type:t.type,className:C,selector:u,props:k,toString:()=>C,deferredInjector:s}};return Ln(d,{className:i,selector:u,[w0]:t,toString:()=>(n.rules.styled.cache.has(i)||d(),i)})},_5=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,a,s]of e){t===""&&(t=o),n.push(o),r.push(...s);for(const l in a){const u=a[l];(i[l]===void 0||u!=="undefined"||s.includes(u))&&(i[l]=u)}}return[t,n,i,new Set(r)]},Pi=(e,t,n,i)=>{const r=[];e:for(let[o,a,s]of e){if(s)continue;let l,u=0,d=!1;for(l in o){const f=o[l];let m=t[l];if(m!==f){if(typeof m!="object"||!m)continue e;{let k,p,g=0;for(const C in m){if(f===String(m[C])){if(C!=="@initial"){const x=C.slice(1);(p=p||[]).push(x in n?n[x]:C.replace(/^@media ?/,"")),d=!0}u+=g,k=!0}++g}if(p&&p.length&&(a={["@media "+p.join(", ")]:a}),!k)continue e}}}(r[u]=r[u]||[]).push([i?"cv":`${l}-${o[l]}`,a,d])}return r},V5={},D5=Q0(),B5=(e,t)=>D5(e,()=>(...n)=>{const i=()=>{for(let r of n){r=typeof r=="object"&&r||{};let o=E0(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(r["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete r["@import"]}I0(r,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return Ln(i,{toString:i})}),j5=Q0(),$5=(e,t)=>j5(e,()=>n=>{const i=`${s0(e.prefix)}k-${E0(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const o=[];I0(n,[],[],e,s=>o.push(s));const a=`@keyframes ${i}{${o.join("")}}`;t.rules.global.apply(a)}return i};return Ln(r,{get name(){return r()},toString:r})}),G5=class{constructor(e,t,n,i){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+s0(this.prefix)+s0(this.scale)+this.token}toString(){return this.computedValue}},P5=Q0(),M5=(e,t)=>P5(e,()=>(n,i)=>{i=typeof n=="object"&&n||Object(i);const r=`.${n=(n=typeof n=="string"?n:"")||`${s0(e.prefix)}t-${E0(i)}`}`,o={},a=[];for(const l in i){o[l]={};for(const u in i[l]){const d=`--${s0(e.prefix)}${l}-${u}`,f=jo(String(i[l][u]),e.prefix,l);o[l][u]=new G5(u,f,l,e.prefix),a.push(`${d}:${f}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${i===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(l)}return n};return{...o,get className(){return s()},selector:r,toString:s}}),L5=Q0(),Mi,O5=Q0(),$o=e=>{const t=(n=>{let i=!1;const r=L5(n,o=>{i=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},d={prefix:a,media:s,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...d5},utils:typeof o.utils=="object"&&o.utils||{}},f=v5(l),m={css:Gi(d,f),globalCss:B5(d,f),keyframes:$5(d,f),createTheme:M5(d,f),reset(){f.reset(),m.theme.toString()},theme:{},sheet:f,config:d,prefix:a,getCssText:f.toString,toString:f.toString};return String(m.theme=m.createTheme(u)),m});return i||r.reset(),r})(e);return t.styled=(({config:n,sheet:i})=>O5(n,()=>{const r=Gi(n,i);return(...o)=>{const a=r(...o),s=a[w0].type,l=v.forwardRef((u,d)=>{const f=u&&u.as||s,{props:m,deferredInjector:k}=a(u);return delete m.as,m.ref=d,k?v.createElement(v.Fragment,null,v.createElement(f,m),v.createElement(k,null)):v.createElement(f,m)});return l.className=a.className,l.displayName=`Styled.${s.displayName||s.name||s}`,l.selector=a.selector,l.toString=()=>a.selector,l[w0]=a[w0],l}}))(t),t},T5=()=>Mi||(Mi=$o()),Ym=(...e)=>T5().styled(...e);function R5(e,t,n){return Math.max(t,Math.min(e,n))}const m1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Li(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Oi(e,t,n,i=.15){return i===0?R5(e,t,n):en?+Li(e-n,n-t,i)+n:e}function F5(e,[t,n],[i,r]){const[[o,a],[s,l]]=e;return[Oi(t,o,a,i),Oi(n,s,l,r)]}function I5(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e){var t=I5(e,"string");return typeof t=="symbol"?t:String(t)}function V1(e,t,n){return t=H5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function c1(e){for(var t=1;t{var n,i;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(i=n.contains)===null||i===void 0?void 0:i.call(n,t.target))})}function Y5(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Mo(e){return bt(e)?Y5(e)[0]:e}function X5(e){return q5(e).map(t=>t.identifier)}function Ot(e){const t=Mo(e);return bt(e)?t.identifier:t.pointerId}function Fi(e){const t=Mo(e);return[t.clientX,t.clientY]}function Q5(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return t}function nt(e,...t){return typeof e=="function"?e(...t):e}function J5(){}function el(...e){return e.length===0?J5:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Ii(e,t){return Object.assign({},t,e||{})}const tl=32;class nl{constructor(t,n,i){this.ctrl=t,this.args=n,this.key=i,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:i,args:r}=this;n[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,i=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=i.from?nt(i.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:i,shared:r}=this;n.args=this.args;let o=0;if(t&&(n.event=t,i.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Q5(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const S=n._delta.map(Math.abs);m1.addTo(n._distance,S)}this.axisIntent&&this.axisIntent(t);const[a,s]=n._movement,[l,u]=i.threshold,{_step:d,values:f}=n;if(i.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(s)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=l&&Math.sign(a)*l),d[1]===!1&&(d[1]=Math.abs(s)>=u&&Math.sign(s)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const m=[0,0];if(i.hasCustomTransform){const[S,A]=f;m[0]=d[0]!==!1?S-d[0]:0,m[1]=d[1]!==!1?A-d[1]:0}else m[0]=d[0]!==!1?a-d[0]:0,m[1]=d[1]!==!1?s-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(m);const k=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in i&&(n._bounds=nt(i.bounds,n)),this.setup&&this.setup()),n.movement=m,this.computeOffset()));const[g,C]=n.offset,[[x,y],[b,w]]=n._bounds;n.overflow=[gy?1:0,Cw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?i.rubberband||[0,0]:[0,0];if(n.offset=F5(n._bounds,n.offset,E),n.delta=m1.sub(n.offset,k),this.computeMovement(),p&&(!n.last||o>tl)){n.delta=m1.sub(n.offset,k);const S=n.delta.map(Math.abs);m1.addTo(n.distance,S),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[S[0]/o,S[1]/o],n.timeDelta=o)}}emit(){const t=this.state,n=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const r=this.handler(c1(c1(c1({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function il([e,t],n){const i=Math.abs(e),r=Math.abs(t);if(i>r&&i>n)return"x";if(r>i&&r>n)return"y"}class rl extends nl{constructor(...t){super(...t),V1(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=m1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=m1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,i=this.config;if(!n.axis&&t){const r=typeof i.axisThreshold=="object"?i.axisThreshold[Po(t)]:i.axisThreshold;n.axis=il(n._movement,r)}n._blocked=(i.lockDirection||!!i.axis)&&!n.axis||!!i.axis&&i.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const ol=e=>e,Hi=.15,Lo={enabled(e=!0){return e},eventOptions(e,t,n){return c1(c1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Hi,Hi];case!1:return[0,0];default:return m1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return m1.toVector(e)},transform(e,t,n){const i=e||n.shared.transform;return this.hasCustomTransform=!!i,i||ol},threshold(e){return m1.toVector(e,0)}},al=0,Be=c1(c1({},Lo),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=al){return e},bounds(e={}){if(typeof e=="function")return o=>Be.bounds(e(o));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=e;return[[t,n],[i,r]]}}),Ni={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class sl extends rl{constructor(...t){super(...t),V1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),r={left:n.left-i.left+t.offset[0],right:n.right-i.right+t.offset[0],top:n.top-i.top+t.offset[1],bottom:n.bottom-i.bottom+t.offset[1]};t._bounds=Be.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=Ot(t),i._pointerActive=!0,this.computeValues(Fi(t)),this.computeInitial(),n.preventScrollAxis&&Po(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,i=this.config;if(!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const o=Fi(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=m1.sub(o,n._values),this.computeValues(o)),m1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,i=this.config;if(!n._active||!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[o,a]=n._distance;if(n.tap=o<=i.tapsThreshold&&a<=i.tapsThreshold,n.tap&&i.filterTaps)n._force=!0;else{const[s,l]=n._delta,[u,d]=n._movement,[f,m]=i.swipe.velocity,[k,p]=i.swipe.distance,g=i.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>k&&(n.swipe[0]=Math.sign(s)),x>m&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,i=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,ll(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Ni[t.key];if(n){const i=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=n(this.config.keyboardDisplacement,r),i._keyboardActive=!0,m1.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Ni&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function ll(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const je=typeof window<"u"&&window.document&&window.document.createElement;function Oo(){return je&&"ontouchstart"in window}function cl(){return Oo()||je&&window.navigator.maxTouchPoints>1}function ul(){return je&&"onpointerdown"in window}function dl(){return je&&"exitPointerLock"in window.document}function fl(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:je,gesture:fl(),touch:Oo(),touchscreen:cl(),pointer:ul(),pointerLock:dl()},hl=250,ml=180,pl=.5,xl=50,kl=250,gl=10,zi={mouse:0,touch:0,pen:8},Cl=c1(c1({},Be),{},{device(e,t,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!r?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?hl:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:i=3,axis:r=void 0}){const o=m1.toVector(e,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,o},swipe({velocity:e=pl,distance:t=xl,duration:n=kl}={}){return{velocity:this.transform(m1.toVector(e)),distance:this.transform(m1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return ml;case!1:return 0;default:return e}},axisThreshold(e){return e?c1(c1({},zi),e):zi},keyboardDisplacement(e=gl){return e}});c1(c1({},Lo),{},{device(e,t,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&i)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:i={}}){const r=a=>{const s=Ii(nt(n,a),{min:-1/0,max:1/0});return[s.min,s.max]},o=a=>{const s=Ii(nt(i,a),{min:-1/0,max:1/0});return[s.min,s.max]};return typeof n!="function"&&typeof i!="function"?[r(),o()]:a=>[r(a),o(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",m1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});const To=new Map,an=new Map;function yl(e){To.set(e.key,e.engine),an.set(e.key,e.resolver)}const bl={key:"drag",engine:sl,resolver:Cl};function vl(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function wl(e,t){if(e==null)return{};var n=vl(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}const El={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=P1.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},Sl=["target","eventOptions","window","enabled","transform"];function Ue(e={},t){const n={};for(const[i,r]of Object.entries(t))switch(typeof r){case"function":n[i]=r.call(n,e[i],i,e);break;case"object":n[i]=Ue(e[i],r);break;case"boolean":r&&(n[i]=e[i]);break}return n}function Al(e,t,n={}){const i=e,{target:r,eventOptions:o,window:a,enabled:s,transform:l}=i,u=wl(i,Sl);if(n.shared=Ue({target:r,eventOptions:o,window:a,enabled:s,transform:l},El),t){const d=an.get(t);n[t]=Ue(c1({shared:n.shared},u),d)}else for(const d in u){const f=an.get(d);f&&(n[d]=Ue(c1({shared:n.shared},u[d]),f))}return n}class Ro{constructor(t,n){V1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,i,r,o){const a=this._listeners,s=K5(n,i),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=c1(c1({},l),o);t.addEventListener(s,r,u);const d=()=>{t.removeEventListener(s,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class _l{constructor(){V1(this,"_timeouts",new Map)}add(t,n,i=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,i,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Vl{constructor(t){V1(this,"gestures",new Set),V1(this,"_targetEventStore",new Ro(this)),V1(this,"gestureEventStores",{}),V1(this,"gestureTimeoutStores",{}),V1(this,"handlers",{}),V1(this,"config",{}),V1(this,"pointerIds",new Set),V1(this,"touchIds",new Set),V1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Dl(this,t)}setEventIds(t){if(bt(t))return this.touchIds=new Set(X5(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Al(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,i={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=Zi(i,s.eventOptions,!!r);if(s.enabled){const u=To.get(a);new u(this,t,a).bind(l)}}const o=Zi(i,n.eventOptions,!!r);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a](c1(c1({},this.state.shared),{},{event:s,args:t})),void 0,!0)}for(const o in i)i[o]=el(...i[o]);if(!r)return i;for(const o in i){const{device:a,capture:s,passive:l}=W5(o);this._targetEventStore.add(r,a,"",i[o],{capture:s,passive:l})}}}}function T0(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ro(e,t),e.gestureTimeoutStores[t]=new _l}function Dl(e,t){t.drag&&T0(e,"drag"),t.wheel&&T0(e,"wheel"),t.scroll&&T0(e,"scroll"),t.move&&T0(e,"move"),t.pinch&&T0(e,"pinch"),t.hover&&T0(e,"hover")}const Zi=(e,t,n)=>(i,r,o,a={},s=!1)=>{var l,u;const d=(l=a.capture)!==null&&l!==void 0?l:t.capture,f=(u=a.passive)!==null&&u!==void 0?u:t.passive;let m=s?i:Z5(i,r,d);n&&f&&(m+="Passive"),e[m]=e[m]||[],e[m].push(o)};function Bl(e,t={},n,i){const r=v.useMemo(()=>new Vl(e),[]);if(r.applyHandlers(e,i),r.applyConfig(t,n),v.useEffect(r.effect.bind(r)),v.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function jl(e,t){return yl(bl),Bl({drag:e},t||{},"drag")}function e0(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fo(e,t=[]){let n=[];function i(o,a){const s=h.createContext(a),l=n.length;n=[...n,a];function u(f){const{scope:m,children:k,...p}=f,g=(m==null?void 0:m[e][l])||s,C=h.useMemo(()=>p,Object.values(p));return h.createElement(g.Provider,{value:C},k)}function d(f,m){const k=(m==null?void 0:m[e][l])||s,p=h.useContext(k);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const r=()=>{const o=n.map(a=>h.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[i,$l(r,...t)]}function $l(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const a=i.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function J0(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...n)},[])}function Gl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e);h.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i)},[n,t])}const sn="dismissableLayer.update",Pl="dismissableLayer.pointerDownOutside",Ml="dismissableLayer.focusOutside";let Ui;const Ll=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ol=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=h.useContext(Ll),[f,m]=h.useState(null),k=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=h.useState({}),g=X0(t,_=>m(_)),C=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=C.indexOf(x),b=f?C.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,S=Tl(_=>{const G=_.target,B=[...d.branches].some(D=>D.contains(G));!E||B||(o==null||o(_),s==null||s(_),_.defaultPrevented||l==null||l())},k),A=Rl(_=>{const G=_.target;[...d.branches].some(D=>D.contains(G))||(a==null||a(_),s==null||s(_),_.defaultPrevented||l==null||l())},k);return Gl(_=>{b===d.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},k),h.useEffect(()=>{if(f)return i&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ui=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wi(),()=>{i&&d.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=Ui)}},[f,k,i,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wi())},[f,d]),h.useEffect(()=>{const _=()=>p({});return document.addEventListener(sn,_),()=>document.removeEventListener(sn,_)},[]),h.createElement(j0.div,F({},u,{ref:g,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:e0(e.onFocusCapture,A.onFocusCapture),onBlurCapture:e0(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:e0(e.onPointerDownCapture,S.onPointerDownCapture)}))});function Tl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1),r=h.useRef(()=>{});return h.useEffect(()=>{const o=s=>{if(s.target&&!i.current){let u=function(){Io(Pl,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Rl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1);return h.useEffect(()=>{const r=o=>{o.target&&!i.current&&Io(Ml,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wi(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function Io(e,t,n,{discrete:i}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?r5(r,o):r.dispatchEvent(o)}const U0=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Fl=Vs["useId".toString()]||(()=>{});let Il=0;function Hl(e){const[t,n]=h.useState(Fl());return U0(()=>{e||n(i=>i??String(Il++))},[e]),e||(t?`radix-${t}`:"")}const Nl=h.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...o}=e;return h.createElement(j0.svg,F({},o,{ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),zl=Nl;function Zl(e){const[t,n]=h.useState(void 0);return U0(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}const Ho="Popper",[No,zo]=Fo(Ho),[Ul,Zo]=No(Ho),Wl=e=>{const{__scopePopper:t,children:n}=e,[i,r]=h.useState(null);return h.createElement(Ul,{scope:t,anchor:i,onAnchorChange:r},n)},Kl="PopperAnchor",ql=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,o=Zo(Kl,n),a=h.useRef(null),s=X0(t,a);return h.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||a.current)}),i?null:h.createElement(j0.div,F({},r,{ref:s}))}),Uo="PopperContent",[Yl,Xl]=No(Uo),Ql=h.forwardRef((e,t)=>{var n,i,r,o,a,s,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:k="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:x=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:S,...A}=e,_=Zo(Uo,d),[G,B]=h.useState(null),D=X0(t,a1=>B(a1)),[V,R]=h.useState(null),P=Zl(V),$=(n=P==null?void 0:P.width)!==null&&n!==void 0?n:0,j=(i=P==null?void 0:P.height)!==null&&i!==void 0?i:0,L=f+(k!=="center"?"-"+k:""),Z=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},U=Array.isArray(x)?x:[x],J=U.length>0,W={padding:Z,boundary:U.filter(n4),altBoundary:J},{refs:M,floatingStyles:X,placement:e1,isPositioned:Q,middlewareData:d1}=E3({strategy:"fixed",placement:L,whileElementsMounted:(...a1)=>b3(...a1,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[e3({mainAxis:m+j,alignmentAxis:p}),C&&t3({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?n3():void 0,...W}),C&&X2({...W}),i3({...W,apply:({elements:a1,rects:Z1,availableWidth:U1,availableHeight:W1})=>{const{width:G0,height:C0}=Z1.reference,K1=a1.floating.style;K1.setProperty("--radix-popper-available-width",`${U1}px`),K1.setProperty("--radix-popper-available-height",`${W1}px`),K1.setProperty("--radix-popper-anchor-width",`${G0}px`),K1.setProperty("--radix-popper-anchor-height",`${C0}px`)}}),V&&w3({element:V,padding:g}),i4({arrowWidth:$,arrowHeight:j}),w&&Q2({strategy:"referenceHidden",...W})]}),[S1,A1]=Wo(e1),j1=J0(S);U0(()=>{Q&&(j1==null||j1())},[Q,j1]);const R1=(r=d1.arrow)===null||r===void 0?void 0:r.x,d0=(o=d1.arrow)===null||o===void 0?void 0:o.y,f0=((a=d1.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,r1]=h.useState();return U0(()=>{G&&r1(window.getComputedStyle(G).zIndex)},[G]),h.createElement("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(s=d1.transformOrigin)===null||s===void 0?void 0:s.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},h.createElement(Yl,{scope:d,placedSide:S1,onArrowChange:R,arrowX:R1,arrowY:d0,shouldHideArrow:f0},h.createElement(j0.div,F({"data-side":S1,"data-align":A1},A,{ref:D,style:{...A.style,animation:Q?void 0:"none",opacity:(u=d1.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Jl="PopperArrow",e4={top:"bottom",right:"left",bottom:"top",left:"right"},t4=h.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,o=Xl(Jl,i),a=e4[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(zl,F({},r,{ref:n,style:{...r.style,display:"block"}})))});function n4(e){return e!==null}const i4=e=>({name:"transformOrigin",options:e,fn(t){var n,i,r,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,k=f?0:e.arrowHeight,[p,g]=Wo(s),C={start:"0%",center:"50%",end:"100%"}[g],x=((i=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&i!==void 0?i:0)+m/2,y=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+k/2;let b="",w="";return p==="bottom"?(b=f?C:`${x}px`,w=`${-k}px`):p==="top"?(b=f?C:`${x}px`,w=`${l.floating.height+k}px`):p==="right"?(b=`${-k}px`,w=f?C:`${y}px`):p==="left"&&(b=`${l.floating.width+k}px`,w=f?C:`${y}px`),{data:{x:b,y:w}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}const r4=Wl,o4=ql,a4=Ql,s4=t4;function l4(e,t){return h.useReducer((n,i)=>{const r=t[n][i];return r??n},e)}const Ko=e=>{const{present:t,children:n}=e,i=c4(t),r=typeof n=="function"?n({present:i.isPresent}):h.Children.only(n),o=X0(i.ref,r.ref);return typeof n=="function"||i.isPresent?h.cloneElement(r,{ref:o}):null};Ko.displayName="Presence";function c4(e){const[t,n]=h.useState(),i=h.useRef({}),r=h.useRef(e),o=h.useRef("none"),a=e?"mounted":"unmounted",[s,l]=l4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Fe(i.current);o.current=s==="mounted"?u:"none"},[s]),U0(()=>{const u=i.current,d=r.current;if(d!==e){const m=o.current,k=Fe(u);e?l("MOUNT"):k==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==k?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),U0(()=>{if(t){const u=f=>{const k=Fe(i.current).includes(f.animationName);f.target===t&&k&&pt.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(o.current=Fe(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(i.current=getComputedStyle(u)),n(u)},[])}}function Fe(e){return(e==null?void 0:e.animationName)||"none"}function u4({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,r]=d4({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:i,s=J0(n),l=h.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else r(u)},[o,e,r,s]);return[a,l]}function d4({defaultProp:e,onChange:t}){const n=h.useState(e),[i]=n,r=h.useRef(i),o=J0(t);return h.useEffect(()=>{r.current!==i&&(o(i),r.current=i)},[i,r,o]),n}const f4=h.forwardRef((e,t)=>h.createElement(j0.span,F({},e,{ref:t,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",...e.style}}))),h4=f4,[vt,Xm]=Fo("Tooltip",[zo]),wt=zo(),m4="TooltipProvider",ln="tooltip.open",[Qm,On]=vt(m4),Tn="Tooltip",[p4,Et]=vt(Tn),x4=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=On(Tn,e.__scopeTooltip),u=wt(t),[d,f]=h.useState(null),m=Hl(),k=h.useRef(0),p=a??l.disableHoverableContent,g=s??l.delayDuration,C=h.useRef(!1),[x=!1,y]=u4({prop:i,defaultProp:r,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ln))):l.onClose(),o==null||o(A)}}),b=h.useMemo(()=>x?C.current?"delayed-open":"instant-open":"closed",[x]),w=h.useCallback(()=>{window.clearTimeout(k.current),C.current=!1,y(!0)},[y]),E=h.useCallback(()=>{window.clearTimeout(k.current),y(!1)},[y]),S=h.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{C.current=!0,y(!0)},g)},[g,y]);return h.useEffect(()=>()=>window.clearTimeout(k.current),[]),h.createElement(r4,u,h.createElement(p4,{scope:t,contentId:m,open:x,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayed?S():w()},[l.isOpenDelayed,S,w]),onTriggerLeave:h.useCallback(()=>{p?E():window.clearTimeout(k.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},Ki="TooltipTrigger",k4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Et(Ki,n),o=On(Ki,n),a=wt(n),s=h.useRef(null),l=X0(t,s,r.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(o4,F({asChild:!0},a),h.createElement(j0.button,F({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:l,onPointerMove:e0(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:e0(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:e0(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:e0(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:e0(e.onBlur,r.onClose),onClick:e0(e.onClick,r.onClose)})))}),g4="TooltipPortal",[Jm,C4]=vt(g4,{forceMount:void 0}),ve="TooltipContent",y4=h.forwardRef((e,t)=>{const n=C4(ve,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=e,a=Et(ve,e.__scopeTooltip);return h.createElement(Ko,{present:i||a.open},a.disableHoverableContent?h.createElement(qo,F({side:r},o,{ref:t})):h.createElement(b4,F({side:r},o,{ref:t})))}),b4=h.forwardRef((e,t)=>{const n=Et(ve,e.__scopeTooltip),i=On(ve,e.__scopeTooltip),r=h.useRef(null),o=X0(t,r),[a,s]=h.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=i,m=h.useCallback(()=>{s(null),f(!1)},[f]),k=h.useCallback((p,g)=>{const C=p.currentTarget,x={x:p.clientX,y:p.clientY},y=A4(x,C.getBoundingClientRect()),b=_4(x,y),w=V4(g.getBoundingClientRect()),E=B4([...b,...w]);s(E),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(l&&d){const p=C=>k(C,d),g=C=>k(C,l);return l.addEventListener("pointerleave",p),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",p),d.removeEventListener("pointerleave",g)}}},[l,d,k,m]),h.useEffect(()=>{if(a){const p=g=>{const C=g.target,x={x:g.clientX,y:g.clientY},y=(l==null?void 0:l.contains(C))||(d==null?void 0:d.contains(C)),b=!D4(x,a);y?m():b&&(m(),u())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,d,a,u,m]),h.createElement(qo,F({},e,{ref:o}))}),[v4,w4]=vt(Tn,{isInside:!1}),qo=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Et(ve,n),u=wt(n),{onClose:d}=l;return h.useEffect(()=>(document.addEventListener(ln,d),()=>document.removeEventListener(ln,d)),[d]),h.useEffect(()=>{if(l.trigger){const f=m=>{const k=m.target;k!=null&&k.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),h.createElement(Ol,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(a4,F({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.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)"}}),h.createElement(Ao,null,i),h.createElement(v4,{scope:n,isInside:!0},h.createElement(h4,{id:l.contentId,role:"tooltip"},r||i))))}),E4="TooltipArrow",S4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=wt(n);return w4(E4,n).isInside?null:h.createElement(s4,F({},r,i,{ref:t}))});function A4(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function _4(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function V4(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function D4(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,a=t.length-1;oi!=d>i&&n<(u-s)*(i-l)/(d-l)+s&&(r=!r)}return r}function B4(e){const t=e.slice();return t.sort((n,i)=>n.xi.x?1:n.yi.y?1:0),j4(t)}function j4(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const $4=x4,G4=k4,P4=y4,M4=S4;function L4(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function n1(e,t){if(e==null)return{};var n=L4(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}let l1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(l1||(l1={}));const O4={[l1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[l1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[l1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[l1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[l1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[l1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[l1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[l1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[l1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Yo(e,t,...n){const[i,...r]=O4[t](...n);console[e]("LEVA: "+i,...r)}const t0=Yo.bind(null,"warn"),T4=Yo.bind(null,"log"),R4=["value"],F4=["schema"],I4=["value"],Xo=[],_0={};function qi(e){let{value:t}=e,n=n1(e,R4);for(let i of Xo){const r=i(t,n);if(r)return r}}function u0(e,t){let{schema:n}=t,i=n1(t,F4);if(e in _0){t0(l1.ALREADY_REGISTERED_TYPE,e);return}Xo.push((r,o)=>n(r,o)&&e),_0[e]=i}function Tt(e,t,n,i){const{normalize:r}=_0[e];if(r)return r(t,n,i);if(typeof t!="object"||!("value"in t))return{value:t};const{value:o}=t,a=n1(t,I4);return{value:o,settings:a}}function H4(e,t,n,i,r,o){const{sanitize:a}=_0[e];return a?a(t,n,i,r,o):t}function Yi(e,t,n){const{format:i}=_0[e];return i?i(t,n):t}function N4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=h0(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Z4=Math.log(10);function Qi(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Z4)+1,i=Math.floor(Math.log10(Math.abs(e))),r=Math.pow(10,i-n);return Math.max(r,.001)}const it=(e,t,n)=>n===t?0:(k0(e,t,n)-t)/(n-t),rt=(e,t,n)=>e*(n-t)+t,U4=()=>"_"+Math.random().toString(36).substr(2,9),Ji=/\(([0-9+\-*/^ .]+)\)/,er=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,tr=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,nr=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,ir=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,rr=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function h0(e){if(isNaN(Number(e)))if(Ji.test(e)){const t=e.replace(Ji,(n,i)=>String(h0(i)));return h0(t)}else if(er.test(e)){const t=e.replace(er,(n,i,r)=>String(Math.pow(Number(i),Number(r))));return h0(t)}else if(tr.test(e)){const t=e.replace(tr,(n,i,r)=>String(Number(i)*Number(r)));return h0(t)}else if(nr.test(e)){const t=e.replace(nr,(n,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return h0(t)}else if(ir.test(e)){const t=e.replace(ir,(n,i,r)=>String(Number(i)+Number(r)));return h0(t)}else if(rr.test(e)){const t=e.replace(rr,(n,i,r)=>String(Number(i)-Number(r)));return h0(t)}else return Number(e);return Number(e)}function W4(e,t){return t.reduce((n,i)=>(e&&e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}function K4(e,t){const n=z({},e);return t.forEach(i=>i in e&&delete n[i]),n}function q4(e,t){return e.reduce((n,i,r)=>Object.assign(n,{[t[r]]:i}),{})}function Qo(e){return Object.prototype.toString.call(e)==="[object Object]"}const Y4=e=>Qo(e)&&Object.keys(e).length===0;let H1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(H1||(H1={}));let N1;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(N1||(N1={}));const X4=["type","__customInput"],Q4=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],J4=["type"];function Jo(e,t,n={},i){var r,o;if(typeof e!="object"||Array.isArray(e))return{type:i,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:S}=e,A=n1(e,X4);return Jo(S,t,A,E)}const{render:a,label:s,optional:l,order:u=0,disabled:d,hint:f,onChange:m,onEditStart:k,onEditEnd:p,transient:g}=e,C=n1(e,Q4),x=z({render:a,key:t,label:s??t,hint:f,transient:g??!!m,onEditStart:k,onEditEnd:p,disabled:d,optional:l,order:u},n);let{type:y}=C,b=n1(C,J4);if(y=i??y,y in H1)return{type:y,input:b,options:x};let w;return i&&Qo(b)&&"value"in b?w=b.value:w=Y4(b)?void 0:b,{type:y,input:w,options:z(z({},x),{},{onChange:m,optional:(r=x.optional)!==null&&r!==void 0?r:!1,disabled:(o=x.disabled)!==null&&o!==void 0?o:!1})}}function e6(e,t,n,i){const r=Jo(e,t),{type:o,input:a,options:s}=r;if(o)return o in H1?r:{type:o,input:Tt(o,a,n,i),options:s};let l=qi(a);return l?{type:l,input:Tt(l,a,n,i),options:s}:(l=qi({value:a}),l?{type:l,input:Tt(l,{value:a},n,i),options:s}:!1)}function or(e,t,n,i,r){const{value:o,type:a,settings:s}=e;e.value=ea({type:a,value:o,settings:s},t,n,i),e.fromPanel=r}const t6=function(t,n,i){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=i};function ea({type:e,value:t,settings:n},i,r,o){const a=e!=="SELECT"&&typeof i=="function"?i(t):i;let s;try{s=H4(e,a,n,t,r,o)}catch(l){throw new t6(`The value \`${i}\` did not result in a correct value.`,t,l)}return ye(s,t)?t:s}const ta=(e,t,n=!1)=>{let i=0;return function(){const r=arguments,o=n&&!i,a=()=>e.apply(this,r);window.clearTimeout(i),i=window.setTimeout(a,t),o&&a()}},na=e=>e.shiftKey?5:e.altKey?1/5:1;function n6(e,t){const n=console.error;console.error=()=>{},F0.render(e,t),console.error=n}const i6=["value"],r6=["min","max"],o6=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ia=(e,{min:t=-1/0,max:n=1/0,suffix:i})=>{const r=parseFloat(e);if(e===""||isNaN(r))throw Error("Invalid number");const o=k0(r,t,n);return i?o+i:o},a6=(e,{pad:t=0,suffix:n})=>{const i=parseFloat(e).toFixed(t);return n?i+n:i},ra=e=>{let{value:t}=e,n=n1(e,i6);const{min:i=-1/0,max:r=1/0}=n,o=n1(n,r6);let a=parseFloat(t);const s=typeof t=="string"?t.substring((""+a).length):void 0;a=k0(a,i,r);let l=n.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(a-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-a)/100).toPrecision(1)));const u=l?Qi(l)*10:Qi(a);l=l||u/10;const d=Math.round(k0(Math.log10(1/u),0,2));return{value:s?a+s:a,settings:z({initialValue:a,step:l,pad:d,min:i,max:r,suffix:s},o)}},oa=(e,{step:t,initialValue:n})=>{const i=Math.round((e-n)/t);return n+i*t};var aa=Object.freeze({__proto__:null,schema:o6,sanitize:ia,format:a6,normalize:ra,sanitizeStep:oa});function u1(){return u1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({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 Ie(e,t){const[n,i]=e.split(" "),r={};return n!=="none"&&(r.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),i&&(r.backgroundColor=i),r}const oe={$inputStyle:()=>e=>Ie(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Ie(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Ie(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Ie(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:H,css:ep,createTheme:l6,globalCss:c6,keyframes:tp}=$o({prefix:"leva",theme:ua(),utils:z(z({},oe),{},{$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:e=>({"&:focus":oe.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":oe.$focusStyle()(e)}),$hover:e=>({"&:hover":oe.$hoverStyle()(e)}),$active:e=>({"&:active":oe.$activeStyle()(e)})})}),u6=c6({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function d6(e){const t=ua();if(!e)return{theme:t,className:""};Object.keys(e).forEach(i=>{Object.assign(t[i],e[i])});const n=l6(t);return{theme:t,className:n.className}}function n0(e,t){const{theme:n}=h.useContext(Rn);if(!(e in n)||!(t in n[e]))return t0(l1.THEME_ERROR,e,t),"";let i=t;for(;;){let r=n[e][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const da=H("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),fa=H("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${da}`]:{paddingLeft:0}}),f6=H(fa,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),h6=H("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),m6=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],p6=["onUpdate"];function Fn(e){let{innerLabel:t,value:n,onUpdate:i,onChange:r,onKeyDown:o,type:a,id:s,inputType:l="text",rows:u=0}=e,d=n1(e,m6);const{id:f,emitOnEditStart:m,emitOnEditEnd:k,disabled:p}=x1(),g=s||f,C=h.useRef(null),x=u>0,y=x?"textarea":"input",b=h.useCallback(S=>A=>{const _=A.currentTarget.value;S(_)},[]);v.useEffect(()=>{const S=C.current,A=b(_=>{i(_),k()});return S==null||S.addEventListener("blur",A),()=>S==null?void 0:S.removeEventListener("blur",A)},[b,i,k]);const w=h.useCallback(S=>{S.key==="Enter"&&b(i)(S)},[b,i]),E=Object.assign({as:y},x?{rows:u}:{},d);return v.createElement(h6,{textArea:x},t&&typeof t=="string"?v.createElement(fa,null,t):t,v.createElement(da,u1({levaType:a,ref:C,id:g,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(r),onFocus:()=>m(),onKeyPress:w,onKeyDown:o,disabled:p},E)))}function x6(e){let{onUpdate:t}=e,n=n1(e,p6);const i=h.useCallback(o=>t(z4(o)),[t]),r=h.useCallback(o=>{const a=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(a){o.preventDefault();const s=o.altKey?.1:o.shiftKey?10:1;t(l=>parseFloat(l)+a*s)}},[t]);return v.createElement(Fn,u1({},n,{onUpdate:i,onKeyDown:r,type:"number"}))}const ot=H("div",{}),cn=H("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"}}]}),k6=H("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 + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & > svg`]:{opacity:1}}),ha=H("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"},[`> ${ot}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ma=H("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${ha} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),pa=H(ma,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),g6=H("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"}}}}),C6=H("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"}}),un=H("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),y6=H("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${un}`]:{pointerEvents:"auto"}}}}}),xa=H("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),b6=H("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),v6=H(M4,{fill:"$toolTipBackground"});function In({children:e}){const{className:t}=h.useContext(Rn);return v.createElement(a5,{className:t},e)}const w6=["align"];function E6(){const{id:e,disable:t,disabled:n}=x1();return v.createElement(v.Fragment,null,v.createElement(C6,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),v.createElement("label",{htmlFor:e+"__disable"}))}function S6(e){const{id:t,optional:n,hint:i}=x1(),r=e.htmlFor||(t?{htmlFor:t}:null),o=!i&&typeof e.children=="string"?{title:e.children}:null;return v.createElement(v.Fragment,null,n&&v.createElement(E6,null),i!==void 0?v.createElement($4,null,v.createElement(G4,{asChild:!0},v.createElement(un,u1({},r,e))),v.createElement(P4,{side:"top",sideOffset:2},v.createElement(b6,null,i,v.createElement(v6,null)))):v.createElement(un,u1({},r,o,e)))}function z1(e){let{align:t}=e,n=n1(e,w6);const{value:i,label:r,key:o,disabled:a}=x1(),{hideCopyButton:s}=s6(),l=!s&&o!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i??""})),d(!0)}catch{t0(l1.CLIPBOARD_ERROR,{[o]:i})}};return v.createElement(g6,{align:t,onPointerLeave:()=>d(!1)},v.createElement(S6,n),l&&!a&&v.createElement("div",{title:`Click to copy ${typeof r=="string"?r:o} value`},u?v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),v.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"})):v.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),v.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 A6=["toggled"],_6=H("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hn(e){let{toggled:t}=e,n=n1(e,A6);return v.createElement(_6,u1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),v.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 V6=["input"];function T1(e){let{input:t}=e,n=n1(e,V6);return t?v.createElement(pa,n):v.createElement(ma,n)}function ka({value:e,type:t,settings:n,setValue:i}){const[r,o]=h.useState(Yi(t,e,n)),a=h.useRef(e),s=h.useRef(n);s.current=n;const l=h.useCallback(d=>o(Yi(t,d,s.current)),[t]),u=h.useCallback(d=>{try{i(d)}catch(f){const{type:m,previousValue:k}=f;if(m!=="LEVA_ERROR")throw f;l(k)}},[l,i]);return h.useEffect(()=>{ye(e,a.current)||l(e),a.current=e},[e,l]),{displayValue:r,onChange:o,onUpdate:u}}function Ge(e,t){const{emitOnEditStart:n,emitOnEditEnd:i}=x1();return jl(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const o=e(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),i==null||i()),o},t)}function D6(e){const t=h.useRef(null),n=h.useRef(null),i=h.useRef(!1);return h.useEffect(()=>{const r=ta(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ga(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(i=>{Object.assign(t.current,i),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const B6=["__refCount"],Rt=(e,t)=>{if(!e[t])return null;const n=e[t];return n1(n,B6)};function j6(e){const t=$e(),[n,i]=h.useState(Rt(t.getData(),e)),r=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),o=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),a=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),s=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{i(Rt(t.getData(),e));const u=t.useStore.subscribe(d=>Rt(d.data,e),i,{equalityFn:De});return()=>u()},[t,e]),[n,{set:r,setSettings:o,disable:a,storeId:t.storeId,emitOnEditStart:s,emitOnEditEnd:l}]}const $6=H("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Ca=H("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),dn=H("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)))"}}}}),ya=H("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ba=H("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function G6({value:e,min:t,max:n,onDrag:i,step:r,initialValue:o}){const a=h.useRef(null),s=h.useRef(null),l=h.useRef(0),u=n0("sizes","scrubberWidth"),d=Ge(({event:m,first:k,xy:[p],movement:[g],memo:C})=>{if(k){const{width:y,left:b}=a.current.getBoundingClientRect();l.current=y-parseFloat(u),C=(m==null?void 0:m.target)===s.current?e:rt((p-b)/y,t,n)}const x=C+rt(g/l.current,0,n-t);return i(oa(x,{step:r,initialValue:o})),C}),f=it(e,t,n);return v.createElement(ya,u1({ref:a},d()),v.createElement(Ca,null,v.createElement(ba,{style:{left:0,right:`${(1-f)*100}%`}})),v.createElement(dn,{ref:s,style:{left:`calc(${f} * (100% - ${u}))`}}))}const P6=v.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:i})=>{const[r,o]=h.useState(!1),a=Ge(({active:s,delta:[l],event:u,memo:d=0})=>(o(s),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*na(u)),d=0),d));return v.createElement(f6,u1({dragging:r,title:e.length>1?e:""},a()),e.slice(0,i))});function va({label:e,id:t,displayValue:n,onUpdate:i,onChange:r,settings:o,innerLabelTrim:a=1}){const s=a>0&&v.createElement(P6,{label:e,step:o.step,onUpdate:i,innerLabelTrim:a});return v.createElement(x6,{id:t,value:String(n),onUpdate:i,onChange:r,innerLabel:s})}function M6(){const e=x1(),{label:t,value:n,onUpdate:i,settings:r,id:o}=e,{min:a,max:s}=r,l=s!==1/0&&a!==-1/0;return v.createElement(T1,{input:!0},v.createElement(z1,null,t),v.createElement($6,{hasRange:l},l&&v.createElement(G6,u1({value:parseFloat(n),onDrag:i},r)),v.createElement(va,u1({},e,{id:o,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:L6}=aa,O6=n1(aa,["sanitizeStep"]);var T6=z({component:M6},O6);const R6=(e,t)=>D1().schema({options:D1().passesAnyOf(D1().object(),D1().array())}).test(t),F6=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},I6=(e,{values:t})=>t.indexOf(e),H6=e=>{let{value:t,options:n}=e,i,r;return Array.isArray(n)?(r=n,i=n.map(o=>String(o))):(r=Object.values(n),i=Object.keys(n)),"value"in e?r.includes(t)||(i.unshift(String(t)),r.unshift(t)):t=r[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:i,values:r}}};var N6=Object.freeze({__proto__:null,schema:R6,sanitize:F6,format:I6,normalize:H6});const z6=H("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),fn=H("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Z6=H("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${fn}:focus + &`]:{$focusStyle:""},[`${fn}:hover + &`]:{$hoverStyle:""}});function U6({displayValue:e,value:t,onUpdate:n,id:i,settings:r,disabled:o}){const{keys:a,values:s}=r,l=h.useRef();return t===s[e]&&(l.current=a[e]),v.createElement(z6,null,v.createElement(fn,{id:i,value:e,onChange:u=>n(s[Number(u.currentTarget.value)]),disabled:o},a.map((u,d)=>v.createElement("option",{key:u,value:d},u))),v.createElement(Z6,null,l.current),v.createElement(Hn,{toggled:!0}))}function W6(){const{label:e,value:t,displayValue:n,onUpdate:i,id:r,disabled:o,settings:a}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(U6,{id:r,value:t,displayValue:n,onUpdate:i,settings:a,disabled:o}))}var K6=z({component:W6},N6);const q6=e=>D1().string().test(e),Y6=e=>{if(typeof e!="string")throw Error("Invalid string");return e},X6=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Q6=Object.freeze({__proto__:null,schema:q6,sanitize:Y6,normalize:X6});const J6=["displayValue","onUpdate","onChange","editable"],e8=H("div",{whiteSpace:"pre-wrap"});function t8(e){let{displayValue:t,onUpdate:n,onChange:i,editable:r=!0}=e,o=n1(e,J6);return r?v.createElement(Fn,u1({value:t,onUpdate:n,onChange:i},o)):v.createElement(e8,null,t)}function n8(){const{label:e,settings:t,displayValue:n,onUpdate:i,onChange:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(t8,u1({displayValue:n,onUpdate:i,onChange:r},t)))}var i8=z({component:n8},Q6);const r8=e=>D1().boolean().test(e),o8=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var a8=Object.freeze({__proto__:null,schema:r8,sanitize:o8});const s8=H("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 l8({value:e,onUpdate:t,id:n,disabled:i}){return v.createElement(s8,null,v.createElement("input",{id:n,type:"checkbox",checked:e,onChange:r=>t(r.currentTarget.checked),disabled:i}),v.createElement("label",{htmlFor:n},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function c8(){const{label:e,value:t,onUpdate:n,disabled:i,id:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(l8,{value:t,onUpdate:n,id:r,disabled:i}))}var u8=z({component:c8},a8);const d8=["locked"];function f8({value:e,id:t,valueKey:n,settings:i,onUpdate:r,innerLabelTrim:o}){const a=h.useRef(e[n]);a.current=e[n];const s=h.useCallback(u=>r({[n]:ea({type:"NUMBER",value:a.current,settings:i},u)}),[r,i,n]),l=ka({type:"NUMBER",value:e[n],settings:i,setValue:s});return v.createElement(va,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const h8=H("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function m8(e){let{locked:t}=e,n=n1(e,d8);return v.createElement("svg",u1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?v.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"}):v.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 Nn({value:e,onUpdate:t,settings:n,innerLabelTrim:i}){const{id:r,setSettings:o}=x1(),{lock:a,locked:s}=n;return v.createElement(h8,{withLock:a},a&&v.createElement(m8,{locked:s,onClick:()=>o({locked:!s})}),Object.keys(e).map((l,u)=>v.createElement(f8,{id:u===0?r:`${r}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:i})))}const wa=(e,t)=>{const n={};let i=0,r=1/0;Object.entries(e).forEach(([o,a])=>{n[o]=ra(z({value:a},t[o])).settings,i=Math.max(i,n[o].step),r=Math.min(r,n[o].pad)});for(let o in n){const{step:a,min:s,max:l}=t[o]||{};!isFinite(a)&&(!isFinite(s)||!isFinite(l))&&(n[o].step=i,n[o].pad=r)}return n},p8=["lock"],x8=["value"];function k8(e){const t=D1().array().length(e).every.number(),n=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===e&&r.every(o=>isFinite(o))};return i=>t.test(i)||n(i)}function g8(e){return Array.isArray(e)?"array":"object"}function me(e,t,n){return g8(e)===t?e:t==="array"?Object.values(e):q4(e,n)}const C8=(e,t,n)=>{const i=me(e,"object",t.keys);for(let a in i)i[a]=ia(i[a],t[a]);const r=Object.keys(i);let o={};if(r.length===t.keys.length)o=i;else{const a=me(n,"object",t.keys);if(r.length===1&&t.locked){const s=r[0],l=i[s],u=a[s],d=u!==0?l/u:1;for(let f in a)f===s?o[s]=l:o[f]=a[f]*d}else o=z(z({},a),i)}return me(o,t.format,t.keys)},y8=(e,t)=>me(e,"object",t.keys),b8=e=>!!e&&("step"in e||"min"in e||"max"in e);function v8(e,t,n=[]){const{lock:i=!1}=t,r=n1(t,p8),o=Array.isArray(e)?"array":"object",a=o==="object"?Object.keys(e):n,s=me(e,"object",a),l=b8(r)?a.reduce((d,f)=>Object.assign(d,{[f]:r}),{}):r,u=wa(s,l);return{value:o==="array"?e:s,settings:z(z({},u),{},{format:o,keys:a,lock:i,locked:!1})}}function Ea(e){return{schema:k8(e.length),normalize:t=>{let{value:n}=t,i=n1(t,x8);return v8(n,i,e)},format:(t,n)=>y8(t,n),sanitize:(t,n,i)=>C8(t,n,i)}}var w8={grad:.9,turn:360,rad:360/(2*Math.PI)},J1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},f1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},L1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Sa=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ar=function(e){return{r:L1(e.r,0,255),g:L1(e.g,0,255),b:L1(e.b,0,255),a:L1(e.a)}},Ft=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},E8=/^#([0-9a-f]{3,8})$/i,He=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Aa=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:r}},_a=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:255*[i,s,a,a,l,i][u],g:255*[l,i,i,s,a,a][u],b:255*[a,a,l,i,i,s][u],a:r}},sr=function(e){return{h:Sa(e.h),s:L1(e.s,0,100),l:L1(e.l,0,100),a:L1(e.a)}},lr=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},cr=function(e){return _a((n=(t=e).s,{h:t.h,s:(n*=((i=t.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:t.a}));var t,n,i},pe=function(e){return{h:(t=Aa(e)).h,s:(r=(200-(n=t.s))*(i=t.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,i,r},S8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,A8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,V8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hn={string:[[function(e){var t=E8.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?f1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?f1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_8.exec(e)||V8.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ar({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=S8.exec(e)||A8.exec(e);if(!t)return null;var n,i,r=sr({h:(n=t[1],i=t[2],i===void 0&&(i="deg"),Number(n)*(w8[i]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return cr(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=r===void 0?1:r;return J1(t)&&J1(n)&&J1(i)?ar({r:Number(t),g:Number(n),b:Number(i),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,i=e.l,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=sr({h:Number(t),s:Number(n),l:Number(i),a:Number(o)});return cr(a)},"hsl"],[function(e){var t=e.h,n=e.s,i=e.v,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=function(s){return{h:Sa(s.h),s:L1(s.s,0,100),v:L1(s.v,0,100),a:L1(s.a)}}({h:Number(t),s:Number(n),v:Number(i),a:Number(o)});return _a(a)},"hsv"]]},ur=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,a=(o=t.a)<1?He(f1(255*o)):"","#"+He(n)+He(i)+He(r)+a;var t,n,i,r,o,a},e.prototype.toRgb=function(){return Ft(this.rgba)},e.prototype.toRgbString=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,(o=t.a)<1?"rgba("+n+", "+i+", "+r+", "+o+")":"rgb("+n+", "+i+", "+r+")";var t,n,i,r,o},e.prototype.toHsl=function(){return lr(pe(this.rgba))},e.prototype.toHslString=function(){return t=lr(pe(this.rgba)),n=t.h,i=t.s,r=t.l,(o=t.a)<1?"hsla("+n+", "+i+"%, "+r+"%, "+o+")":"hsl("+n+", "+i+"%, "+r+"%)";var t,n,i,r,o},e.prototype.toHsv=function(){return t=Aa(this.rgba),{h:f1(t.h),s:f1(t.s),v:f1(t.v),a:f1(t.a,3)};var t},e.prototype.invert=function(){return y1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,-t))},e.prototype.grayscale=function(){return y1(It(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?y1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):f1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=pe(this.rgba);return typeof t=="number"?y1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===y1(t).toHex()},e}(),y1=function(e){return e instanceof mn?e:new mn(e)},fr=[],B8=function(e){e.forEach(function(t){fr.indexOf(t)<0&&(t(mn,hn),fr.push(t))})};function j8(e,t){var n={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"},i={};for(var r in n)i[n[r]]=r;var o={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,l,u=i[this.toHex()];if(u)return u;if(a!=null&&a.closest){var d=this.toRgb(),f=1/0,m="black";if(!o.length)for(var k in n)o[k]=new e(n[k]).toRgb();for(var p in n){var g=(s=d,l=o[p],Math.pow(s.r-l.r,2)+Math.pow(s.g-l.g,2)+Math.pow(s.b-l.b,2));g=0||(r[n]=e[n]);return r}function pn(e){var t=h.useRef(e),n=h.useRef(function(i){t.current&&t.current(i)});return t.current=e,n.current}var W0=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:C.buttons>0)&&r.current?o(hr(r.current,C,s.current)):g(!1)},p=function(){return g(!1)};function g(C){var x=l.current,y=xn(r.current),b=C?y.addEventListener:y.removeEventListener;b(x?"touchmove":"mousemove",k),b(x?"touchend":"mouseup",p)}return[function(C){var x=C.nativeEvent,y=r.current;if(y&&(mr(x),!function(w,E){return E&&!xe(w)}(x,l.current)&&y)){if(xe(x)){l.current=!0;var b=x.changedTouches||[];b.length&&(s.current=b[0].identifier)}y.focus(),o(hr(y,x,s.current)),g(!0)}},function(C){var x=C.which||C.keyCode;x<37||x>40||(C.preventDefault(),a({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},g]},[a,o]),d=u[0],f=u[1],m=u[2];return h.useEffect(function(){return m},[m]),v.createElement("div",ee({},i,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:r,onKeyDown:f,tabIndex:0,role:"slider"}))}),Pe=function(e){return e.filter(Boolean).join(" ")},Un=function(e){var t=e.color,n=e.left,i=e.top,r=i===void 0?.5:i,o=Pe(["react-colorful__pointer",e.className]);return v.createElement("div",{className:o,style:{top:100*r+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},v1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Da=function(e){var t=e.s,n=e.v,i=e.a,r=(200-t)*n/100;return{h:v1(e.h),s:v1(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:v1(r/2),a:v1(i,2)}},kn=function(e){var t=Da(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nt=function(e){var t=Da(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Ba=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:v1(255*[i,s,a,a,l,i][u]),g:v1(255*[l,i,i,s,a,a][u]),b:v1(255*[a,a,l,i,i,s][u]),a:v1(r,2)}},ja=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:v1(60*(s<0?s+6:s)),s:v1(o?a/o*100:0),v:v1(o/255*100),a:r}},$a=v.memo(function(e){var t=e.hue,n=e.onChange,i=Pe(["react-colorful__hue",e.className]);return v.createElement("div",{className:i},v.createElement(Zn,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:W0(t+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":v1(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(Un,{className:"react-colorful__hue-pointer",left:t/360,color:kn({h:t,s:100,v:100,a:1})})))}),Ga=v.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:kn({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:i},v.createElement(Zn,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:W0(t.s+100*r.left,0,100),v:W0(t.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+v1(t.s)+"%, Brightness "+v1(t.v)+"%"},v.createElement(Un,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:kn(t)})))}),Wn=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Pa(e,t,n){var i=pn(n),r=h.useState(function(){return e.toHsva(t)}),o=r[0],a=r[1],s=h.useRef({color:t,hsva:o});h.useEffect(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},a(u)}},[t,e]),h.useEffect(function(){var u;Wn(o,s.current.hsva)||e.equal(u=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:u},i(u))},[o,e,i]);var l=h.useCallback(function(u){a(function(d){return Object.assign({},d,u)})},[]);return[o,l]}var $8=typeof window<"u"?h.useLayoutEffect:h.useEffect,G8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},pr=new Map,Ma=function(e){$8(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!pr.has(t)){var n=t.createElement("style");n.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}`,pr.set(t,n);var i=G8();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},P8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},M8=function(e){var t=e.className,n=e.hsva,i=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+Nt(Object.assign({},n,{a:0}))+", "+Nt(Object.assign({},n,{a:1}))+")"},o=Pe(["react-colorful__alpha",t]),a=v1(100*n.a);return v.createElement("div",{className:o},v.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),v.createElement(Zn,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:W0(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(Un,{className:"react-colorful__alpha-pointer",left:n.a,color:Nt(n)})))},L8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d}),v.createElement(M8,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},O8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ja,fromHsva:Ba,equal:Wn},T8=function(e){return v.createElement(L8,ee({},e,{colorModel:O8}))},R8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ja({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Ba(e)).r,g:t.g,b:t.b};var t},equal:Wn},F8=function(e){return v.createElement(P8,ee({},e,{colorModel:R8}))};function np(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,n,o):a(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function te(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(i.next(d))}catch(f){a(f)}}function l(d){try{u(i.throw(d))}catch(f){a(f)}}function u(d){d.done?o(d.value):r(d.value).then(s,l)}u((i=i.apply(e,t||[])).next())})}function ne(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(i=1,r&&(o=u[0]&2?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function H8(){for(var e=[],t=0;t0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function z8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),r=N8.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}var Z8=[".DS_Store","Thumbs.db"];function U8(e){return te(this,void 0,void 0,function(){return ne(this,function(t){return at(e)&&W8(e)?[2,X8(e.dataTransfer,e.type)]:K8(e)?[2,q8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Y8(e)]:[2,[]]})})}function W8(e){return at(e.dataTransfer)}function K8(e){return at(e)&&at(e.target)}function at(e){return typeof e=="object"&&e!==null}function q8(e){return gn(e.target.files).map(function(t){return Me(t)})}function Y8(e){return te(this,void 0,void 0,function(){var t;return ne(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return Me(i)})]}})})}function X8(e,t){return te(this,void 0,void 0,function(){var n,i;return ne(this,function(r){switch(r.label){case 0:return e===null?[2,[]]:e.items?(n=gn(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Q8))]):[3,2];case 1:return i=r.sent(),[2,xr(La(i))];case 2:return[2,xr(gn(e.files).map(function(o){return Me(o)}))]}})})}function xr(e){return e.filter(function(t){return Z8.indexOf(t.name)===-1})}function gn(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);nn)return[!1,vr(n)];if(e.sizen)return[!1,vr(n)]}return[!0,null]}function ae(e){return e!=null}function fc(e){var t=e.files,n=e.accept,i=e.minSize,r=e.maxSize,o=e.multiple,a=e.maxFiles;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(s){var l=Ra(s,n),u=yr(l,1),d=u[0],f=Fa(s,i,r),m=yr(f,1),k=m[0];return d&&k})}function st(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ne(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Er(e){e.preventDefault()}function hc(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mc(e){return e.indexOf("Edge/")!==-1}function pc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hc(e)||mc(e)}function q1(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function jc(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}var Kn=h.forwardRef(function(e,t){var n=e.children,i=lt(e,yc),r=Na(i),o=r.open,a=lt(r,bc);return h.useImperativeHandle(t,function(){return{open:o}},[o]),v.createElement(h.Fragment,null,n(s1(s1({},a),{},{open:o})))});Kn.displayName="Dropzone";var Ha={disabled:!1,getFilesFromEvent:U8,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Kn.defaultProps=Ha;Kn.propTypes={children:o1.func,accept:o1.oneOfType([o1.string,o1.arrayOf(o1.string)]),multiple:o1.bool,preventDropOnDocument:o1.bool,noClick:o1.bool,noKeyboard:o1.bool,noDrag:o1.bool,noDragEventsBubbling:o1.bool,minSize:o1.number,maxSize:o1.number,maxFiles:o1.number,disabled:o1.bool,getFilesFromEvent:o1.func,onFileDialogCancel:o1.func,onFileDialogOpen:o1.func,useFsAccessApi:o1.bool,onDragEnter:o1.func,onDragLeave:o1.func,onDragOver:o1.func,onDrop:o1.func,onDropAccepted:o1.func,onDropRejected:o1.func,validator:o1.func};var bn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=s1(s1({},Ha),e),n=t.accept,i=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,m=t.onDrop,k=t.onDropAccepted,p=t.onDropRejected,g=t.onFileDialogCancel,C=t.onFileDialogOpen,x=t.useFsAccessApi,y=t.preventDropOnDocument,b=t.noClick,w=t.noKeyboard,E=t.noDrag,S=t.noDragEventsBubbling,A=t.validator,_=h.useMemo(function(){return typeof C=="function"?C:Ar},[C]),G=h.useMemo(function(){return typeof g=="function"?g:Ar},[g]),B=h.useRef(null),D=h.useRef(null),V=h.useReducer($c,bn),R=zt(V,2),P=R[0],$=R[1],j=P.isFocused,L=P.isFileDialogActive,Z=P.draggedFiles,U=h.useRef(typeof window<"u"&&window.isSecureContext&&x&&xc()),J=function(){!U.current&&L&&setTimeout(function(){if(D.current){var I=D.current.files;I.length||($({type:"closeDialog"}),G())}},300)};h.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[D,L,G,U]);var W=h.useRef([]),M=function(I){B.current&&B.current.contains(I.target)||(I.preventDefault(),W.current=[])};h.useEffect(function(){return y&&(document.addEventListener("dragover",Er,!1),document.addEventListener("drop",M,!1)),function(){y&&(document.removeEventListener("dragover",Er),document.removeEventListener("drop",M))}},[B,y]);var X=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O),W.current=[].concat(Ec(W.current),[O.target]),Ne(O)&&Promise.resolve(r(O)).then(function(I){st(O)&&!S||($({draggedFiles:I,isDragActive:!0,type:"setDraggedFiles"}),u&&u(O))})},[r,u,S]),e1=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O);var I=Ne(O);if(I&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return I&&f&&f(O),!1},[f,S]),Q=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O);var I=W.current.filter(function(_1){return B.current&&B.current.contains(_1)}),h1=I.indexOf(O.target);h1!==-1&&I.splice(h1,1),W.current=I,!(I.length>0)&&($({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ne(O)&&d&&d(O))},[B,d,S]),d1=h.useCallback(function(O,I){var h1=[],_1=[];O.forEach(function(F1){var ie=Ra(F1,n),P0=zt(ie,2),At=P0[0],_t=P0[1],Vt=Fa(F1,a,o),Oe=zt(Vt,2),Dt=Oe[0],Bt=Oe[1],jt=A?A(F1):null;if(At&&Dt&&!jt)h1.push(F1);else{var $t=[_t,Bt];jt&&($t=$t.concat(jt)),_1.push({file:F1,errors:$t.filter(function(Ss){return Ss})})}}),(!s&&h1.length>1||s&&l>=1&&h1.length>l)&&(h1.forEach(function(F1){_1.push({file:F1,errors:[dc]})}),h1.splice(0)),$({acceptedFiles:h1,fileRejections:_1,type:"setFiles"}),m&&m(h1,_1,I),_1.length>0&&p&&p(_1,I),h1.length>0&&k&&k(h1,I)},[$,s,n,a,o,l,m,k,p,A]),S1=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O),W.current=[],Ne(O)&&Promise.resolve(r(O)).then(function(I){st(O)&&!S||d1(I,O)}),$({type:"reset"})},[r,d1,S]),A1=h.useCallback(function(){if(U.current){$({type:"openDialog"}),_();var O={multiple:s,types:kc(n)};window.showOpenFilePicker(O).then(function(I){return r(I)}).then(function(I){d1(I,null),$({type:"closeDialog"})}).catch(function(I){gc(I)?(G(I),$({type:"closeDialog"})):Cc(I)&&(U.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&($({type:"openDialog"}),_(),D.current.value=null,D.current.click())},[$,_,G,x,d1,n,s]),j1=h.useCallback(function(O){!B.current||!B.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),A1())},[B,A1]),R1=h.useCallback(function(){$({type:"focus"})},[]),d0=h.useCallback(function(){$({type:"blur"})},[]),f0=h.useCallback(function(){b||(pc()?setTimeout(A1,0):A1())},[b,A1]),Y=function(I){return i?null:I},r1=function(I){return w?null:Y(I)},a1=function(I){return E?null:Y(I)},Z1=function(I){S&&I.stopPropagation()},U1=h.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=O.refKey,h1=I===void 0?"ref":I,_1=O.role,F1=O.onKeyDown,ie=O.onFocus,P0=O.onBlur,At=O.onClick,_t=O.onDragEnter,Vt=O.onDragOver,Oe=O.onDragLeave,Dt=O.onDrop,Bt=lt(O,vc);return s1(s1(yn({onKeyDown:r1(q1(F1,j1)),onFocus:r1(q1(ie,R1)),onBlur:r1(q1(P0,d0)),onClick:Y(q1(At,f0)),onDragEnter:a1(q1(_t,X)),onDragOver:a1(q1(Vt,e1)),onDragLeave:a1(q1(Oe,Q)),onDrop:a1(q1(Dt,S1)),role:typeof _1=="string"&&_1!==""?_1:"button"},h1,B),!i&&!w?{tabIndex:0}:{}),Bt)}},[B,j1,R1,d0,f0,X,e1,Q,S1,w,E,i]),W1=h.useCallback(function(O){O.stopPropagation()},[]),G0=h.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=O.refKey,h1=I===void 0?"ref":I,_1=O.onChange,F1=O.onClick,ie=lt(O,wc),P0=yn({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:Y(q1(_1,S1)),onClick:Y(q1(F1,W1)),tabIndex:-1},h1,D);return s1(s1({},P0),ie)}},[D,n,s,S1,i]),C0=Z.length,K1=C0>0&&fc({files:Z,accept:n,minSize:a,maxSize:o,multiple:s,maxFiles:l}),Le=C0>0&&!K1;return s1(s1({},P),{},{isDragAccept:K1,isDragReject:Le,isFocused:j&&!i,getRootProps:U1,getInputProps:G0,rootRef:B,inputRef:D,open:Y(A1)})}function $c(e,t){switch(t.type){case"focus":return s1(s1({},e),{},{isFocused:!0});case"blur":return s1(s1({},e),{},{isFocused:!1});case"openDialog":return s1(s1({},bn),{},{isFileDialogActive:!0});case"closeDialog":return s1(s1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,i=t.draggedFiles;return s1(s1({},e),{},{draggedFiles:i,isDragActive:n});case"setFiles":return s1(s1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return s1({},bn);default:return e}}function Ar(){}function Gc(e){let t;const n=new Set,i=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const m=t;t=d?f:Object.assign({},t,f),n.forEach(k=>k(t,m))}},r=()=>t,o=(u,d=r,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let m=d(t);function k(){const p=d(t);if(!f(m,p)){const g=m;u(m=p,g)}}return n.add(k),()=>n.delete(k)},l={setState:i,getState:r,subscribe:(u,d,f)=>d||f?o(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(i,r,l),l}const Pc=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),_r=Pc?h.useEffect:h.useLayoutEffect;function Mc(e){const t=typeof e=="function"?Gc(e):e,n=(i=t.getState,r=Object.is)=>{const[,o]=h.useReducer(C=>C+1,0),a=t.getState(),s=h.useRef(a),l=h.useRef(i),u=h.useRef(r),d=h.useRef(!1),f=h.useRef();f.current===void 0&&(f.current=i(a));let m,k=!1;(s.current!==a||l.current!==i||u.current!==r||d.current)&&(m=i(a),k=!r(f.current,m)),_r(()=>{k&&(f.current=m),s.current=a,l.current=i,u.current=r,d.current=!1});const p=h.useRef(a);_r(()=>{const C=()=>{try{const y=t.getState(),b=l.current(y);u.current(f.current,b)||(s.current=y,f.current=b,o())}catch{d.current=!0,o()}},x=t.subscribe(C);return t.getState()!==p.current&&C(),x},[]);const g=k?m:f.current;return h.useDebugValue(g),g};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[n,t];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},n}const Lc=e=>(t,n,i)=>{const r=i.subscribe;return i.subscribe=(a,s,l)=>{let u=a;if(s){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=a(i.getState());u=m=>{const k=a(m);if(!d(f,k)){const p=f;s(f=k,p)}},l!=null&&l.fireImmediately&&s(f,f)}return r(u)},e(t,n,i)};/*! @@ -313,7 +313,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,Kd=()=>{const e=h.useContext(Gs);return e==null?void 0:e.socket},qd={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Yd=An(e=>({...qd,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,i,r,o;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((i=t==null?void 0:t.instagraph)!=null&&i.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(r=t==null?void 0:t.instagraph)==null?void 0:r.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),Xd="0.1.106",Qd=h.lazy(()=>p1(()=>import("./index-e0614544.js"),["assets/index-e0614544.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/Tabs-07181cd3.js","assets/createSvgIcon-016a2106.js"]).then(({SettingsModal:e})=>({default:e}))),Jd=h.lazy(()=>p1(()=>import("./index-c99ee90f.js"),["assets/index-c99ee90f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js"]).then(({AddContentModal:e})=>({default:e}))),ef=h.lazy(()=>p1(()=>import("./index-569ae916.js"),["assets/index-569ae916.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),tf=h.lazy(()=>p1(()=>import("./index-746c11fc.js"),["assets/index-746c11fc.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/constants-a3da365e.js","assets/ClipLoader-2c26140d.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-bd13c6c5.js","assets/Typography-0d19ae0d.js","assets/Tabs-07181cd3.js"]).then(({SourcesTableModal:e})=>({default:e}))),nf=h.lazy(()=>p1(()=>import("./index-52cf0cef.js"),["assets/index-52cf0cef.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/Skeleton-1ccdf5c1.js","assets/ClipLoader-2c26140d.js"]).then(({EditNodeNameModal:e})=>({default:e}))),rf=h.lazy(()=>p1(()=>import("./index-427bda35.js"),["assets/index-427bda35.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/Skeleton-1ccdf5c1.js","assets/ClipLoader-2c26140d.js"]).then(({RemoveNodeModal:e})=>({default:e}))),of=h.lazy(()=>p1(()=>import("./index-b6fe9242.js"),["assets/index-b6fe9242.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/constants-a3da365e.js","assets/ClipLoader-2c26140d.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),af=h.lazy(()=>p1(()=>import("./index-59e95d3e.js"),["assets/index-59e95d3e.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bd13c6c5.js","assets/constants-a3da365e.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/ClipLoader-2c26140d.js"]).then(({MergeNodeModal:e})=>({default:e}))),sf=h.lazy(()=>p1(()=>import("./index-da03d4e9.js"),["assets/index-da03d4e9.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/ClipLoader-2c26140d.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),lf=h.lazy(()=>p1(()=>import("./index-738555e7.js"),["assets/index-738555e7.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/ClipLoader-2c26140d.js","assets/map-3259c6de.js","assets/Typography-0d19ae0d.js","assets/Tabs-07181cd3.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-04235dc5.js"]).then(({BlueprintModal:e})=>({default:e}))),cf=h.lazy(()=>p1(()=>import("./index-0f75a7d3.js"),["assets/index-0f75a7d3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({UserFeedBackModal:e})=>({default:e}))),uf=h.lazy(()=>p1(()=>import("./index-4d73db1d.js"),["assets/index-4d73db1d.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js"]).then(({CreateBountyModal:e})=>({default:e}))),df=h.lazy(()=>p1(()=>import("./index-bde6e5ef.js").then(e=>e.cb),["assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:e})=>({default:e}))),ff=()=>c.jsxs(c.Fragment,{children:[c.jsx(ef,{}),c.jsx(Jd,{}),c.jsx(Qd,{}),c.jsx(nf,{}),c.jsx(rf,{}),c.jsx(tf,{}),c.jsx(of,{}),c.jsx(sf,{}),c.jsx(lf,{}),c.jsx(af,{}),c.jsx(cf,{}),c.jsx(uf,{}),c.jsx(df,{})]}),hf=()=>{const[e,t]=h.useState(null),{runningProjectMessages:n}=g0(s=>s),i=s=>{t(s.currentTarget)},r=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?c.jsxs(mf,{ml:8,children:[c.jsx(xf,{onClick:i,children:c.jsxs(mt,{content:"Messages",margin:"18px",children:[c.jsx("div",{className:"icon",children:c.jsx(no,{})}),c.jsx("div",{className:"text",children:c.jsx("p",{children:n.length})})]})}),c.jsxs(kf,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:r,open:o,children:[c.jsx(vs,{onClick:r,children:c.jsx(xt,{})}),c.jsx(pf,{p:16,children:n.map(s=>c.jsx("p",{className:"item",children:s},s))})]})]}):null},mf=q(K).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,pf=q(K)` +`,Kd=()=>{const e=h.useContext(Gs);return e==null?void 0:e.socket},qd={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Yd=An(e=>({...qd,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,i,r,o;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((i=t==null?void 0:t.instagraph)!=null&&i.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(r=t==null?void 0:t.instagraph)==null?void 0:r.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),Xd="0.1.106",Qd=h.lazy(()=>p1(()=>import("./index-1880407d.js"),["assets/index-1880407d.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/ClipLoader-1133ece3.js","assets/Tabs-fb6d3947.js","assets/createSvgIcon-6e5d30bd.js"]).then(({SettingsModal:e})=>({default:e}))),Jd=h.lazy(()=>p1(()=>import("./index-85549638.js"),["assets/index-85549638.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/ClipLoader-1133ece3.js"]).then(({AddContentModal:e})=>({default:e}))),ef=h.lazy(()=>p1(()=>import("./index-c8ae45d4.js"),["assets/index-c8ae45d4.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/ClipLoader-1133ece3.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),tf=h.lazy(()=>p1(()=>import("./index-e3a56368.js"),["assets/index-e3a56368.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/constants-4d05840e.js","assets/ClipLoader-1133ece3.js","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/index-57e1aba8.js","assets/Typography-efec7f9a.js","assets/Tabs-fb6d3947.js"]).then(({SourcesTableModal:e})=>({default:e}))),nf=h.lazy(()=>p1(()=>import("./index-41b34622.js"),["assets/index-41b34622.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/Skeleton-6c0412b8.js","assets/ClipLoader-1133ece3.js"]).then(({EditNodeNameModal:e})=>({default:e}))),rf=h.lazy(()=>p1(()=>import("./index-037ae40a.js"),["assets/index-037ae40a.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/Skeleton-6c0412b8.js","assets/ClipLoader-1133ece3.js"]).then(({RemoveNodeModal:e})=>({default:e}))),of=h.lazy(()=>p1(()=>import("./index-0e384091.js"),["assets/index-0e384091.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/constants-4d05840e.js","assets/ClipLoader-1133ece3.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),af=h.lazy(()=>p1(()=>import("./index-e7533f23.js"),["assets/index-e7533f23.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-57e1aba8.js","assets/constants-4d05840e.js","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/ClipLoader-1133ece3.js"]).then(({MergeNodeModal:e})=>({default:e}))),sf=h.lazy(()=>p1(()=>import("./index-2b725117.js"),["assets/index-2b725117.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/ClipLoader-1133ece3.js","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),lf=h.lazy(()=>p1(()=>import("./index-9c99377f.js"),["assets/index-9c99377f.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js","assets/ClipLoader-1133ece3.js","assets/map-5327e6bd.js","assets/Typography-efec7f9a.js","assets/Tabs-fb6d3947.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-05851a42.js"]).then(({BlueprintModal:e})=>({default:e}))),cf=h.lazy(()=>p1(()=>import("./index-f0bfe2ee.js"),["assets/index-f0bfe2ee.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]).then(({UserFeedBackModal:e})=>({default:e}))),uf=h.lazy(()=>p1(()=>import("./index-6a674a65.js"),["assets/index-6a674a65.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-7a81ddcc.js","assets/Stack-522c22e1.js","assets/createSvgIcon-6e5d30bd.js","assets/TextareaAutosize-d45e3579.js"]).then(({CreateBountyModal:e})=>({default:e}))),df=h.lazy(()=>p1(()=>import("./index-10403053.js").then(e=>e.cb),["assets/index-10403053.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:e})=>({default:e}))),ff=()=>c.jsxs(c.Fragment,{children:[c.jsx(ef,{}),c.jsx(Jd,{}),c.jsx(Qd,{}),c.jsx(nf,{}),c.jsx(rf,{}),c.jsx(tf,{}),c.jsx(of,{}),c.jsx(sf,{}),c.jsx(lf,{}),c.jsx(af,{}),c.jsx(cf,{}),c.jsx(uf,{}),c.jsx(df,{})]}),hf=()=>{const[e,t]=h.useState(null),{runningProjectMessages:n}=g0(s=>s),i=s=>{t(s.currentTarget)},r=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?c.jsxs(mf,{ml:8,children:[c.jsx(xf,{onClick:i,children:c.jsxs(mt,{content:"Messages",margin:"18px",children:[c.jsx("div",{className:"icon",children:c.jsx(no,{})}),c.jsx("div",{className:"text",children:c.jsx("p",{children:n.length})})]})}),c.jsxs(kf,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:r,open:o,children:[c.jsx(vs,{onClick:r,children:c.jsx(xt,{})}),c.jsx(pf,{p:16,children:n.map(s=>c.jsx("p",{className:"item",children:s},s))})]})]}):null},mf=q(K).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,pf=q(K)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -623,4 +623,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${N.white}; font-size: 12px; opacity: 0.5; -`,Zm=h.lazy(()=>p1(()=>import("./index-00fbfb7a.js"),["assets/index-00fbfb7a.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({MainToolbar:e})=>({default:e}))),Um=h.lazy(()=>p1(()=>import("./index-a24c814f.js"),["assets/index-a24c814f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-04235dc5.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-f9a84af0.js","assets/index-2a7ba5ab.js","assets/ClipLoader-2c26140d.js"]).then(({Universe:e})=>({default:e}))),Wm=h.lazy(()=>p1(()=>import("./index-a01f56a3.js").then(e=>e.i),["assets/index-a01f56a3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/Skeleton-1ccdf5c1.js","assets/Stack-06c1211e.js","assets/map-3259c6de.js","assets/Typography-0d19ae0d.js","assets/createSvgIcon-016a2106.js","assets/index-2a7ba5ab.js"]).then(({SideBar:e})=>({default:e}))),Km=()=>{const[e]=Ns(),t=e.get("q"),{setBudget:n,setNodeCount:i}=Vn(M=>M),r=h.useRef(null),o=h.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:u,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:m}=kt(M=>M),k=Yd(M=>M.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:C,addNewNode:x,splashDataLoading:y,runningProjectId:b,setRunningProjectMessages:w,isFetching:E}=g0(M=>M),{setAiSummaryAnswer:S,getKeyExist:A,aiRefId:_}=io(M=>M),G=ii(),[B,D]=zs(M=>[M.realtimeGraphFeatureFlag,M.chatInterfaceFeatureFlag]),V=Kd(),R=Zs({mode:"onChange"}),{setValue:P}=R;h.useEffect(()=>{P("search",t??""),d(!1),G(null),u(!1),l(t??""),k(""),g(null)},[t,g,l,u,G,k,d,P]),h.useEffect(()=>{(async()=>{await p(n,C),a(!0),s?await Ks(n):G(null)})()},[s,p,n,C,a,G]);const $=h.useCallback(()=>{i("INCREMENT")},[i]),j=h.useCallback(M=>{E||(r.current||(r.current={nodes:[],edges:[]}),M.edges&&r.current.edges.push(...M.edges),M.nodes&&r.current.nodes.push(...M.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const X={...r.current};r.current={nodes:[],edges:[]},x(X)},3e3))},[x,E]),L=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{answer:M.answer,answerLoading:!1})},[S]),Z=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{audio_en:M.audio_EN})},[S]),U=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{questions:M.relevant_questions.map(X=>X.question),questionsLoading:!1})},[S]),J=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{sources:M.sources.map(X=>X.ref_id),sourcesLoading:!1})},[S]),W=h.useCallback(M=>{M.question&&A(_)&&S(_,{answerLoading:!1,entities:M.entities})},[S,A,_]);return h.useEffect(()=>(V&&(V.connect(),V.on("connect_error",M=>{console.error("Socket connection error:",M)}),V.on("newnode",$),D&&V.on("extractedentitieshook",W),D&&V.on("askquestionhook",L),D&&V.on("relevantquestionshook",U),D&&V.on("answersourceshook",J),B&&V.on("new_node_created",j),D&&V.on("answeraudiohook",Z)),()=>{V&&V.off()}),[V,$,j,B,L,D,U,J,W,Z]),h.useEffect(()=>{if(!b)return;const M=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");M.onopen=()=>{let X="a";X=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:X})};M.send(JSON.stringify(e1))},M.onmessage=X=>{var d1;console.log("Message from server:",X.data);const e1=JSON.parse(X.data);if(e1.type==="ping")return;const Q=(d1=e1==null?void 0:e1.message)==null?void 0:d1.message;Q&&w(Q)},M.onerror=X=>{console.error("WebSocket error:",X)},M.onclose=()=>{console.log("WebSocket connection closed")}},[b,w]),h.useEffect(()=>{y||m()},[m,y]),c.jsxs(c.Fragment,{children:[c.jsx(Y7,{}),c.jsx(Fm,{}),c.jsx(ns,{hidden:!Us||!0,isRoot:!0}),c.jsx(h.Suspense,{fallback:c.jsx("div",{children:"Loading..."}),children:y?null:c.jsxs(Nm,{direction:"row",children:[c.jsxs(Ws,{...R,children:[c.jsx(Zm,{}),!f&&c.jsx(Wm,{}),c.jsx(Um,{}),c.jsx(Zd,{}),c.jsx(Mm,{}),c.jsxs(zm,{children:["v",Xd]}),c.jsx(bs,{})]}),c.jsx(ff,{}),c.jsx(Hm,{})]})})]})},ap=Object.freeze(Object.defineProperty({__proto__:null,App:Km},Symbol.toStringTag,{value:"Module"}));export{Rh as $,Pf as A,ke as B,rs as C,dh as D,vh as E,Eh as F,so as G,Lh as H,_m as I,i2 as J,lo as K,qe as L,Fh as M,Es as N,Zd as O,o1 as P,uo as Q,nm as R,xm as S,Td as T,Ye as U,z3 as V,y2 as W,lm as X,km as Y,zf as Z,te as _,$f as a,ap as a$,jh as a0,Mh as a1,ii as a2,pm as a3,eh as a4,Xf as a5,Ys as a6,Of as a7,Mf as a8,Lf as a9,pd as aA,os as aB,as as aC,qs as aD,ah as aE,Sh as aF,f2 as aG,zh as aH,_h as aI,If as aJ,Jh as aK,Qh as aL,bm as aM,Sm as aN,Em as aO,hm as aP,gh as aQ,kh as aR,fh as aS,jl as aT,wh as aU,ch as aV,Ym as aW,Cm as aX,r2 as aY,X3 as aZ,$2 as a_,Rf as aa,qf as ab,Zf as ac,ph as ad,gs as ae,mm as af,is as ag,tm as ah,um as ai,Cs as aj,Ph as ak,am as al,sm as am,Zh as an,sh as ao,co as ap,rm as aq,Ad as ar,n2 as as,Nh as at,Am as au,Dh as av,bh as aw,nh as ax,Qf as ay,Jf as az,dm as b,Ff as c,np as d,$0 as e,J7 as f,op as g,ys as h,dd as i,Wt as j,Fr as k,fd as l,Yu as m,rp as n,Ih as o,jf as p,mh as q,oh as r,Xh as s,xh as t,ps as u,J3 as v,ip as w,Xs as x,Y1 as y,fo as z}; +`,Zm=h.lazy(()=>p1(()=>import("./index-490ab3b4.js"),["assets/index-490ab3b4.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]).then(({MainToolbar:e})=>({default:e}))),Um=h.lazy(()=>p1(()=>import("./index-c5587235.js"),["assets/index-c5587235.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/index-05851a42.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-d45e3579.js","assets/index-20063332.js","assets/ClipLoader-1133ece3.js"]).then(({Universe:e})=>({default:e}))),Wm=h.lazy(()=>p1(()=>import("./index-609421b3.js").then(e=>e.i),["assets/index-609421b3.js","assets/index-10403053.js","assets/index-b4d03b7b.css","assets/ClipLoader-1133ece3.js","assets/Skeleton-6c0412b8.js","assets/Stack-522c22e1.js","assets/map-5327e6bd.js","assets/Typography-efec7f9a.js","assets/createSvgIcon-6e5d30bd.js","assets/index-20063332.js"]).then(({SideBar:e})=>({default:e}))),Km=()=>{const[e]=Ns(),t=e.get("q"),{setBudget:n,setNodeCount:i}=Vn(M=>M),r=h.useRef(null),o=h.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:u,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:m}=kt(M=>M),k=Yd(M=>M.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:C,addNewNode:x,splashDataLoading:y,runningProjectId:b,setRunningProjectMessages:w,isFetching:E}=g0(M=>M),{setAiSummaryAnswer:S,getKeyExist:A,aiRefId:_}=io(M=>M),G=ii(),[B,D]=zs(M=>[M.realtimeGraphFeatureFlag,M.chatInterfaceFeatureFlag]),V=Kd(),R=Zs({mode:"onChange"}),{setValue:P}=R;h.useEffect(()=>{P("search",t??""),d(!1),G(null),u(!1),l(t??""),k(""),g(null)},[t,g,l,u,G,k,d,P]),h.useEffect(()=>{(async()=>{await p(n,C),a(!0),s?await Ks(n):G(null)})()},[s,p,n,C,a,G]);const $=h.useCallback(()=>{i("INCREMENT")},[i]),j=h.useCallback(M=>{E||(r.current||(r.current={nodes:[],edges:[]}),M.edges&&r.current.edges.push(...M.edges),M.nodes&&r.current.nodes.push(...M.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const X={...r.current};r.current={nodes:[],edges:[]},x(X)},3e3))},[x,E]),L=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{answer:M.answer,answerLoading:!1})},[S]),Z=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{audio_en:M.audio_EN})},[S]),U=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{questions:M.relevant_questions.map(X=>X.question),questionsLoading:!1})},[S]),J=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{sources:M.sources.map(X=>X.ref_id),sourcesLoading:!1})},[S]),W=h.useCallback(M=>{M.question&&A(_)&&S(_,{answerLoading:!1,entities:M.entities})},[S,A,_]);return h.useEffect(()=>(V&&(V.connect(),V.on("connect_error",M=>{console.error("Socket connection error:",M)}),V.on("newnode",$),D&&V.on("extractedentitieshook",W),D&&V.on("askquestionhook",L),D&&V.on("relevantquestionshook",U),D&&V.on("answersourceshook",J),B&&V.on("new_node_created",j),D&&V.on("answeraudiohook",Z)),()=>{V&&V.off()}),[V,$,j,B,L,D,U,J,W,Z]),h.useEffect(()=>{if(!b)return;const M=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");M.onopen=()=>{let X="a";X=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:X})};M.send(JSON.stringify(e1))},M.onmessage=X=>{var d1;console.log("Message from server:",X.data);const e1=JSON.parse(X.data);if(e1.type==="ping")return;const Q=(d1=e1==null?void 0:e1.message)==null?void 0:d1.message;Q&&w(Q)},M.onerror=X=>{console.error("WebSocket error:",X)},M.onclose=()=>{console.log("WebSocket connection closed")}},[b,w]),h.useEffect(()=>{y||m()},[m,y]),c.jsxs(c.Fragment,{children:[c.jsx(Y7,{}),c.jsx(Fm,{}),c.jsx(ns,{hidden:!Us||!0,isRoot:!0}),c.jsx(h.Suspense,{fallback:c.jsx("div",{children:"Loading..."}),children:y?null:c.jsxs(Nm,{direction:"row",children:[c.jsxs(Ws,{...R,children:[c.jsx(Zm,{}),!f&&c.jsx(Wm,{}),c.jsx(Um,{}),c.jsx(Zd,{}),c.jsx(Mm,{}),c.jsxs(zm,{children:["v",Xd]}),c.jsx(bs,{})]}),c.jsx(ff,{}),c.jsx(Hm,{})]})})]})},ap=Object.freeze(Object.defineProperty({__proto__:null,App:Km},Symbol.toStringTag,{value:"Module"}));export{Rh as $,Pf as A,ke as B,rs as C,dh as D,vh as E,Eh as F,so as G,Lh as H,_m as I,i2 as J,lo as K,qe as L,Fh as M,Es as N,Zd as O,o1 as P,uo as Q,nm as R,xm as S,Td as T,Ye as U,z3 as V,y2 as W,lm as X,km as Y,zf as Z,te as _,$f as a,ap as a$,jh as a0,Mh as a1,ii as a2,pm as a3,eh as a4,Xf as a5,Ys as a6,Of as a7,Mf as a8,Lf as a9,pd as aA,os as aB,as as aC,qs as aD,ah as aE,Sh as aF,f2 as aG,zh as aH,_h as aI,If as aJ,Jh as aK,Qh as aL,bm as aM,Sm as aN,Em as aO,hm as aP,gh as aQ,kh as aR,fh as aS,jl as aT,wh as aU,ch as aV,Ym as aW,Cm as aX,r2 as aY,X3 as aZ,$2 as a_,Rf as aa,qf as ab,Zf as ac,ph as ad,gs as ae,mm as af,is as ag,tm as ah,um as ai,Cs as aj,Ph as ak,am as al,sm as am,Zh as an,sh as ao,co as ap,rm as aq,Ad as ar,n2 as as,Nh as at,Am as au,Dh as av,bh as aw,nh as ax,Qf as ay,Jf as az,dm as b,Ff as c,np as d,$0 as e,J7 as f,op as g,ys as h,dd as i,Wt as j,Fr as k,fd as l,Yu as m,rp as n,Ih as o,jf as p,mh as q,oh as r,Xh as s,xh as t,ps as u,J3 as v,ip as w,Xs as x,Y1 as y,fo as z}; diff --git a/build/assets/index-b6fe9242.js b/build/assets/index-0e384091.js similarity index 93% rename from build/assets/index-b6fe9242.js rename to build/assets/index-0e384091.js index 43f590bbf..c9683e802 100644 --- a/build/assets/index-b6fe9242.js +++ b/build/assets/index-0e384091.js @@ -1,4 +1,4 @@ -import{r,j as e,bn as A,Q as B,F as h,C as F,bc as O,bo as I,w as l,H as z,M as E,a1 as N,a3 as D,x as _,z as M,bp as H,at as Y}from"./index-bde6e5ef.js";import{aH as P,aI as X,aJ as G,u as R}from"./index-5c574277.js";import{A as L,T as J}from"./index-bf769610.js";import{S as Q,A as V}from"./constants-a3da365e.js";import{C as T}from"./ClipLoader-2c26140d.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const W=({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 a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},$=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:V,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await I(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(S)}catch{a([])}finally{o(!1)}};return B.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);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(Q,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?n(c):null})},q=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=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:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(W,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx($,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(X,{})}),e.jsx(ie,{children:e.jsx(G,{})})]})]})]})},K=l.div` +import{r,j as e,bn as A,Q as B,F as h,C as F,bc as O,bo as I,w as l,H as z,M as E,a1 as N,a3 as D,x as _,z as M,bp as H,at as Y}from"./index-10403053.js";import{aH as P,aI as X,aJ as G,u as R}from"./index-067fb061.js";import{A as L,T as J}from"./index-7a81ddcc.js";import{S as Q,A as V}from"./constants-4d05840e.js";import{C as T}from"./ClipLoader-1133ece3.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";const W=({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 a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},$=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:V,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await I(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(S)}catch{a([])}finally{o(!1)}};return B.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);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(Q,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?n(c):null})},q=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=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:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(W,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx($,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(X,{})}),e.jsx(ie,{children:e.jsx(G,{})})]})]})]})},K=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-bde6e5ef.js b/build/assets/index-10403053.js similarity index 99% rename from build/assets/index-bde6e5ef.js rename to build/assets/index-10403053.js index bfa343d06..e84d9a315 100644 --- a/build/assets/index-bde6e5ef.js +++ b/build/assets/index-10403053.js @@ -831,4 +831,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-5c574277.js").then(et=>et.a$),[]).then(({App:et})=>({default:et}))),AppContainer=()=>{const et=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:et,path:"/"}),jsxRuntimeExports.jsx(Route,{element:et,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:et,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{$2AODx$react as $,devtools as A,ButtonBase$1 as B,ClearIcon as C,useAppStore as D,useUserStore as E,Flex as F,useSchemaStore as G,Text as H,__vitePreload as I,InfoIcon as J,lottie as K,LinearProgress$1 as L,useModal as M,getTotalProcessing as N,getStats as O,formatStatsResponse as P,lodashExports as Q,ReactDOM as R,SocketContext as S,TransitionGroupContext as T,media as U,useAiSummaryStore as V,We as W,useNavigate as X,Q as Y,useSearchParams as Z,_inheritsLoose as _,_objectWithoutPropertiesLoose as a,GITHUB_REPOSITORY as a$,useFeatureFlagStore as a0,useForm as a1,isDevelopment as a2,FormProvider as a3,updateBudget as a4,isSphinx as a5,useNodeTypes as a6,NODE_RELATIVE_HIGHLIGHT_COLORS as a7,fetchNodeEdges as a8,MdViewInAr as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,getAugmentedNamespace as aQ,useHasAiChats as aR,postAboutData as aS,SuccessNotify as aT,NODE_ADD_ERROR as aU,TextInput as aV,requiredRule as aW,MdError as aX,TWITTER_HANDLE as aY,YOUTUBE_CHANNEL as aZ,RSS as a_,MdClose as aa,addToGlobalForE2e as ab,api$1 as ac,distExports$1 as ad,executeIfProd as ae,useIsFocusVisible as af,rootShouldForwardProp as ag,lighten as ah,darken as ai,slotShouldForwardProp as aj,Ce 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,BaseModal as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,React as b,THEME_ID as b$,LINK as b0,TWITTER_SOURCE as b1,WEB_PAGE as b2,DOCUMENT as b3,getPriceData as b4,isE2E as b5,sphinxBridge as b6,getLSat as b7,payLsat as b8,noSpacePattern as b9,postBluePrintType as bA,deleteEdgeType as bB,cloneDeep_1 as bC,useFieldArray as bD,OptionTypes as bE,NoParent as bF,editNodeSchemaUpdate as bG,createRoot as bH,react as bI,GRAPH_GROUND_COLOR as bJ,GRAPH_LIGHT_INTENSITY as bK,GRAPH_FOG_COLOR as bL,_getPrototype as bM,_MapCache as bN,_Uint8Array as bO,_getAllKeys as bP,_Stack as bQ,_getTag as bR,isBufferExports as bS,isTypedArray_1 as bT,isLength_1 as bU,request as bV,buffer$2 as bW,sphinx$1 as bX,Global as bY,useTheme$2 as bZ,defaultTheme$1 as b_,getNodeType as ba,getNodeSchemaTypes as bb,OPTIONS as bc,initialValue as bd,getNodeContent as be,MdCheckCircle as bf,MdCancel as bg,approveRadarData as bh,deleteRadarData as bi,getRadarData as bj,BaseTextInput as bk,MdCheck as bl,putRadarData as bm,getEdgeTypes as bn,getEdges as bo,postEdgeType as bp,putNodeData as bq,postMergeTopics as br,getTopicsData as bs,deleteNode as bt,keyframes as bu,css as bv,changeNodeType as bw,resolveBreakpointValues as bx,handleBreakpoints as by,updateEdgeType as bz,generateUtilityClass as c,formatMuiErrorMessage as c0,deepmerge as c1,defaultSxConfig$1 as c2,isPlainObject$1 as c3,createStyled as c4,createTheme$1 as c5,useThemeProps$1 as c6,createUnarySpacing as c7,mergeBreakpointsInOrder as c8,getValue as c9,useTheme$3 as ca,index$1 as cb,generateUtilityClasses as d,_extends as e,alpha as f,getDefaultExportFromCjs as g,clsx$2 as h,composeClasses as i,jsxRuntimeExports as j,capitalize as k,useForkRef as l,useEnhancedEffect$1 as m,setRef as n,reactDomExports as o,useEventCallback as p,useTheme as q,reactExports as r,styled$1 as s,create as t,useThemeProps as u,useDataStore as v,styled$3 as w,colors as x,clsx as y,Button$1 as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-067fb061.js").then(et=>et.a$),[]).then(({App:et})=>({default:et}))),AppContainer=()=>{const et=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:et,path:"/"}),jsxRuntimeExports.jsx(Route,{element:et,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:et,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{$2AODx$react as $,devtools as A,ButtonBase$1 as B,ClearIcon as C,useAppStore as D,useUserStore as E,Flex as F,useSchemaStore as G,Text as H,__vitePreload as I,InfoIcon as J,lottie as K,LinearProgress$1 as L,useModal as M,getTotalProcessing as N,getStats as O,formatStatsResponse as P,lodashExports as Q,ReactDOM as R,SocketContext as S,TransitionGroupContext as T,media as U,useAiSummaryStore as V,We as W,useNavigate as X,Q as Y,useSearchParams as Z,_inheritsLoose as _,_objectWithoutPropertiesLoose as a,GITHUB_REPOSITORY as a$,useFeatureFlagStore as a0,useForm as a1,isDevelopment as a2,FormProvider as a3,updateBudget as a4,isSphinx as a5,useNodeTypes as a6,NODE_RELATIVE_HIGHLIGHT_COLORS as a7,fetchNodeEdges as a8,MdViewInAr as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,getAugmentedNamespace as aQ,useHasAiChats as aR,postAboutData as aS,SuccessNotify as aT,NODE_ADD_ERROR as aU,TextInput as aV,requiredRule as aW,MdError as aX,TWITTER_HANDLE as aY,YOUTUBE_CHANNEL as aZ,RSS as a_,MdClose as aa,addToGlobalForE2e as ab,api$1 as ac,distExports$1 as ad,executeIfProd as ae,useIsFocusVisible as af,rootShouldForwardProp as ag,lighten as ah,darken as ai,slotShouldForwardProp as aj,Ce 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,BaseModal as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,React as b,THEME_ID as b$,LINK as b0,TWITTER_SOURCE as b1,WEB_PAGE as b2,DOCUMENT as b3,getPriceData as b4,isE2E as b5,sphinxBridge as b6,getLSat as b7,payLsat as b8,noSpacePattern as b9,postBluePrintType as bA,deleteEdgeType as bB,cloneDeep_1 as bC,useFieldArray as bD,OptionTypes as bE,NoParent as bF,editNodeSchemaUpdate as bG,createRoot as bH,react as bI,GRAPH_GROUND_COLOR as bJ,GRAPH_LIGHT_INTENSITY as bK,GRAPH_FOG_COLOR as bL,_getPrototype as bM,_MapCache as bN,_Uint8Array as bO,_getAllKeys as bP,_Stack as bQ,_getTag as bR,isBufferExports as bS,isTypedArray_1 as bT,isLength_1 as bU,request as bV,buffer$2 as bW,sphinx$1 as bX,Global as bY,useTheme$2 as bZ,defaultTheme$1 as b_,getNodeType as ba,getNodeSchemaTypes as bb,OPTIONS as bc,initialValue as bd,getNodeContent as be,MdCheckCircle as bf,MdCancel as bg,approveRadarData as bh,deleteRadarData as bi,getRadarData as bj,BaseTextInput as bk,MdCheck as bl,putRadarData as bm,getEdgeTypes as bn,getEdges as bo,postEdgeType as bp,putNodeData as bq,postMergeTopics as br,getTopicsData as bs,deleteNode as bt,keyframes as bu,css as bv,changeNodeType as bw,resolveBreakpointValues as bx,handleBreakpoints as by,updateEdgeType as bz,generateUtilityClass as c,formatMuiErrorMessage as c0,deepmerge as c1,defaultSxConfig$1 as c2,isPlainObject$1 as c3,createStyled as c4,createTheme$1 as c5,useThemeProps$1 as c6,createUnarySpacing as c7,mergeBreakpointsInOrder as c8,getValue as c9,useTheme$3 as ca,index$1 as cb,generateUtilityClasses as d,_extends as e,alpha as f,getDefaultExportFromCjs as g,clsx$2 as h,composeClasses as i,jsxRuntimeExports as j,capitalize as k,useForkRef as l,useEnhancedEffect$1 as m,setRef as n,reactDomExports as o,useEventCallback as p,useTheme as q,reactExports as r,styled$1 as s,create as t,useThemeProps as u,useDataStore as v,styled$3 as w,colors as x,clsx as y,Button$1 as z}; diff --git a/build/assets/index-e0614544.js b/build/assets/index-1880407d.js similarity index 95% rename from build/assets/index-e0614544.js rename to build/assets/index-1880407d.js index 049422c15..1bc2154c2 100644 --- a/build/assets/index-e0614544.js +++ b/build/assets/index-1880407d.js @@ -1,4 +1,4 @@ -import{w as a,x as r,F as i,j as e,y as I,H as S,r as b,z as v,a1 as A,D as $,E as C,aS as B,aT as z,aU as y,a3 as M,aV as w,aW as k,aX as D,M as j,at as E}from"./index-bde6e5ef.js";import{e as T,f as R,aA as L,aB as W,C as P,ag as V,aC as F}from"./index-5c574277.js";import{C as G}from"./ClipLoader-2c26140d.js";import{T as U,a as N}from"./Tabs-07181cd3.js";import"./createSvgIcon-016a2106.js";const Y={split:e.jsx(W,{}),force:e.jsx(P,{}),sphere:e.jsx(V,{}),earth:e.jsx(F,{})},H=()=>{const[n,c]=T(R(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{c(t)};return e.jsx(O,{direction:"column",children:L.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},O=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` +import{w as a,x as r,F as i,j as e,y as I,H as S,r as b,z as v,a1 as A,D as $,E as C,aS as B,aT as z,aU as y,a3 as M,aV as w,aW as k,aX as D,M as j,at as E}from"./index-10403053.js";import{e as T,f as R,aA as L,aB as W,C as P,ag as V,aC as F}from"./index-067fb061.js";import{C as G}from"./ClipLoader-1133ece3.js";import{T as U,a as N}from"./Tabs-fb6d3947.js";import"./createSvgIcon-6e5d30bd.js";const Y={split:e.jsx(W,{}),force:e.jsx(P,{}),sphere:e.jsx(V,{}),earth:e.jsx(F,{})},H=()=>{const[n,c]=T(R(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{c(t)};return e.jsx(O,{direction:"column",children:L.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},O=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${r.appearanceBg}; diff --git a/build/assets/index-2a7ba5ab.js b/build/assets/index-20063332.js similarity index 69% rename from build/assets/index-2a7ba5ab.js rename to build/assets/index-20063332.js index 9047aa574..2068720d6 100644 --- a/build/assets/index-2a7ba5ab.js +++ b/build/assets/index-20063332.js @@ -1 +1 @@ -import"./index-bde6e5ef.js";import{e as o}from"./index-5c574277.js";const a=()=>{const{simulation:e,simulationHelpers:s}=o(r=>r);return{nodes:(e==null?void 0:e.nodes())||[],links:s.getLinks()}};export{a as u}; +import"./index-10403053.js";import{e as o}from"./index-067fb061.js";const a=()=>{const{simulation:e,simulationHelpers:s}=o(r=>r);return{nodes:(e==null?void 0:e.nodes())||[],links:s.getLinks()}};export{a as u}; diff --git a/build/assets/index-da03d4e9.js b/build/assets/index-2b725117.js similarity index 96% rename from build/assets/index-da03d4e9.js rename to build/assets/index-2b725117.js index 7bb6b5b26..430607f2a 100644 --- a/build/assets/index-da03d4e9.js +++ b/build/assets/index-2b725117.js @@ -1,4 +1,4 @@ -import{w as v,x as B,H as z,F as r,r as f,al as U,j as e,aV as J,aW as K,b9 as Q,z as E,ba as $,a0 as X,bb as Z,M as D,a1 as N,aU as O,at as ee,a3 as te,bs as ne,bw as re}from"./index-bde6e5ef.js";import{p as V}from"./index-c0853f89.js";import{C as W}from"./ClipLoader-2c26140d.js";import{u as G}from"./index-5c574277.js";import{A as H}from"./index-bf769610.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.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)):[],Y=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=Y(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: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(z)` +import{w as v,x as B,H as z,F as r,r as f,al as U,j as e,aV as J,aW as K,b9 as Q,z as E,ba as $,a0 as X,bb as Z,M as D,a1 as N,aU as O,at as ee,a3 as te,bs as ne,bw as re}from"./index-10403053.js";import{p as V}from"./index-c0853f89.js";import{C as W}from"./ClipLoader-1133ece3.js";import{u as G}from"./index-067fb061.js";import{A as H}from"./index-7a81ddcc.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.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)):[],Y=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=Y(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: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(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-52cf0cef.js b/build/assets/index-41b34622.js similarity index 95% rename from build/assets/index-52cf0cef.js rename to build/assets/index-41b34622.js index 67494c31f..b5862f4aa 100644 --- a/build/assets/index-52cf0cef.js +++ b/build/assets/index-41b34622.js @@ -1,4 +1,4 @@ -import{w as c,x as b,H as E,F as s,M as x,a0 as A,r as l,j as e,aV as O,aW as V,a1 as P,a3 as k,z as F,bs as q,bq as G,v as H,at as Y}from"./index-bde6e5ef.js";import{u as I,T as J,aR as K}from"./index-5c574277.js";import{S as Q}from"./Skeleton-1ccdf5c1.js";import{C as X}from"./ClipLoader-2c26140d.js";const Z=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Z.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=A(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(N=>({...N,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(J,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(K,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(O,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...V}:{}})]},o))})]})},oe=c(E)` +import{w as c,x as b,H as E,F as s,M as x,a0 as A,r as l,j as e,aV as O,aW as V,a1 as P,a3 as k,z as F,bs as q,bq as G,v as H,at as Y}from"./index-10403053.js";import{u as I,T as J,aR as K}from"./index-067fb061.js";import{S as Q}from"./Skeleton-6c0412b8.js";import{C as X}from"./ClipLoader-1133ece3.js";const Z=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Z.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=A(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(N=>({...N,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(J,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(K,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(O,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...V}:{}})]},o))})]})},oe=c(E)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-00fbfb7a.js b/build/assets/index-490ab3b4.js similarity index 96% rename from build/assets/index-00fbfb7a.js rename to build/assets/index-490ab3b4.js index 45107eda1..e01dd4255 100644 --- a/build/assets/index-00fbfb7a.js +++ b/build/assets/index-490ab3b4.js @@ -1,4 +1,4 @@ -import{M as a,X as $,V as B,v as T,D as z,a0 as G,E as D,a5 as E,j as e,H as t,w as c,x as n,F as l}from"./index-bde6e5ef.js";import{M as L,A as N,a as O,S as R,C as U,b as W,F as X}from"./index-5c574277.js";const J=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:x}=a("settings"),{open:h}=a("blueprintGraph"),{open:b}=a("feedback"),g=$(),{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:v}=G(o=>o),{isAdmin:d}=D(o=>o),I=E(),A=()=>{m(null),k(),j(),f(),g("/")},M=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(H,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:M,children:[e.jsx(s,{children:e.jsx(L,{})}),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(N,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(O,{})}),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:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(Q,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(X,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{M as a,X as $,V as B,v as T,D as z,a0 as G,E as D,a5 as E,j as e,H as t,w as c,x as n,F as l}from"./index-10403053.js";import{M as L,A as N,a as O,S as R,C as U,b as W,F as X}from"./index-067fb061.js";const J=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:x}=a("settings"),{open:h}=a("blueprintGraph"),{open:b}=a("feedback"),g=$(),{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:v}=G(o=>o),{isAdmin:d}=D(o=>o),I=E(),A=()=>{m(null),k(),j(),f(),g("/")},M=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(H,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:M,children:[e.jsx(s,{children:e.jsx(L,{})}),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(N,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(O,{})}),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:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(Q,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(X,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 1; transition: opacity 1s; diff --git a/build/assets/index-bd13c6c5.js b/build/assets/index-57e1aba8.js similarity index 85% rename from build/assets/index-bd13c6c5.js rename to build/assets/index-57e1aba8.js index 1361021a5..347c1f497 100644 --- a/build/assets/index-bd13c6c5.js +++ b/build/assets/index-57e1aba8.js @@ -1 +1 @@ -import{t as f,bs as m}from"./index-bde6e5ef.js";import{D as y}from"./constants-a3da365e.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},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{t as f,bs as m}from"./index-10403053.js";import{D as y}from"./constants-4d05840e.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},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-a01f56a3.js b/build/assets/index-609421b3.js similarity index 91% rename from build/assets/index-a01f56a3.js rename to build/assets/index-609421b3.js index f442f3fd4..4ae1abe70 100644 --- a/build/assets/index-a01f56a3.js +++ b/build/assets/index-609421b3.js @@ -1,4 +1,4 @@ -import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as bl,e as ge,j as y,d as wy,c as _y,s as Qn,ag as z$,k as dn,f as xo,u as Ty,a as _u,h as Kn,i as Ay,q as Tu,ah as G$,ai as q$,aj as oI,w as H,x as j,ak as sI,al as ky,X as Au,F as q,a1 as H$,v as Mn,E as ds,am as lI,a3 as W$,H as vt,an as V$,y as lr,D as Pt,G as uI,ao as _i,ap as At,aq as Y$,g as St,z as qt,V as cI,a0 as dI,C as pI,ar as K$,as as fI,M as Ym,at as X$,Z as Z$,au as hI,av as gI,aw as Ti,ax as Fe,b as Y,ay as Q$,az as J$,aA as ej,aB as ku,aC as tj,aD as nj,aE as rj,aF as aj,aG as mI,aH as ij,aI as Ou,aJ as oj,aK as sj,aL as lj,aM as uj,aa as cj,aN as ix,K as dj,aO as pj,aP as fj,J as hj,I as bn,aQ as gj,aR as mj}from"./index-bde6e5ef.js";import{x as wa,y as yl,z as Yc,B as bI,G as bj,J as yj,K as vj,L as ox,Q as vl,U as zr,V as sx,W as Hs,X as yI,Y as Sj,s as Oy,Z as vI,h as Jn,T as Ai,$ as Pr,a0 as SI,a1 as xj,a2 as ps,a3 as Ej,a4 as Iy,a5 as Iu,a6 as Ry,a7 as wj,a8 as xI,a9 as EI,aa as _j,v as Tj,ab as wI,ac as Aj,ad as kj,ae as Ru,af as Oj,ag as Ij,ah as Rj,ai as Cj,aj as Cy,ak as Nj,al as Dj,am as Lj,P as Re,u as Kt,an as _I,ao as Mj,ap as TI,aq as Pj,ar as Cu,as as $j,at as jj,au as Fj,av as Bj,aw as Uj,e as zj,ax as Gj,ay as AI,az as qj}from"./index-5c574277.js";import{c as Hj,a as Kc,C as Nu}from"./ClipLoader-2c26140d.js";import{S as kI}from"./Skeleton-1ccdf5c1.js";import{u as OI,P as Ny,a as Wj,F as Vj}from"./Stack-06c1211e.js";import{S as Yj,F as lx,i as fs,g as Dn,t as Kj,_ as II,a as Xj,b as Zj,c as Ta,d as Dy,e as Qj,f as Jj,h as eF,j as hs,m as tF,k as nF,l as rF,n as RI,o as aF,p as iF}from"./map-3259c6de.js";import{c as Ly}from"./createSvgIcon-016a2106.js";import{u as CI}from"./index-2a7ba5ab.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=iI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};U$(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(y.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"),EF=Ly(y.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"),wF=Ly(y.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 _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Yj,{shouldForwardProp:e=>z$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({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})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=bI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=bj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),vj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=yj(()=>{O.current&&Xs(c,O.current,u)}),Z=bI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?G$(e.palette[t.color].main,.62):q$(e.palette[t.color].main,.5);return ge({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`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>oI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>oI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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}},n&&{color:(e.vars||e).palette.text.primary})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["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 a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},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"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(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:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("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:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Wj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=iI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` +import{ac as aI,ad as qa,Q as ax,ae as U$,r as F,af as iI,l as Al,m as z$,p as bl,e as ge,j as y,d as wy,c as _y,s as Qn,ag as G$,k as dn,f as xo,u as Ty,a as _u,h as Kn,i as Ay,q as Tu,ah as q$,ai as H$,aj as oI,w as H,x as j,ak as sI,al as ky,X as Au,F as q,a1 as W$,v as Mn,E as ds,am as lI,a3 as V$,H as vt,an as Y$,y as lr,D as Pt,G as uI,ao as _i,ap as At,aq as K$,g as St,z as qt,V as cI,a0 as dI,C as pI,ar as X$,as as fI,M as Ym,at as Z$,Z as Q$,au as hI,av as gI,aw as Ti,ax as Fe,b as Y,ay as J$,az as ej,aA as tj,aB as ku,aC as nj,aD as rj,aE as aj,aF as ij,aG as mI,aH as oj,aI as Ou,aJ as sj,aK as lj,aL as uj,aM as cj,aa as dj,aN as ix,K as pj,aO as fj,aP as hj,J as gj,I as bn,aQ as mj,aR as bj}from"./index-10403053.js";import{x as wa,y as yl,z as Yc,B as bI,G as yj,J as vj,K as Sj,L as ox,Q as vl,U as zr,V as sx,W as Hs,X as yI,Y as xj,s as Oy,Z as vI,h as Jn,T as Ai,$ as Pr,a0 as SI,e as xI,a1 as Ej,a2 as ps,a3 as wj,a4 as Iy,a5 as Iu,a6 as Ry,a7 as _j,a8 as EI,a9 as wI,aa as Tj,v as Aj,ab as _I,ac as kj,ad as Oj,ae as Ru,af as Ij,ag as Rj,ah as Cj,ai as Nj,aj as Cy,ak as Dj,al as Lj,am as Mj,P as Re,u as Kt,an as TI,ao as Pj,ap as AI,aq as $j,ar as Cu,as as jj,at as Fj,au as Bj,av as Uj,aw as zj,ax as Gj,ay as kI,az as qj}from"./index-067fb061.js";import{c as Hj,a as Kc,C as Nu}from"./ClipLoader-1133ece3.js";import{S as OI}from"./Skeleton-6c0412b8.js";import{u as II,P as Ny,a as Wj,F as Vj}from"./Stack-522c22e1.js";import{S as Yj,F as lx,i as fs,g as Dn,t as Kj,_ as RI,a as Xj,b as Zj,c as Ta,d as Dy,e as Qj,f as Jj,h as eF,j as hs,m as tF,k as nF,l as rF,n as CI,o as aF,p as iF}from"./map-5327e6bd.js";import{c as Ly}from"./createSvgIcon-6e5d30bd.js";import{u as NI}from"./index-20063332.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},DI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await U$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function LI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[E,A]=F.useState(-1),[x,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=II({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(LI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=iI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};z$(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&E!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:E,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:x,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:E!==-1&&E!==B?"none":void 0})}}const xF=Ly(y.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"),EF=Ly(y.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"),wF=Ly(y.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 _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Yj,{shouldForwardProp:e=>G$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({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})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=bI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:E,timeout:A=i,TransitionComponent:x=yj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),Sj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:E,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:E,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=vj(()=>{O.current&&Xs(c,O.current,u)}),Z=bI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(x,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},E,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?q$(e.palette[t.color].main,.62):H$(e.palette[t.color].main,.5);return ge({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`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>oI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>oI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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}},n&&{color:(e.vars||e).palette.text.primary})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,E,A,x,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(E=me==null?void 0:me.root)!=null?E:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(x=me==null?void 0:me.track)!=null?x:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["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 a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},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"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(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:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("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:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,E,A,x;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=II({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Wj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=iI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(E=ae.arrow)!=null?E:$.arrow,{className:Kn(gn.arrow,(A=(x=ae.arrow)!=null?x:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -41,7 +41,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b background-position-x: 95%; background-repeat: no-repeat; `} -`,LI=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:a}=ky(),i=a("search"),o=Au();return y.jsx(b2,{...r("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(n){n();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},y2=()=>{const e=H$({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Mn(s=>s),{setBudget:r}=ds(s=>s),{reset:a}=e,i=lI(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),a({search:""}))});return y.jsx(MI,{children:y.jsx(W$,{...e,children:y.jsxs(v2,{children:[y.jsx(LI,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(S2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?y.jsx(x2,{color:j.lightGray,"data-testid":"loader",size:"20"}):y.jsx(yI,{})})]})})})},MI=H(q)` +`,MI=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:a}=ky(),i=a("search"),o=Au();return y.jsx(b2,{...r("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(n){n();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},y2=()=>{const e=W$({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Mn(s=>s),{setBudget:r}=ds(s=>s),{reset:a}=e,i=lI(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),a({search:""}))});return y.jsx(PI,{children:y.jsx(V$,{...e,children:y.jsxs(v2,{children:[y.jsx(MI,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(S2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?y.jsx(x2,{color:j.lightGray,"data-testid":"loader",size:"20"}):y.jsx(yI,{})})]})})})},PI=H(q)` position: sticky; bottom: 0; padding: 12px; @@ -60,7 +60,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b /* background-color: ${j.gray200}; */ } - ${MI} input:focus + & { + ${PI} input:focus + & { color: ${j.primaryBlue}; } `,x2=H(Nu)` @@ -89,11 +89,11 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b .title { margin: 20px 0 8px; } -`,Js=H(kI)` +`,Js=H(OI)` && { background: rgba(0, 0, 0, 0.15); } -`,PI=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(E2,{children:y.jsxs(q,{direction:"row",children:[y.jsx(q,{align:"center",pr:16,children:y.jsx(Js,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(Js,{height:10,variant:"rectangular",width:56}),y.jsx(Js,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(Js,{height:10,variant:"rectangular",width:149})]})]})},n))});H(q)` +`,$I=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(E2,{children:y.jsxs(q,{direction:"row",children:[y.jsx(q,{align:"center",pr:16,children:y.jsx(Js,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(Js,{height:10,variant:"rectangular",width:56}),y.jsx(Js,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(Js,{height:10,variant:"rectangular",width:149})]})]})},n))});H(q)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -135,7 +135,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b height: 4px; background: ${j.GRAY6}; } -`;const _2=V$` +`;const _2=Y$` 0% { background-color: ${j.SECONDARY_BLUE}; color: white; @@ -188,7 +188,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b font-size: 14px; font-weight: 400; line-height: 19.6px; -`,C2=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:a,setAbortRequests:i}=Mn(S=>S),{setBudget:o}=ds(S=>S),[s,l]=F.useState(""),[u,c]=F.useState(t),[p,f]=F.useState(!0);F.useEffect(()=>{let S;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(S);f(!0),n()}},[e,s,n,r]),F.useEffect(()=>{s||r&&l(e)},[e,s,r]);const h=S=>{a(o,i,S)};F.useEffect(()=>{t&&u!==t&&c(t)},[t,u]);const m=()=>{f(!1)},b=A2(s,h,u,p);return y.jsx(I2,{onMouseMove:m,children:y.jsx(R2,{children:b})})},N2=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Mn(o=>o),[r]=ds(o=>[o.setBudget]),a=lI(),i=o=>{a||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs($2,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(L2,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(Sj,{})}),y.jsx(M2,{children:"More on this"})]})}),y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(q,{children:e.map(o=>y.jsxs(P2,{align:"center",className:lr({disabled:a}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[y.jsx("span",{children:o}),y.jsx(q,{className:lr({disabled:a},"icon"),children:y.jsx(Oy,{})})]},o))})})]}):null},D2=F.memo(N2),L2=H(q)` +`,C2=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:a,setAbortRequests:i}=Mn(S=>S),{setBudget:o}=ds(S=>S),[s,l]=F.useState(""),[u,c]=F.useState(t),[p,f]=F.useState(!0);F.useEffect(()=>{let S;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(S);f(!0),n()}},[e,s,n,r]),F.useEffect(()=>{s||r&&l(e)},[e,s,r]);const h=S=>{a(o,i,S)};F.useEffect(()=>{t&&u!==t&&c(t)},[t,u]);const m=()=>{f(!1)},b=A2(s,h,u,p);return y.jsx(I2,{onMouseMove:m,children:y.jsx(R2,{children:b})})},N2=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Mn(o=>o),[r]=ds(o=>[o.setBudget]),a=lI(),i=o=>{a||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs($2,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(L2,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(xj,{})}),y.jsx(M2,{children:"More on this"})]})}),y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(q,{children:e.map(o=>y.jsxs(P2,{align:"center",className:lr({disabled:a}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[y.jsx("span",{children:o}),y.jsx(q,{className:lr({disabled:a},"icon"),children:y.jsx(Oy,{})})]},o))})})]}):null},D2=F.memo(N2),L2=H(q)` &.heading { font-weight: 600; color: ${j.white}; @@ -277,7 +277,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b margin: 0 4px 0 8px; color: ${j.white}; } -`,B2=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,newName:i,sourceLink:o,node:s})=>{var T,_;const l=Pt(x=>x.currentSearch),{getNodeKeysByType:u}=uI(x=>x),p=ur(String(a==="show"?"":r),l),f=a?(u(a)||"").split("-"):[],{properties:h={}}=s,[m=""]=f.map(x=>h[x]||""),S=ur(String(m||i),l);return y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[n&&y.jsx(q,{align:"center",pr:16,children:y.jsx(Jn,{size:80,src:n,type:a||""})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:a&&y.jsx(Ai,{type:a})}),o&&y.jsx(z2,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),S&&y.jsx(fx,{"data-testid":"episode-name",children:S}),((T=s==null?void 0:s.properties)==null?void 0:T.summary)&&y.jsx(fx,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx($I,{children:_i.unix(t).fromNow()}),!!p&&y.jsx(U2,{children:p}),e>0&&y.jsx(q,{style:{marginLeft:"auto"},children:y.jsx(Lu,{amt:e})})]})]})]})},fx=H(q)` +`,B2=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,newName:i,sourceLink:o,node:s})=>{var T,_;const l=Pt(E=>E.currentSearch),{getNodeKeysByType:u}=uI(E=>E),p=ur(String(a==="show"?"":r),l),f=a?(u(a)||"").split("-"):[],{properties:h={}}=s,[m=""]=f.map(E=>h[E]||""),S=ur(String(m||i),l);return y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[n&&y.jsx(q,{align:"center",pr:16,children:y.jsx(Jn,{size:80,src:n,type:a||""})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:a&&y.jsx(Ai,{type:a})}),o&&y.jsx(z2,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:E=>E.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),S&&y.jsx(fx,{"data-testid":"episode-name",children:S}),((T=s==null?void 0:s.properties)==null?void 0:T.summary)&&y.jsx(fx,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx(jI,{children:_i.unix(t).fromNow()}),!!p&&y.jsx(U2,{children:p}),e>0&&y.jsx(q,{style:{marginLeft:"auto"},children:y.jsx(Lu,{amt:e})})]})]})]})},fx=H(q)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -291,7 +291,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b overflow: hidden; white-space: normal; letter-spacing: 0.2px; -`,$I=H(vt)` +`,jI=H(vt)` overflow: hidden; color: ${j.GRAY6}; text-overflow: ellipsis; @@ -331,7 +331,7 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b line-height: 24px; margin: 0; } -`;const U2=H($I)` +`;const U2=H(jI)` align-items: center; flex-shrink: 1; overflow: hidden; @@ -387,11 +387,11 @@ import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as b font-style: normal; font-weight: 600; line-height: 17px; -`;var jI={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(At,function(){var n;function r(){return n.apply(null,arguments)}function a(d){n=d}function i(d){return d instanceof Array||Object.prototype.toString.call(d)==="[object Array]"}function o(d){return d!=null&&Object.prototype.toString.call(d)==="[object Object]"}function s(d,g){return Object.prototype.hasOwnProperty.call(d,g)}function l(d){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(d).length===0;var g;for(g in d)if(s(d,g))return!1;return!0}function u(d){return d===void 0}function c(d){return typeof d=="number"||Object.prototype.toString.call(d)==="[object Number]"}function p(d){return d instanceof Date||Object.prototype.toString.call(d)==="[object Date]"}function f(d,g){var w=[],k,I=d.length;for(k=0;k>>0,k;for(k=0;k0)for(w=0;w>>0,k;for(k=0;k0)for(w=0;w=0;return(U?w?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+k}var ie=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},ye={};function re(d,g,w,k){var I=k;typeof k=="string"&&(I=function(){return this[k]()}),d&&(ye[d]=I),g&&(ye[g[0]]=function(){return D(I.apply(this,arguments),g[1],g[2])}),w&&(ye[w]=function(){return this.localeData().ordinal(I.apply(this,arguments),d)})}function Se(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function je(d){var g=d.match(ie),w,k;for(w=0,k=g.length;w=0&&ne.test(d);)d=d.replace(ne,k),ne.lastIndex=0,w-=1;return d}var de={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 ce(d){var g=this._longDateFormat[d],w=this._longDateFormat[d.toUpperCase()];return g||!w?g:(this._longDateFormat[d]=w.match(ie).map(function(k){return k==="MMMM"||k==="MM"||k==="DD"||k==="dddd"?k.slice(1):k}).join(""),this._longDateFormat[d])}var ee="Invalid date";function _e(){return this._invalidDate}var me="%d",ve=/\d{1,2}/;function Ue(d){return this._ordinal.replace("%d",d)}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 Je(d,g,w,k){var I=this._relativeTime[w];return z(I)?I(d,g,w,k):I.replace(/%d/i,d)}function Ht(d,g){var w=this._relativeTime[d>0?"future":"past"];return z(w)?w(g):w.replace(/%s/i,g)}var ze={};function Ge(d,g){var w=d.toLowerCase();ze[w]=ze[w+"s"]=ze[g]=d}function Xe(d){return typeof d=="string"?ze[d]||ze[d.toLowerCase()]:void 0}function Ft(d){var g={},w,k;for(k in d)s(d,k)&&(w=Xe(k),w&&(g[w]=d[k]));return g}var Wt={};function B(d,g){Wt[d]=g}function Q(d){var g=[],w;for(w in d)s(d,w)&&g.push({unit:w,priority:Wt[w]});return g.sort(function(k,I){return k.priority-I.priority}),g}function oe(d){return d%4===0&&d%100!==0||d%400===0}function pe(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ue(d){var g=+d,w=0;return g!==0&&isFinite(g)&&(w=pe(g)),w}function ke(d,g){return function(w){return w!=null?(Ie(this,d,w),r.updateOffset(this,g),this):Ae(this,d)}}function Ae(d,g){return d.isValid()?d._d["get"+(d._isUTC?"UTC":"")+g]():NaN}function Ie(d,g,w){d.isValid()&&!isNaN(w)&&(g==="FullYear"&&oe(d.year())&&d.month()===1&&d.date()===29?(w=ue(w),d._d["set"+(d._isUTC?"UTC":"")+g](w,d.month(),Ds(w,d.month()))):d._d["set"+(d._isUTC?"UTC":"")+g](w))}function We(d){return d=Xe(d),z(this[d])?this[d]():this}function xt(d,g){if(typeof d=="object"){d=Ft(d);var w=Q(d),k,I=w.length;for(k=0;k68?1900:2e3)};var AS=ke("FullYear",!0);function _L(){return oe(this.year())}function TL(d,g,w,k,I,U,J){var xe;return d<100&&d>=0?(xe=new Date(d+400,g,w,k,I,U,J),isFinite(xe.getFullYear())&&xe.setFullYear(d)):xe=new Date(d,g,w,k,I,U,J),xe}function Pi(d){var g,w;return d<100&&d>=0?(w=Array.prototype.slice.call(arguments),w[0]=d+400,g=new Date(Date.UTC.apply(null,w)),isFinite(g.getUTCFullYear())&&g.setUTCFullYear(d)):g=new Date(Date.UTC.apply(null,arguments)),g}function Ls(d,g,w){var k=7+g-w,I=(7+Pi(d,0,k).getUTCDay()-g)%7;return-I+k-1}function kS(d,g,w,k,I){var U=(7+w-k)%7,J=Ls(d,k,I),xe=1+7*(g-1)+U+J,Ne,tt;return xe<=0?(Ne=d-1,tt=Mi(Ne)+xe):xe>Mi(d)?(Ne=d+1,tt=xe-Mi(d)):(Ne=d,tt=xe),{year:Ne,dayOfYear:tt}}function $i(d,g,w){var k=Ls(d.year(),g,w),I=Math.floor((d.dayOfYear()-k-1)/7)+1,U,J;return I<1?(J=d.year()-1,U=I+Sr(J,g,w)):I>Sr(d.year(),g,w)?(U=I-Sr(d.year(),g,w),J=d.year()+1):(J=d.year(),U=I),{week:U,year:J}}function Sr(d,g,w){var k=Ls(d,g,w),I=Ls(d+1,g,w);return(Mi(d)-k+I)/7}re("w",["ww",2],"wo","week"),re("W",["WW",2],"Wo","isoWeek"),Ge("week","w"),Ge("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",Ze),he("ww",Ze,Le),he("W",Ze),he("WW",Ze,Le),gn(["w","ww","W","WW"],function(d,g,w,k){g[k.substr(0,1)]=ue(d)});function AL(d){return $i(d,this._week.dow,this._week.doy).week}var kL={dow:0,doy:6};function OL(){return this._week.dow}function IL(){return this._week.doy}function RL(d){var g=this.localeData().week(this);return d==null?g:this.add((d-g)*7,"d")}function CL(d){var g=$i(this,1,4).week;return d==null?g:this.add((d-g)*7,"d")}re("d",0,"do","day"),re("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),re("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),re("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),re("e",0,0,"weekday"),re("E",0,0,"isoWeekday"),Ge("day","d"),Ge("weekday","e"),Ge("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",Ze),he("e",Ze),he("E",Ze),he("dd",function(d,g){return g.weekdaysMinRegex(d)}),he("ddd",function(d,g){return g.weekdaysShortRegex(d)}),he("dddd",function(d,g){return g.weekdaysRegex(d)}),gn(["dd","ddd","dddd"],function(d,g,w,k){var I=w._locale.weekdaysParse(d,k,w._strict);I!=null?g.d=I:S(w).invalidWeekday=d}),gn(["d","e","E"],function(d,g,w,k){g[k]=ue(d)});function NL(d,g){return typeof d!="string"?d:isNaN(d)?(d=g.weekdaysParse(d),typeof d=="number"?d:null):parseInt(d,10)}function DL(d,g){return typeof d=="string"?g.weekdaysParse(d)%7||7:isNaN(d)?null:d}function Cc(d,g){return d.slice(g,7).concat(d.slice(0,g))}var LL="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),OS="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ML="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),PL=Gn,$L=Gn,jL=Gn;function FL(d,g){var w=i(this._weekdays)?this._weekdays:this._weekdays[d&&d!==!0&&this._weekdays.isFormat.test(g)?"format":"standalone"];return d===!0?Cc(w,this._week.dow):d?w[d.day()]:w}function BL(d){return d===!0?Cc(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort}function UL(d){return d===!0?Cc(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin}function zL(d,g,w){var k,I,U,J=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],k=0;k<7;++k)U=m([2e3,1]).day(k),this._minWeekdaysParse[k]=this.weekdaysMin(U,"").toLocaleLowerCase(),this._shortWeekdaysParse[k]=this.weekdaysShort(U,"").toLocaleLowerCase(),this._weekdaysParse[k]=this.weekdays(U,"").toLocaleLowerCase();return w?g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1?I:null):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null):(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null):g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1||(I=Et.call(this._shortWeekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):(I=Et.call(this._minWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null))}function GL(d,g,w){var k,I,U;if(this._weekdaysParseExact)return zL.call(this,d,g,w);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),k=0;k<7;k++){if(I=m([2e3,1]).day(k),w&&!this._fullWeekdaysParse[k]&&(this._fullWeekdaysParse[k]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[k]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[k]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[k]||(U="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[k]=new RegExp(U.replace(".",""),"i")),w&&g==="dddd"&&this._fullWeekdaysParse[k].test(d))return k;if(w&&g==="ddd"&&this._shortWeekdaysParse[k].test(d))return k;if(w&&g==="dd"&&this._minWeekdaysParse[k].test(d))return k;if(!w&&this._weekdaysParse[k].test(d))return k}}function qL(d){if(!this.isValid())return d!=null?this:NaN;var g=this._isUTC?this._d.getUTCDay():this._d.getDay();return d!=null?(d=NL(d,this.localeData()),this.add(d-g,"d")):g}function HL(d){if(!this.isValid())return d!=null?this:NaN;var g=(this.day()+7-this.localeData()._week.dow)%7;return d==null?g:this.add(d-g,"d")}function WL(d){if(!this.isValid())return d!=null?this:NaN;if(d!=null){var g=DL(d,this.localeData());return this.day(this.day()%7?g:g-7)}else return this.day()||7}function VL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=PL),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)}function YL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$L),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function KL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jL),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nc(){function d(Jt,Tr){return Tr.length-Jt.length}var g=[],w=[],k=[],I=[],U,J,xe,Ne,tt;for(U=0;U<7;U++)J=m([2e3,1]).day(U),xe=mt(this.weekdaysMin(J,"")),Ne=mt(this.weekdaysShort(J,"")),tt=mt(this.weekdays(J,"")),g.push(xe),w.push(Ne),k.push(tt),I.push(xe),I.push(Ne),I.push(tt);g.sort(d),w.sort(d),k.sort(d),I.sort(d),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Dc(){return this.hours()%12||12}function XL(){return this.hours()||24}re("H",["HH",2],0,"hour"),re("h",["hh",2],0,Dc),re("k",["kk",2],0,XL),re("hmm",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)}),re("hmmss",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),re("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),re("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)});function IS(d,g){re(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),g)})}IS("a",!0),IS("A",!1),Ge("hour","h"),B("hour",13);function RS(d,g){return g._meridiemParse}he("a",RS),he("A",RS),he("H",Ze),he("h",Ze),he("k",Ze),he("HH",Ze,Le),he("hh",Ze,Le),he("kk",Ze,Le),he("hmm",ia),he("hmmss",br),he("Hmm",ia),he("Hmmss",br),Me(["H","HH"],st),Me(["k","kk"],function(d,g,w){var k=ue(d);g[st]=k===24?0:k}),Me(["a","A"],function(d,g,w){w._isPm=w._locale.isPM(d),w._meridiem=d}),Me(["h","hh"],function(d,g,w){g[st]=ue(d),S(w).bigHour=!0}),Me("hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k)),S(w).bigHour=!0}),Me("hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I)),S(w).bigHour=!0}),Me("Hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k))}),Me("Hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I))});function ZL(d){return(d+"").toLowerCase().charAt(0)==="p"}var QL=/[ap]\.?m?\.?/i,JL=ke("Hours",!0);function eM(d,g,w){return d>11?w?"pm":"PM":w?"am":"AM"}var CS={calendar:W,longDateFormat:de,invalidDate:ee,ordinal:me,dayOfMonthOrdinalParse:ve,relativeTime:at,months:hL,monthsShort:xS,week:kL,weekdays:LL,weekdaysMin:ML,weekdaysShort:OS,meridiemParse:QL},ht={},ji={},Fi;function tM(d,g){var w,k=Math.min(d.length,g.length);for(w=0;w0;){if(I=Ms(U.slice(0,w).join("-")),I)return I;if(k&&k.length>=w&&tM(U,k)>=w-1)break;w--}g++}return Fi}function rM(d){return d.match("^[^/\\\\]*$")!=null}function Ms(d){var g=null,w;if(ht[d]===void 0&&e&&e.exports&&rM(d))try{g=Fi._abbr,w=Y$,w("./locale/"+d),Fr(g)}catch{ht[d]=null}return ht[d]}function Fr(d,g){var w;return d&&(u(g)?w=xr(d):w=Lc(d,g),w?Fi=w:typeof console<"u"&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),Fi._abbr}function Lc(d,g){if(g!==null){var w,k=CS;if(g.abbr=d,ht[d]!=null)P("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."),k=ht[d]._config;else if(g.parentLocale!=null)if(ht[g.parentLocale]!=null)k=ht[g.parentLocale]._config;else if(w=Ms(g.parentLocale),w!=null)k=w._config;else return ji[g.parentLocale]||(ji[g.parentLocale]=[]),ji[g.parentLocale].push({name:d,config:g}),null;return ht[d]=new K(G(k,g)),ji[d]&&ji[d].forEach(function(I){Lc(I.name,I.config)}),Fr(d),ht[d]}else return delete ht[d],null}function aM(d,g){if(g!=null){var w,k,I=CS;ht[d]!=null&&ht[d].parentLocale!=null?ht[d].set(G(ht[d]._config,g)):(k=Ms(d),k!=null&&(I=k._config),g=G(I,g),k==null&&(g.abbr=d),w=new K(g),w.parentLocale=ht[d],ht[d]=w),Fr(d)}else ht[d]!=null&&(ht[d].parentLocale!=null?(ht[d]=ht[d].parentLocale,d===Fr()&&Fr(d)):ht[d]!=null&&delete ht[d]);return ht[d]}function xr(d){var g;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return Fi;if(!i(d)){if(g=Ms(d),g)return g;d=[d]}return nM(d)}function iM(){return X(ht)}function Mc(d){var g,w=d._a;return w&&S(d).overflow===-2&&(g=w[Qe]<0||w[Qe]>11?Qe:w[Bt]<1||w[Bt]>Ds(w[Ce],w[Qe])?Bt:w[st]<0||w[st]>24||w[st]===24&&(w[bt]!==0||w[qn]!==0||w[vr]!==0)?st:w[bt]<0||w[bt]>59?bt:w[qn]<0||w[qn]>59?qn:w[vr]<0||w[vr]>999?vr:-1,S(d)._overflowDayOfYear&&(gBt)&&(g=Bt),S(d)._overflowWeeks&&g===-1&&(g=Pe),S(d)._overflowWeekday&&g===-1&&(g=Qt),S(d).overflow=g),d}var oM=/^\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)?)?$/,sM=/^\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)?)?$/,lM=/Z|[+-]\d\d(?::?\d\d)?/,Ps=[["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]],Pc=[["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/]],uM=/^\/?Date\((-?\d+)/i,cM=/^(?:(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}))$/,dM={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 DS(d){var g,w,k=d._i,I=oM.exec(k)||sM.exec(k),U,J,xe,Ne,tt=Ps.length,Jt=Pc.length;if(I){for(S(d).iso=!0,g=0,w=tt;gMi(J)||d._dayOfYear===0)&&(S(d)._overflowDayOfYear=!0),w=Pi(J,0,d._dayOfYear),d._a[Qe]=w.getUTCMonth(),d._a[Bt]=w.getUTCDate()),g=0;g<3&&d._a[g]==null;++g)d._a[g]=k[g]=I[g];for(;g<7;g++)d._a[g]=k[g]=d._a[g]==null?g===2?1:0:d._a[g];d._a[st]===24&&d._a[bt]===0&&d._a[qn]===0&&d._a[vr]===0&&(d._nextDay=!0,d._a[st]=0),d._d=(d._useUTC?Pi:TL).apply(null,k),U=d._useUTC?d._d.getUTCDay():d._d.getDay(),d._tzm!=null&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[st]=24),d._w&&typeof d._w.d<"u"&&d._w.d!==U&&(S(d).weekdayMismatch=!0)}}function vM(d){var g,w,k,I,U,J,xe,Ne,tt;g=d._w,g.GG!=null||g.W!=null||g.E!=null?(U=1,J=4,w=Da(g.GG,d._a[Ce],$i(dt(),1,4).year),k=Da(g.W,1),I=Da(g.E,1),(I<1||I>7)&&(Ne=!0)):(U=d._locale._week.dow,J=d._locale._week.doy,tt=$i(dt(),U,J),w=Da(g.gg,d._a[Ce],tt.year),k=Da(g.w,tt.week),g.d!=null?(I=g.d,(I<0||I>6)&&(Ne=!0)):g.e!=null?(I=g.e+U,(g.e<0||g.e>6)&&(Ne=!0)):I=U),k<1||k>Sr(w,U,J)?S(d)._overflowWeeks=!0:Ne!=null?S(d)._overflowWeekday=!0:(xe=kS(w,k,I,U,J),d._a[Ce]=xe.year,d._dayOfYear=xe.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function jc(d){if(d._f===r.ISO_8601){DS(d);return}if(d._f===r.RFC_2822){LS(d);return}d._a=[],S(d).empty=!0;var g=""+d._i,w,k,I,U,J,xe=g.length,Ne=0,tt,Jt;for(I=ae(d._f,d._locale).match(ie)||[],Jt=I.length,w=0;w0&&S(d).unusedInput.push(J),g=g.slice(g.indexOf(k)+k.length),Ne+=k.length),ye[U]?(k?S(d).empty=!1:S(d).unusedTokens.push(U),Na(U,k,d)):d._strict&&!k&&S(d).unusedTokens.push(U);S(d).charsLeftOver=xe-Ne,g.length>0&&S(d).unusedInput.push(g),d._a[st]<=12&&S(d).bigHour===!0&&d._a[st]>0&&(S(d).bigHour=void 0),S(d).parsedDateParts=d._a.slice(0),S(d).meridiem=d._meridiem,d._a[st]=SM(d._locale,d._a[st],d._meridiem),tt=S(d).era,tt!==null&&(d._a[Ce]=d._locale.erasConvertYear(tt,d._a[Ce])),$c(d),Mc(d)}function SM(d,g,w){var k;return w==null?g:d.meridiemHour!=null?d.meridiemHour(g,w):(d.isPM!=null&&(k=d.isPM(w),k&&g<12&&(g+=12),!k&&g===12&&(g=0)),g)}function xM(d){var g,w,k,I,U,J,xe=!1,Ne=d._f.length;if(Ne===0){S(d).invalidFormat=!0,d._d=new Date(NaN);return}for(I=0;Ithis?this:d:x()});function $S(d,g){var w,k;if(g.length===1&&i(g[0])&&(g=g[0]),!g.length)return dt();for(w=g[0],k=1;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zM(){if(!u(this._isDSTShifted))return this._isDSTShifted;var d={},g;return v(d,this),d=MS(d),d._a?(g=d._isUTC?m(d._a):dt(d._a),this._isDSTShifted=this.isValid()&&DM(d._a,g.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GM(){return this.isValid()?!this._isUTC:!1}function qM(){return this.isValid()?this._isUTC:!1}function FS(){return this.isValid()?this._isUTC&&this._offset===0:!1}var HM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hn(d,g){var w=d,k=null,I,U,J;return js(d)?w={ms:d._milliseconds,d:d._days,M:d._months}:c(d)||!isNaN(+d)?(w={},g?w[g]=+d:w.milliseconds=+d):(k=HM.exec(d))?(I=k[1]==="-"?-1:1,w={y:0,d:ue(k[Bt])*I,h:ue(k[st])*I,m:ue(k[bt])*I,s:ue(k[qn])*I,ms:ue(Fc(k[vr]*1e3))*I}):(k=WM.exec(d))?(I=k[1]==="-"?-1:1,w={y:ua(k[2],I),M:ua(k[3],I),w:ua(k[4],I),d:ua(k[5],I),h:ua(k[6],I),m:ua(k[7],I),s:ua(k[8],I)}):w==null?w={}:typeof w=="object"&&("from"in w||"to"in w)&&(J=VM(dt(w.from),dt(w.to)),w={},w.ms=J.milliseconds,w.M=J.months),U=new $s(w),js(d)&&s(d,"_locale")&&(U._locale=d._locale),js(d)&&s(d,"_isValid")&&(U._isValid=d._isValid),U}Hn.fn=$s.prototype,Hn.invalid=NM;function ua(d,g){var w=d&&parseFloat(d.replace(",","."));return(isNaN(w)?0:w)*g}function BS(d,g){var w={};return w.months=g.month()-d.month()+(g.year()-d.year())*12,d.clone().add(w.months,"M").isAfter(g)&&--w.months,w.milliseconds=+g-+d.clone().add(w.months,"M"),w}function VM(d,g){var w;return d.isValid()&&g.isValid()?(g=Uc(g,d),d.isBefore(g)?w=BS(d,g):(w=BS(g,d),w.milliseconds=-w.milliseconds,w.months=-w.months),w):{milliseconds:0,months:0}}function US(d,g){return function(w,k){var I,U;return k!==null&&!isNaN(+k)&&(P(g,"moment()."+g+"(period, number) is deprecated. Please use moment()."+g+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),U=w,w=k,k=U),I=Hn(w,k),zS(this,I,d),this}}function zS(d,g,w,k){var I=g._milliseconds,U=Fc(g._days),J=Fc(g._months);d.isValid()&&(k=k??!0,J&&wS(d,Ae(d,"Month")+J*w),U&&Ie(d,"Date",Ae(d,"Date")+U*w),I&&d._d.setTime(d._d.valueOf()+I*w),k&&r.updateOffset(d,U||J))}var YM=US(1,"add"),KM=US(-1,"subtract");function GS(d){return typeof d=="string"||d instanceof String}function XM(d){return R(d)||p(d)||GS(d)||c(d)||QM(d)||ZM(d)||d===null||d===void 0}function ZM(d){var g=o(d)&&!l(d),w=!1,k=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,U,J=k.length;for(I=0;Iw.valueOf():w.valueOf()9999?we(w,g?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?g?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",we(w,"Z")):we(w,g?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pP(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d="moment",g="",w,k,I,U;return this.isLocal()||(d=this.utcOffset()===0?"moment.utc":"moment.parseZone",g="Z"),w="["+d+'("]',k=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",U=g+'[")]',this.format(w+k+I+U)}function fP(d){d||(d=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var g=we(this,d);return this.localeData().postformat(g)}function hP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({to:this,from:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function gP(d){return this.from(dt(),d)}function mP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({from:this,to:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function bP(d){return this.to(dt(),d)}function qS(d){var g;return d===void 0?this._locale._abbr:(g=xr(d),g!=null&&(this._locale=g),this)}var HS=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return d===void 0?this.localeData():this.locale(d)});function WS(){return this._locale}var Bs=1e3,La=60*Bs,Us=60*La,VS=(365*400+97)*24*Us;function Ma(d,g){return(d%g+g)%g}function YS(d,g,w){return d<100&&d>=0?new Date(d+400,g,w)-VS:new Date(d,g,w).valueOf()}function KS(d,g,w){return d<100&&d>=0?Date.UTC(d+400,g,w)-VS:Date.UTC(d,g,w)}function yP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year(),0,1);break;case"quarter":g=w(this.year(),this.month()-this.month()%3,1);break;case"month":g=w(this.year(),this.month(),1);break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":g=w(this.year(),this.month(),this.date());break;case"hour":g=this._d.valueOf(),g-=Ma(g+(this._isUTC?0:this.utcOffset()*La),Us);break;case"minute":g=this._d.valueOf(),g-=Ma(g,La);break;case"second":g=this._d.valueOf(),g-=Ma(g,Bs);break}return this._d.setTime(g),r.updateOffset(this,!0),this}function vP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year()+1,0,1)-1;break;case"quarter":g=w(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":g=w(this.year(),this.month()+1,1)-1;break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":g=w(this.year(),this.month(),this.date()+1)-1;break;case"hour":g=this._d.valueOf(),g+=Us-Ma(g+(this._isUTC?0:this.utcOffset()*La),Us)-1;break;case"minute":g=this._d.valueOf(),g+=La-Ma(g,La)-1;break;case"second":g=this._d.valueOf(),g+=Bs-Ma(g,Bs)-1;break}return this._d.setTime(g),r.updateOffset(this,!0),this}function SP(){return this._d.valueOf()-(this._offset||0)*6e4}function xP(){return Math.floor(this.valueOf()/1e3)}function EP(){return new Date(this.valueOf())}function wP(){var d=this;return[d.year(),d.month(),d.date(),d.hour(),d.minute(),d.second(),d.millisecond()]}function _P(){var d=this;return{years:d.year(),months:d.month(),date:d.date(),hours:d.hours(),minutes:d.minutes(),seconds:d.seconds(),milliseconds:d.milliseconds()}}function TP(){return this.isValid()?this.toISOString():null}function AP(){return _(this)}function kP(){return h({},S(this))}function OP(){return S(this).overflow}function IP(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}re("N",0,0,"eraAbbr"),re("NN",0,0,"eraAbbr"),re("NNN",0,0,"eraAbbr"),re("NNNN",0,0,"eraName"),re("NNNNN",0,0,"eraNarrow"),re("y",["y",1],"yo","eraYear"),re("y",["yy",2],0,"eraYear"),re("y",["yyy",3],0,"eraYear"),re("y",["yyyy",4],0,"eraYear"),he("N",Gc),he("NN",Gc),he("NNN",Gc),he("NNNN",BP),he("NNNNN",UP),Me(["N","NN","NNN","NNNN","NNNNN"],function(d,g,w,k){var I=w._locale.erasParse(d,k,w._strict);I?S(w).era=I:S(w).invalidEra=d}),he("y",Un),he("yy",Un),he("yyy",Un),he("yyyy",Un),he("yo",zP),Me(["y","yy","yyy","yyyy"],Ce),Me(["yo"],function(d,g,w,k){var I;w._locale._eraYearOrdinalRegex&&(I=d.match(w._locale._eraYearOrdinalRegex)),w._locale.eraYearOrdinalParse?g[Ce]=w._locale.eraYearOrdinalParse(d,I):g[Ce]=parseInt(d,10)});function RP(d,g){var w,k,I,U=this._eras||xr("en")._eras;for(w=0,k=U.length;w=0)return U[k]}function NP(d,g){var w=d.since<=d.until?1:-1;return g===void 0?r(d.since).year():r(d.since).year()+(g-d.offset)*w}function DP(){var d,g,w,k=this.localeData().eras();for(d=0,g=k.length;dU&&(g=U),KP.call(this,d,g,w,k,I))}function KP(d,g,w,k,I){var U=kS(d,g,w,k,I),J=Pi(U.year,0,U.dayOfYear);return this.year(J.getUTCFullYear()),this.month(J.getUTCMonth()),this.date(J.getUTCDate()),this}re("Q",0,"Qo","quarter"),Ge("quarter","Q"),B("quarter",7),he("Q",it),Me("Q",function(d,g){g[Qe]=(ue(d)-1)*3});function XP(d){return d==null?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)}re("D",["DD",2],"Do","date"),Ge("date","D"),B("date",9),he("D",Ze),he("DD",Ze,Le),he("Do",function(d,g){return d?g._dayOfMonthOrdinalParse||g._ordinalParse:g._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],Bt),Me("Do",function(d,g){g[Bt]=ue(d.match(Ze)[0])});var ZS=ke("Date",!0);re("DDD",["DDDD",3],"DDDo","dayOfYear"),Ge("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",Fn),he("DDDD",It),Me(["DDD","DDDD"],function(d,g,w){w._dayOfYear=ue(d)});function ZP(d){var g=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return d==null?g:this.add(d-g,"d")}re("m",["mm",2],0,"minute"),Ge("minute","m"),B("minute",14),he("m",Ze),he("mm",Ze,Le),Me(["m","mm"],bt);var QP=ke("Minutes",!1);re("s",["ss",2],0,"second"),Ge("second","s"),B("second",15),he("s",Ze),he("ss",Ze,Le),Me(["s","ss"],qn);var JP=ke("Seconds",!1);re("S",0,0,function(){return~~(this.millisecond()/100)}),re(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),re(0,["SSS",3],0,"millisecond"),re(0,["SSSS",4],0,function(){return this.millisecond()*10}),re(0,["SSSSS",5],0,function(){return this.millisecond()*100}),re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ge("millisecond","ms"),B("millisecond",16),he("S",Fn,it),he("SS",Fn,Le),he("SSS",Fn,It);var Br,QS;for(Br="SSSS";Br.length<=9;Br+="S")he(Br,Un);function e$(d,g){g[vr]=ue(("0."+d)*1e3)}for(Br="S";Br.length<=9;Br+="S")Me(Br,e$);QS=ke("Milliseconds",!1),re("z",0,0,"zoneAbbr"),re("zz",0,0,"zoneName");function t$(){return this._isUTC?"UTC":""}function n$(){return this._isUTC?"Coordinated Universal Time":""}var se=O.prototype;se.add=YM,se.calendar=tP,se.clone=nP,se.diff=uP,se.endOf=vP,se.format=fP,se.from=hP,se.fromNow=gP,se.to=mP,se.toNow=bP,se.get=We,se.invalidAt=OP,se.isAfter=rP,se.isBefore=aP,se.isBetween=iP,se.isSame=oP,se.isSameOrAfter=sP,se.isSameOrBefore=lP,se.isValid=AP,se.lang=HS,se.locale=qS,se.localeData=WS,se.max=AM,se.min=TM,se.parsingFlags=kP,se.set=xt,se.startOf=yP,se.subtract=KM,se.toArray=wP,se.toObject=_P,se.toDate=EP,se.toISOString=dP,se.inspect=pP,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=TP,se.toString=cP,se.unix=xP,se.valueOf=SP,se.creationData=IP,se.eraName=DP,se.eraNarrow=LP,se.eraAbbr=MP,se.eraYear=PP,se.year=AS,se.isLeapYear=_L,se.weekYear=GP,se.isoWeekYear=qP,se.quarter=se.quarters=XP,se.month=_S,se.daysInMonth=xL,se.week=se.weeks=RL,se.isoWeek=se.isoWeeks=CL,se.weeksInYear=VP,se.weeksInWeekYear=YP,se.isoWeeksInYear=HP,se.isoWeeksInISOWeekYear=WP,se.date=ZS,se.day=se.days=qL,se.weekday=HL,se.isoWeekday=WL,se.dayOfYear=ZP,se.hour=se.hours=JL,se.minute=se.minutes=QP,se.second=se.seconds=JP,se.millisecond=se.milliseconds=QS,se.utcOffset=MM,se.utc=$M,se.local=jM,se.parseZone=FM,se.hasAlignedHourOffset=BM,se.isDST=UM,se.isLocal=GM,se.isUtcOffset=qM,se.isUtc=FS,se.isUTC=FS,se.zoneAbbr=t$,se.zoneName=n$,se.dates=$("dates accessor is deprecated. Use date instead.",ZS),se.months=$("months accessor is deprecated. Use month instead",_S),se.years=$("years accessor is deprecated. Use year instead",AS),se.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",PM),se.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zM);function r$(d){return dt(d*1e3)}function a$(){return dt.apply(null,arguments).parseZone()}function JS(d){return d}var Ve=K.prototype;Ve.calendar=Z,Ve.longDateFormat=ce,Ve.invalidDate=_e,Ve.ordinal=Ue,Ve.preparse=JS,Ve.postformat=JS,Ve.relativeTime=Je,Ve.pastFuture=Ht,Ve.set=V,Ve.eras=RP,Ve.erasParse=CP,Ve.erasConvertYear=NP,Ve.erasAbbrRegex=jP,Ve.erasNameRegex=$P,Ve.erasNarrowRegex=FP,Ve.months=bL,Ve.monthsShort=yL,Ve.monthsParse=SL,Ve.monthsRegex=wL,Ve.monthsShortRegex=EL,Ve.week=AL,Ve.firstDayOfYear=IL,Ve.firstDayOfWeek=OL,Ve.weekdays=FL,Ve.weekdaysMin=UL,Ve.weekdaysShort=BL,Ve.weekdaysParse=GL,Ve.weekdaysRegex=VL,Ve.weekdaysShortRegex=YL,Ve.weekdaysMinRegex=KL,Ve.isPM=ZL,Ve.meridiem=eM;function Gs(d,g,w,k){var I=xr(),U=m().set(k,g);return I[w](U,d)}function ex(d,g,w){if(c(d)&&(g=d,d=void 0),d=d||"",g!=null)return Gs(d,g,w,"month");var k,I=[];for(k=0;k<12;k++)I[k]=Gs(d,k,w,"month");return I}function Hc(d,g,w,k){typeof d=="boolean"?(c(g)&&(w=g,g=void 0),g=g||""):(g=d,w=g,d=!1,c(g)&&(w=g,g=void 0),g=g||"");var I=xr(),U=d?I._week.dow:0,J,xe=[];if(w!=null)return Gs(g,(w+U)%7,k,"day");for(J=0;J<7;J++)xe[J]=Gs(g,(J+U)%7,k,"day");return xe}function i$(d,g){return ex(d,g,"months")}function o$(d,g){return ex(d,g,"monthsShort")}function s$(d,g,w){return Hc(d,g,w,"weekdays")}function l$(d,g,w){return Hc(d,g,w,"weekdaysShort")}function u$(d,g,w){return Hc(d,g,w,"weekdaysMin")}Fr("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(d){var g=d%10,w=ue(d%100/10)===1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th";return d+w}}),r.lang=$("moment.lang is deprecated. Use moment.locale instead.",Fr),r.langData=$("moment.langData is deprecated. Use moment.localeData instead.",xr);var Er=Math.abs;function c$(){var d=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),d.milliseconds=Er(d.milliseconds),d.seconds=Er(d.seconds),d.minutes=Er(d.minutes),d.hours=Er(d.hours),d.months=Er(d.months),d.years=Er(d.years),this}function tx(d,g,w,k){var I=Hn(g,w);return d._milliseconds+=k*I._milliseconds,d._days+=k*I._days,d._months+=k*I._months,d._bubble()}function d$(d,g){return tx(this,d,g,1)}function p$(d,g){return tx(this,d,g,-1)}function nx(d){return d<0?Math.floor(d):Math.ceil(d)}function f$(){var d=this._milliseconds,g=this._days,w=this._months,k=this._data,I,U,J,xe,Ne;return d>=0&&g>=0&&w>=0||d<=0&&g<=0&&w<=0||(d+=nx(Wc(w)+g)*864e5,g=0,w=0),k.milliseconds=d%1e3,I=pe(d/1e3),k.seconds=I%60,U=pe(I/60),k.minutes=U%60,J=pe(U/60),k.hours=J%24,g+=pe(J/24),Ne=pe(rx(g)),w+=Ne,g-=nx(Wc(Ne)),xe=pe(w/12),w%=12,k.days=g,k.months=w,k.years=xe,this}function rx(d){return d*4800/146097}function Wc(d){return d*146097/4800}function h$(d){if(!this.isValid())return NaN;var g,w,k=this._milliseconds;if(d=Xe(d),d==="month"||d==="quarter"||d==="year")switch(g=this._days+k/864e5,w=this._months+rx(g),d){case"month":return w;case"quarter":return w/3;case"year":return w/12}else switch(g=this._days+Math.round(Wc(this._months)),d){case"week":return g/7+k/6048e5;case"day":return g+k/864e5;case"hour":return g*24+k/36e5;case"minute":return g*1440+k/6e4;case"second":return g*86400+k/1e3;case"millisecond":return Math.floor(g*864e5)+k;default:throw new Error("Unknown unit "+d)}}function g$(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function wr(d){return function(){return this.as(d)}}var m$=wr("ms"),b$=wr("s"),y$=wr("m"),v$=wr("h"),S$=wr("d"),x$=wr("w"),E$=wr("M"),w$=wr("Q"),_$=wr("y");function T$(){return Hn(this)}function A$(d){return d=Xe(d),this.isValid()?this[d+"s"]():NaN}function ca(d){return function(){return this.isValid()?this._data[d]:NaN}}var k$=ca("milliseconds"),O$=ca("seconds"),I$=ca("minutes"),R$=ca("hours"),C$=ca("days"),N$=ca("months"),D$=ca("years");function L$(){return pe(this.days()/7)}var _r=Math.round,Pa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function M$(d,g,w,k,I){return I.relativeTime(g||1,!!w,d,k)}function P$(d,g,w,k){var I=Hn(d).abs(),U=_r(I.as("s")),J=_r(I.as("m")),xe=_r(I.as("h")),Ne=_r(I.as("d")),tt=_r(I.as("M")),Jt=_r(I.as("w")),Tr=_r(I.as("y")),Ur=U<=w.ss&&["s",U]||U0,Ur[4]=k,M$.apply(null,Ur)}function $$(d){return d===void 0?_r:typeof d=="function"?(_r=d,!0):!1}function j$(d,g){return Pa[d]===void 0?!1:g===void 0?Pa[d]:(Pa[d]=g,d==="s"&&(Pa.ss=g-1),!0)}function F$(d,g){if(!this.isValid())return this.localeData().invalidDate();var w=!1,k=Pa,I,U;return typeof d=="object"&&(g=d,d=!1),typeof d=="boolean"&&(w=d),typeof g=="object"&&(k=Object.assign({},Pa,g),g.s!=null&&g.ss==null&&(k.ss=g.s-1)),I=this.localeData(),U=P$(this,!w,k,I),w&&(U=I.pastFuture(+this,U)),I.postformat(U)}var Vc=Math.abs;function $a(d){return(d>0)-(d<0)||+d}function qs(){if(!this.isValid())return this.localeData().invalidDate();var d=Vc(this._milliseconds)/1e3,g=Vc(this._days),w=Vc(this._months),k,I,U,J,xe=this.asSeconds(),Ne,tt,Jt,Tr;return xe?(k=pe(d/60),I=pe(k/60),d%=60,k%=60,U=pe(w/12),w%=12,J=d?d.toFixed(3).replace(/\.?0+$/,""):"",Ne=xe<0?"-":"",tt=$a(this._months)!==$a(xe)?"-":"",Jt=$a(this._days)!==$a(xe)?"-":"",Tr=$a(this._milliseconds)!==$a(xe)?"-":"",Ne+"P"+(U?tt+U+"Y":"")+(w?tt+w+"M":"")+(g?Jt+g+"D":"")+(I||k||d?"T":"")+(I?Tr+I+"H":"")+(k?Tr+k+"M":"")+(d?Tr+J+"S":"")):"P0D"}var qe=$s.prototype;qe.isValid=CM,qe.abs=c$,qe.add=d$,qe.subtract=p$,qe.as=h$,qe.asMilliseconds=m$,qe.asSeconds=b$,qe.asMinutes=y$,qe.asHours=v$,qe.asDays=S$,qe.asWeeks=x$,qe.asMonths=E$,qe.asQuarters=w$,qe.asYears=_$,qe.valueOf=g$,qe._bubble=f$,qe.clone=T$,qe.get=A$,qe.milliseconds=k$,qe.seconds=O$,qe.minutes=I$,qe.hours=R$,qe.days=C$,qe.weeks=L$,qe.months=N$,qe.years=D$,qe.humanize=F$,qe.toISOString=qs,qe.toString=qs,qe.toJSON=qs,qe.locale=qS,qe.localeData=WS,qe.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),qe.lang=HS,re("X",0,0,"unix"),re("x",0,0,"valueOf"),he("x",zn),he("X",Li),Me("X",function(d,g,w){w._d=new Date(parseFloat(d)*1e3)}),Me("x",function(d,g,w){w._d=new Date(ue(d))});//! moment.js -return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.unix=r$,r.months=i$,r.isDate=p,r.locale=Fr,r.invalid=x,r.duration=Hn,r.isMoment=R,r.weekdays=s$,r.parseZone=a$,r.localeData=xr,r.isDuration=js,r.monthsShort=o$,r.weekdaysMin=u$,r.defineLocale=Lc,r.updateLocale=aM,r.locales=iM,r.weekdaysShort=l$,r.normalizeUnits=Xe,r.relativeTimeRounding=$$,r.relativeTimeThreshold=j$,r.calendarFormat=eP,r.prototype=se,r.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"},r})})(jI);var W2=jI.exports;const FI=St(W2),V2=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(q,{direction:"column",children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:y.jsx(Ai,{type:t})}),n&&y.jsx(ri,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(aB,{"data-testid":"episode-description",children:e}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(q,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Aa,{children:FI.unix(r).fromNow()})}),n&&y.jsxs(ri,{href:n,onClick:a=>a.stopPropagation(),target:"_blank",children:[y.jsx(SI,{}),y.jsx(Y2,{children:n})]})]})]}),Y2=H(vt)` +`+new Error().stack),w=!1}return g.apply(this,arguments)},g)}var N={};function P(d,g){r.deprecationHandler!=null&&r.deprecationHandler(d,g),N[d]||(C(g),N[d]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function z(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}function V(d){var g,w;for(w in d)s(d,w)&&(g=d[w],z(g)?this[w]=g:this["_"+w]=g);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function G(d,g){var w=h({},d),k;for(k in g)s(g,k)&&(o(d[k])&&o(g[k])?(w[k]={},h(w[k],d[k]),h(w[k],g[k])):g[k]!=null?w[k]=g[k]:delete w[k]);for(k in d)s(d,k)&&!s(g,k)&&o(d[k])&&(w[k]=h({},w[k]));return w}function K(d){d!=null&&this.set(d)}var X;Object.keys?X=Object.keys:X=function(d){var g,w=[];for(g in d)s(d,g)&&w.push(g);return w};var W={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Z(d,g,w){var k=this._calendar[d]||this._calendar.sameElse;return z(k)?k.call(g,w):k}function D(d,g,w){var k=""+Math.abs(d),I=g-k.length,U=d>=0;return(U?w?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+k}var ie=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},ye={};function re(d,g,w,k){var I=k;typeof k=="string"&&(I=function(){return this[k]()}),d&&(ye[d]=I),g&&(ye[g[0]]=function(){return D(I.apply(this,arguments),g[1],g[2])}),w&&(ye[w]=function(){return this.localeData().ordinal(I.apply(this,arguments),d)})}function Se(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function je(d){var g=d.match(ie),w,k;for(w=0,k=g.length;w=0&&ne.test(d);)d=d.replace(ne,k),ne.lastIndex=0,w-=1;return d}var de={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 ce(d){var g=this._longDateFormat[d],w=this._longDateFormat[d.toUpperCase()];return g||!w?g:(this._longDateFormat[d]=w.match(ie).map(function(k){return k==="MMMM"||k==="MM"||k==="DD"||k==="dddd"?k.slice(1):k}).join(""),this._longDateFormat[d])}var ee="Invalid date";function _e(){return this._invalidDate}var me="%d",ve=/\d{1,2}/;function Ue(d){return this._ordinal.replace("%d",d)}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 Je(d,g,w,k){var I=this._relativeTime[w];return z(I)?I(d,g,w,k):I.replace(/%d/i,d)}function Ht(d,g){var w=this._relativeTime[d>0?"future":"past"];return z(w)?w(g):w.replace(/%s/i,g)}var ze={};function Ge(d,g){var w=d.toLowerCase();ze[w]=ze[w+"s"]=ze[g]=d}function Xe(d){return typeof d=="string"?ze[d]||ze[d.toLowerCase()]:void 0}function Ft(d){var g={},w,k;for(k in d)s(d,k)&&(w=Xe(k),w&&(g[w]=d[k]));return g}var Wt={};function B(d,g){Wt[d]=g}function Q(d){var g=[],w;for(w in d)s(d,w)&&g.push({unit:w,priority:Wt[w]});return g.sort(function(k,I){return k.priority-I.priority}),g}function oe(d){return d%4===0&&d%100!==0||d%400===0}function pe(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ue(d){var g=+d,w=0;return g!==0&&isFinite(g)&&(w=pe(g)),w}function ke(d,g){return function(w){return w!=null?(Ie(this,d,w),r.updateOffset(this,g),this):Ae(this,d)}}function Ae(d,g){return d.isValid()?d._d["get"+(d._isUTC?"UTC":"")+g]():NaN}function Ie(d,g,w){d.isValid()&&!isNaN(w)&&(g==="FullYear"&&oe(d.year())&&d.month()===1&&d.date()===29?(w=ue(w),d._d["set"+(d._isUTC?"UTC":"")+g](w,d.month(),Ds(w,d.month()))):d._d["set"+(d._isUTC?"UTC":"")+g](w))}function We(d){return d=Xe(d),z(this[d])?this[d]():this}function xt(d,g){if(typeof d=="object"){d=Ft(d);var w=Q(d),k,I=w.length;for(k=0;k68?1900:2e3)};var AS=ke("FullYear",!0);function TL(){return oe(this.year())}function AL(d,g,w,k,I,U,J){var xe;return d<100&&d>=0?(xe=new Date(d+400,g,w,k,I,U,J),isFinite(xe.getFullYear())&&xe.setFullYear(d)):xe=new Date(d,g,w,k,I,U,J),xe}function Pi(d){var g,w;return d<100&&d>=0?(w=Array.prototype.slice.call(arguments),w[0]=d+400,g=new Date(Date.UTC.apply(null,w)),isFinite(g.getUTCFullYear())&&g.setUTCFullYear(d)):g=new Date(Date.UTC.apply(null,arguments)),g}function Ls(d,g,w){var k=7+g-w,I=(7+Pi(d,0,k).getUTCDay()-g)%7;return-I+k-1}function kS(d,g,w,k,I){var U=(7+w-k)%7,J=Ls(d,k,I),xe=1+7*(g-1)+U+J,Ne,tt;return xe<=0?(Ne=d-1,tt=Mi(Ne)+xe):xe>Mi(d)?(Ne=d+1,tt=xe-Mi(d)):(Ne=d,tt=xe),{year:Ne,dayOfYear:tt}}function $i(d,g,w){var k=Ls(d.year(),g,w),I=Math.floor((d.dayOfYear()-k-1)/7)+1,U,J;return I<1?(J=d.year()-1,U=I+Sr(J,g,w)):I>Sr(d.year(),g,w)?(U=I-Sr(d.year(),g,w),J=d.year()+1):(J=d.year(),U=I),{week:U,year:J}}function Sr(d,g,w){var k=Ls(d,g,w),I=Ls(d+1,g,w);return(Mi(d)-k+I)/7}re("w",["ww",2],"wo","week"),re("W",["WW",2],"Wo","isoWeek"),Ge("week","w"),Ge("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",Ze),he("ww",Ze,Le),he("W",Ze),he("WW",Ze,Le),gn(["w","ww","W","WW"],function(d,g,w,k){g[k.substr(0,1)]=ue(d)});function kL(d){return $i(d,this._week.dow,this._week.doy).week}var OL={dow:0,doy:6};function IL(){return this._week.dow}function RL(){return this._week.doy}function CL(d){var g=this.localeData().week(this);return d==null?g:this.add((d-g)*7,"d")}function NL(d){var g=$i(this,1,4).week;return d==null?g:this.add((d-g)*7,"d")}re("d",0,"do","day"),re("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),re("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),re("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),re("e",0,0,"weekday"),re("E",0,0,"isoWeekday"),Ge("day","d"),Ge("weekday","e"),Ge("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",Ze),he("e",Ze),he("E",Ze),he("dd",function(d,g){return g.weekdaysMinRegex(d)}),he("ddd",function(d,g){return g.weekdaysShortRegex(d)}),he("dddd",function(d,g){return g.weekdaysRegex(d)}),gn(["dd","ddd","dddd"],function(d,g,w,k){var I=w._locale.weekdaysParse(d,k,w._strict);I!=null?g.d=I:S(w).invalidWeekday=d}),gn(["d","e","E"],function(d,g,w,k){g[k]=ue(d)});function DL(d,g){return typeof d!="string"?d:isNaN(d)?(d=g.weekdaysParse(d),typeof d=="number"?d:null):parseInt(d,10)}function LL(d,g){return typeof d=="string"?g.weekdaysParse(d)%7||7:isNaN(d)?null:d}function Cc(d,g){return d.slice(g,7).concat(d.slice(0,g))}var ML="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),OS="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),PL="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$L=Gn,jL=Gn,FL=Gn;function BL(d,g){var w=i(this._weekdays)?this._weekdays:this._weekdays[d&&d!==!0&&this._weekdays.isFormat.test(g)?"format":"standalone"];return d===!0?Cc(w,this._week.dow):d?w[d.day()]:w}function UL(d){return d===!0?Cc(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort}function zL(d){return d===!0?Cc(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin}function GL(d,g,w){var k,I,U,J=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],k=0;k<7;++k)U=m([2e3,1]).day(k),this._minWeekdaysParse[k]=this.weekdaysMin(U,"").toLocaleLowerCase(),this._shortWeekdaysParse[k]=this.weekdaysShort(U,"").toLocaleLowerCase(),this._weekdaysParse[k]=this.weekdays(U,"").toLocaleLowerCase();return w?g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1?I:null):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null):(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null):g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1||(I=Et.call(this._shortWeekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):(I=Et.call(this._minWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null))}function qL(d,g,w){var k,I,U;if(this._weekdaysParseExact)return GL.call(this,d,g,w);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),k=0;k<7;k++){if(I=m([2e3,1]).day(k),w&&!this._fullWeekdaysParse[k]&&(this._fullWeekdaysParse[k]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[k]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[k]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[k]||(U="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[k]=new RegExp(U.replace(".",""),"i")),w&&g==="dddd"&&this._fullWeekdaysParse[k].test(d))return k;if(w&&g==="ddd"&&this._shortWeekdaysParse[k].test(d))return k;if(w&&g==="dd"&&this._minWeekdaysParse[k].test(d))return k;if(!w&&this._weekdaysParse[k].test(d))return k}}function HL(d){if(!this.isValid())return d!=null?this:NaN;var g=this._isUTC?this._d.getUTCDay():this._d.getDay();return d!=null?(d=DL(d,this.localeData()),this.add(d-g,"d")):g}function WL(d){if(!this.isValid())return d!=null?this:NaN;var g=(this.day()+7-this.localeData()._week.dow)%7;return d==null?g:this.add(d-g,"d")}function VL(d){if(!this.isValid())return d!=null?this:NaN;if(d!=null){var g=LL(d,this.localeData());return this.day(this.day()%7?g:g-7)}else return this.day()||7}function YL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=$L),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)}function KL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jL),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function XL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FL),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nc(){function d(Jt,Tr){return Tr.length-Jt.length}var g=[],w=[],k=[],I=[],U,J,xe,Ne,tt;for(U=0;U<7;U++)J=m([2e3,1]).day(U),xe=mt(this.weekdaysMin(J,"")),Ne=mt(this.weekdaysShort(J,"")),tt=mt(this.weekdays(J,"")),g.push(xe),w.push(Ne),k.push(tt),I.push(xe),I.push(Ne),I.push(tt);g.sort(d),w.sort(d),k.sort(d),I.sort(d),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Dc(){return this.hours()%12||12}function ZL(){return this.hours()||24}re("H",["HH",2],0,"hour"),re("h",["hh",2],0,Dc),re("k",["kk",2],0,ZL),re("hmm",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)}),re("hmmss",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),re("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),re("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)});function IS(d,g){re(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),g)})}IS("a",!0),IS("A",!1),Ge("hour","h"),B("hour",13);function RS(d,g){return g._meridiemParse}he("a",RS),he("A",RS),he("H",Ze),he("h",Ze),he("k",Ze),he("HH",Ze,Le),he("hh",Ze,Le),he("kk",Ze,Le),he("hmm",ia),he("hmmss",br),he("Hmm",ia),he("Hmmss",br),Me(["H","HH"],st),Me(["k","kk"],function(d,g,w){var k=ue(d);g[st]=k===24?0:k}),Me(["a","A"],function(d,g,w){w._isPm=w._locale.isPM(d),w._meridiem=d}),Me(["h","hh"],function(d,g,w){g[st]=ue(d),S(w).bigHour=!0}),Me("hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k)),S(w).bigHour=!0}),Me("hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I)),S(w).bigHour=!0}),Me("Hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k))}),Me("Hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I))});function QL(d){return(d+"").toLowerCase().charAt(0)==="p"}var JL=/[ap]\.?m?\.?/i,eM=ke("Hours",!0);function tM(d,g,w){return d>11?w?"pm":"PM":w?"am":"AM"}var CS={calendar:W,longDateFormat:de,invalidDate:ee,ordinal:me,dayOfMonthOrdinalParse:ve,relativeTime:at,months:gL,monthsShort:xS,week:OL,weekdays:ML,weekdaysMin:PL,weekdaysShort:OS,meridiemParse:JL},ht={},ji={},Fi;function nM(d,g){var w,k=Math.min(d.length,g.length);for(w=0;w0;){if(I=Ms(U.slice(0,w).join("-")),I)return I;if(k&&k.length>=w&&nM(U,k)>=w-1)break;w--}g++}return Fi}function aM(d){return d.match("^[^/\\\\]*$")!=null}function Ms(d){var g=null,w;if(ht[d]===void 0&&e&&e.exports&&aM(d))try{g=Fi._abbr,w=K$,w("./locale/"+d),Fr(g)}catch{ht[d]=null}return ht[d]}function Fr(d,g){var w;return d&&(u(g)?w=xr(d):w=Lc(d,g),w?Fi=w:typeof console<"u"&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),Fi._abbr}function Lc(d,g){if(g!==null){var w,k=CS;if(g.abbr=d,ht[d]!=null)P("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."),k=ht[d]._config;else if(g.parentLocale!=null)if(ht[g.parentLocale]!=null)k=ht[g.parentLocale]._config;else if(w=Ms(g.parentLocale),w!=null)k=w._config;else return ji[g.parentLocale]||(ji[g.parentLocale]=[]),ji[g.parentLocale].push({name:d,config:g}),null;return ht[d]=new K(G(k,g)),ji[d]&&ji[d].forEach(function(I){Lc(I.name,I.config)}),Fr(d),ht[d]}else return delete ht[d],null}function iM(d,g){if(g!=null){var w,k,I=CS;ht[d]!=null&&ht[d].parentLocale!=null?ht[d].set(G(ht[d]._config,g)):(k=Ms(d),k!=null&&(I=k._config),g=G(I,g),k==null&&(g.abbr=d),w=new K(g),w.parentLocale=ht[d],ht[d]=w),Fr(d)}else ht[d]!=null&&(ht[d].parentLocale!=null?(ht[d]=ht[d].parentLocale,d===Fr()&&Fr(d)):ht[d]!=null&&delete ht[d]);return ht[d]}function xr(d){var g;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return Fi;if(!i(d)){if(g=Ms(d),g)return g;d=[d]}return rM(d)}function oM(){return X(ht)}function Mc(d){var g,w=d._a;return w&&S(d).overflow===-2&&(g=w[Qe]<0||w[Qe]>11?Qe:w[Bt]<1||w[Bt]>Ds(w[Ce],w[Qe])?Bt:w[st]<0||w[st]>24||w[st]===24&&(w[bt]!==0||w[qn]!==0||w[vr]!==0)?st:w[bt]<0||w[bt]>59?bt:w[qn]<0||w[qn]>59?qn:w[vr]<0||w[vr]>999?vr:-1,S(d)._overflowDayOfYear&&(gBt)&&(g=Bt),S(d)._overflowWeeks&&g===-1&&(g=Pe),S(d)._overflowWeekday&&g===-1&&(g=Qt),S(d).overflow=g),d}var sM=/^\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)?)?$/,lM=/^\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)?)?$/,uM=/Z|[+-]\d\d(?::?\d\d)?/,Ps=[["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]],Pc=[["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/]],cM=/^\/?Date\((-?\d+)/i,dM=/^(?:(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}))$/,pM={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 DS(d){var g,w,k=d._i,I=sM.exec(k)||lM.exec(k),U,J,xe,Ne,tt=Ps.length,Jt=Pc.length;if(I){for(S(d).iso=!0,g=0,w=tt;gMi(J)||d._dayOfYear===0)&&(S(d)._overflowDayOfYear=!0),w=Pi(J,0,d._dayOfYear),d._a[Qe]=w.getUTCMonth(),d._a[Bt]=w.getUTCDate()),g=0;g<3&&d._a[g]==null;++g)d._a[g]=k[g]=I[g];for(;g<7;g++)d._a[g]=k[g]=d._a[g]==null?g===2?1:0:d._a[g];d._a[st]===24&&d._a[bt]===0&&d._a[qn]===0&&d._a[vr]===0&&(d._nextDay=!0,d._a[st]=0),d._d=(d._useUTC?Pi:AL).apply(null,k),U=d._useUTC?d._d.getUTCDay():d._d.getDay(),d._tzm!=null&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[st]=24),d._w&&typeof d._w.d<"u"&&d._w.d!==U&&(S(d).weekdayMismatch=!0)}}function SM(d){var g,w,k,I,U,J,xe,Ne,tt;g=d._w,g.GG!=null||g.W!=null||g.E!=null?(U=1,J=4,w=Da(g.GG,d._a[Ce],$i(dt(),1,4).year),k=Da(g.W,1),I=Da(g.E,1),(I<1||I>7)&&(Ne=!0)):(U=d._locale._week.dow,J=d._locale._week.doy,tt=$i(dt(),U,J),w=Da(g.gg,d._a[Ce],tt.year),k=Da(g.w,tt.week),g.d!=null?(I=g.d,(I<0||I>6)&&(Ne=!0)):g.e!=null?(I=g.e+U,(g.e<0||g.e>6)&&(Ne=!0)):I=U),k<1||k>Sr(w,U,J)?S(d)._overflowWeeks=!0:Ne!=null?S(d)._overflowWeekday=!0:(xe=kS(w,k,I,U,J),d._a[Ce]=xe.year,d._dayOfYear=xe.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function jc(d){if(d._f===r.ISO_8601){DS(d);return}if(d._f===r.RFC_2822){LS(d);return}d._a=[],S(d).empty=!0;var g=""+d._i,w,k,I,U,J,xe=g.length,Ne=0,tt,Jt;for(I=ae(d._f,d._locale).match(ie)||[],Jt=I.length,w=0;w0&&S(d).unusedInput.push(J),g=g.slice(g.indexOf(k)+k.length),Ne+=k.length),ye[U]?(k?S(d).empty=!1:S(d).unusedTokens.push(U),Na(U,k,d)):d._strict&&!k&&S(d).unusedTokens.push(U);S(d).charsLeftOver=xe-Ne,g.length>0&&S(d).unusedInput.push(g),d._a[st]<=12&&S(d).bigHour===!0&&d._a[st]>0&&(S(d).bigHour=void 0),S(d).parsedDateParts=d._a.slice(0),S(d).meridiem=d._meridiem,d._a[st]=xM(d._locale,d._a[st],d._meridiem),tt=S(d).era,tt!==null&&(d._a[Ce]=d._locale.erasConvertYear(tt,d._a[Ce])),$c(d),Mc(d)}function xM(d,g,w){var k;return w==null?g:d.meridiemHour!=null?d.meridiemHour(g,w):(d.isPM!=null&&(k=d.isPM(w),k&&g<12&&(g+=12),!k&&g===12&&(g=0)),g)}function EM(d){var g,w,k,I,U,J,xe=!1,Ne=d._f.length;if(Ne===0){S(d).invalidFormat=!0,d._d=new Date(NaN);return}for(I=0;Ithis?this:d:E()});function $S(d,g){var w,k;if(g.length===1&&i(g[0])&&(g=g[0]),!g.length)return dt();for(w=g[0],k=1;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function GM(){if(!u(this._isDSTShifted))return this._isDSTShifted;var d={},g;return v(d,this),d=MS(d),d._a?(g=d._isUTC?m(d._a):dt(d._a),this._isDSTShifted=this.isValid()&&LM(d._a,g.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qM(){return this.isValid()?!this._isUTC:!1}function HM(){return this.isValid()?this._isUTC:!1}function FS(){return this.isValid()?this._isUTC&&this._offset===0:!1}var WM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,VM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hn(d,g){var w=d,k=null,I,U,J;return js(d)?w={ms:d._milliseconds,d:d._days,M:d._months}:c(d)||!isNaN(+d)?(w={},g?w[g]=+d:w.milliseconds=+d):(k=WM.exec(d))?(I=k[1]==="-"?-1:1,w={y:0,d:ue(k[Bt])*I,h:ue(k[st])*I,m:ue(k[bt])*I,s:ue(k[qn])*I,ms:ue(Fc(k[vr]*1e3))*I}):(k=VM.exec(d))?(I=k[1]==="-"?-1:1,w={y:ua(k[2],I),M:ua(k[3],I),w:ua(k[4],I),d:ua(k[5],I),h:ua(k[6],I),m:ua(k[7],I),s:ua(k[8],I)}):w==null?w={}:typeof w=="object"&&("from"in w||"to"in w)&&(J=YM(dt(w.from),dt(w.to)),w={},w.ms=J.milliseconds,w.M=J.months),U=new $s(w),js(d)&&s(d,"_locale")&&(U._locale=d._locale),js(d)&&s(d,"_isValid")&&(U._isValid=d._isValid),U}Hn.fn=$s.prototype,Hn.invalid=DM;function ua(d,g){var w=d&&parseFloat(d.replace(",","."));return(isNaN(w)?0:w)*g}function BS(d,g){var w={};return w.months=g.month()-d.month()+(g.year()-d.year())*12,d.clone().add(w.months,"M").isAfter(g)&&--w.months,w.milliseconds=+g-+d.clone().add(w.months,"M"),w}function YM(d,g){var w;return d.isValid()&&g.isValid()?(g=Uc(g,d),d.isBefore(g)?w=BS(d,g):(w=BS(g,d),w.milliseconds=-w.milliseconds,w.months=-w.months),w):{milliseconds:0,months:0}}function US(d,g){return function(w,k){var I,U;return k!==null&&!isNaN(+k)&&(P(g,"moment()."+g+"(period, number) is deprecated. Please use moment()."+g+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),U=w,w=k,k=U),I=Hn(w,k),zS(this,I,d),this}}function zS(d,g,w,k){var I=g._milliseconds,U=Fc(g._days),J=Fc(g._months);d.isValid()&&(k=k??!0,J&&wS(d,Ae(d,"Month")+J*w),U&&Ie(d,"Date",Ae(d,"Date")+U*w),I&&d._d.setTime(d._d.valueOf()+I*w),k&&r.updateOffset(d,U||J))}var KM=US(1,"add"),XM=US(-1,"subtract");function GS(d){return typeof d=="string"||d instanceof String}function ZM(d){return R(d)||p(d)||GS(d)||c(d)||JM(d)||QM(d)||d===null||d===void 0}function QM(d){var g=o(d)&&!l(d),w=!1,k=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,U,J=k.length;for(I=0;Iw.valueOf():w.valueOf()9999?we(w,g?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?g?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",we(w,"Z")):we(w,g?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fP(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d="moment",g="",w,k,I,U;return this.isLocal()||(d=this.utcOffset()===0?"moment.utc":"moment.parseZone",g="Z"),w="["+d+'("]',k=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",U=g+'[")]',this.format(w+k+I+U)}function hP(d){d||(d=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var g=we(this,d);return this.localeData().postformat(g)}function gP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({to:this,from:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function mP(d){return this.from(dt(),d)}function bP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({from:this,to:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function yP(d){return this.to(dt(),d)}function qS(d){var g;return d===void 0?this._locale._abbr:(g=xr(d),g!=null&&(this._locale=g),this)}var HS=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return d===void 0?this.localeData():this.locale(d)});function WS(){return this._locale}var Bs=1e3,La=60*Bs,Us=60*La,VS=(365*400+97)*24*Us;function Ma(d,g){return(d%g+g)%g}function YS(d,g,w){return d<100&&d>=0?new Date(d+400,g,w)-VS:new Date(d,g,w).valueOf()}function KS(d,g,w){return d<100&&d>=0?Date.UTC(d+400,g,w)-VS:Date.UTC(d,g,w)}function vP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year(),0,1);break;case"quarter":g=w(this.year(),this.month()-this.month()%3,1);break;case"month":g=w(this.year(),this.month(),1);break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":g=w(this.year(),this.month(),this.date());break;case"hour":g=this._d.valueOf(),g-=Ma(g+(this._isUTC?0:this.utcOffset()*La),Us);break;case"minute":g=this._d.valueOf(),g-=Ma(g,La);break;case"second":g=this._d.valueOf(),g-=Ma(g,Bs);break}return this._d.setTime(g),r.updateOffset(this,!0),this}function SP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year()+1,0,1)-1;break;case"quarter":g=w(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":g=w(this.year(),this.month()+1,1)-1;break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":g=w(this.year(),this.month(),this.date()+1)-1;break;case"hour":g=this._d.valueOf(),g+=Us-Ma(g+(this._isUTC?0:this.utcOffset()*La),Us)-1;break;case"minute":g=this._d.valueOf(),g+=La-Ma(g,La)-1;break;case"second":g=this._d.valueOf(),g+=Bs-Ma(g,Bs)-1;break}return this._d.setTime(g),r.updateOffset(this,!0),this}function xP(){return this._d.valueOf()-(this._offset||0)*6e4}function EP(){return Math.floor(this.valueOf()/1e3)}function wP(){return new Date(this.valueOf())}function _P(){var d=this;return[d.year(),d.month(),d.date(),d.hour(),d.minute(),d.second(),d.millisecond()]}function TP(){var d=this;return{years:d.year(),months:d.month(),date:d.date(),hours:d.hours(),minutes:d.minutes(),seconds:d.seconds(),milliseconds:d.milliseconds()}}function AP(){return this.isValid()?this.toISOString():null}function kP(){return _(this)}function OP(){return h({},S(this))}function IP(){return S(this).overflow}function RP(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}re("N",0,0,"eraAbbr"),re("NN",0,0,"eraAbbr"),re("NNN",0,0,"eraAbbr"),re("NNNN",0,0,"eraName"),re("NNNNN",0,0,"eraNarrow"),re("y",["y",1],"yo","eraYear"),re("y",["yy",2],0,"eraYear"),re("y",["yyy",3],0,"eraYear"),re("y",["yyyy",4],0,"eraYear"),he("N",Gc),he("NN",Gc),he("NNN",Gc),he("NNNN",UP),he("NNNNN",zP),Me(["N","NN","NNN","NNNN","NNNNN"],function(d,g,w,k){var I=w._locale.erasParse(d,k,w._strict);I?S(w).era=I:S(w).invalidEra=d}),he("y",Un),he("yy",Un),he("yyy",Un),he("yyyy",Un),he("yo",GP),Me(["y","yy","yyy","yyyy"],Ce),Me(["yo"],function(d,g,w,k){var I;w._locale._eraYearOrdinalRegex&&(I=d.match(w._locale._eraYearOrdinalRegex)),w._locale.eraYearOrdinalParse?g[Ce]=w._locale.eraYearOrdinalParse(d,I):g[Ce]=parseInt(d,10)});function CP(d,g){var w,k,I,U=this._eras||xr("en")._eras;for(w=0,k=U.length;w=0)return U[k]}function DP(d,g){var w=d.since<=d.until?1:-1;return g===void 0?r(d.since).year():r(d.since).year()+(g-d.offset)*w}function LP(){var d,g,w,k=this.localeData().eras();for(d=0,g=k.length;dU&&(g=U),XP.call(this,d,g,w,k,I))}function XP(d,g,w,k,I){var U=kS(d,g,w,k,I),J=Pi(U.year,0,U.dayOfYear);return this.year(J.getUTCFullYear()),this.month(J.getUTCMonth()),this.date(J.getUTCDate()),this}re("Q",0,"Qo","quarter"),Ge("quarter","Q"),B("quarter",7),he("Q",it),Me("Q",function(d,g){g[Qe]=(ue(d)-1)*3});function ZP(d){return d==null?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)}re("D",["DD",2],"Do","date"),Ge("date","D"),B("date",9),he("D",Ze),he("DD",Ze,Le),he("Do",function(d,g){return d?g._dayOfMonthOrdinalParse||g._ordinalParse:g._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],Bt),Me("Do",function(d,g){g[Bt]=ue(d.match(Ze)[0])});var ZS=ke("Date",!0);re("DDD",["DDDD",3],"DDDo","dayOfYear"),Ge("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",Fn),he("DDDD",It),Me(["DDD","DDDD"],function(d,g,w){w._dayOfYear=ue(d)});function QP(d){var g=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return d==null?g:this.add(d-g,"d")}re("m",["mm",2],0,"minute"),Ge("minute","m"),B("minute",14),he("m",Ze),he("mm",Ze,Le),Me(["m","mm"],bt);var JP=ke("Minutes",!1);re("s",["ss",2],0,"second"),Ge("second","s"),B("second",15),he("s",Ze),he("ss",Ze,Le),Me(["s","ss"],qn);var e$=ke("Seconds",!1);re("S",0,0,function(){return~~(this.millisecond()/100)}),re(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),re(0,["SSS",3],0,"millisecond"),re(0,["SSSS",4],0,function(){return this.millisecond()*10}),re(0,["SSSSS",5],0,function(){return this.millisecond()*100}),re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ge("millisecond","ms"),B("millisecond",16),he("S",Fn,it),he("SS",Fn,Le),he("SSS",Fn,It);var Br,QS;for(Br="SSSS";Br.length<=9;Br+="S")he(Br,Un);function t$(d,g){g[vr]=ue(("0."+d)*1e3)}for(Br="S";Br.length<=9;Br+="S")Me(Br,t$);QS=ke("Milliseconds",!1),re("z",0,0,"zoneAbbr"),re("zz",0,0,"zoneName");function n$(){return this._isUTC?"UTC":""}function r$(){return this._isUTC?"Coordinated Universal Time":""}var se=O.prototype;se.add=KM,se.calendar=nP,se.clone=rP,se.diff=cP,se.endOf=SP,se.format=hP,se.from=gP,se.fromNow=mP,se.to=bP,se.toNow=yP,se.get=We,se.invalidAt=IP,se.isAfter=aP,se.isBefore=iP,se.isBetween=oP,se.isSame=sP,se.isSameOrAfter=lP,se.isSameOrBefore=uP,se.isValid=kP,se.lang=HS,se.locale=qS,se.localeData=WS,se.max=kM,se.min=AM,se.parsingFlags=OP,se.set=xt,se.startOf=vP,se.subtract=XM,se.toArray=_P,se.toObject=TP,se.toDate=wP,se.toISOString=pP,se.inspect=fP,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=AP,se.toString=dP,se.unix=EP,se.valueOf=xP,se.creationData=RP,se.eraName=LP,se.eraNarrow=MP,se.eraAbbr=PP,se.eraYear=$P,se.year=AS,se.isLeapYear=TL,se.weekYear=qP,se.isoWeekYear=HP,se.quarter=se.quarters=ZP,se.month=_S,se.daysInMonth=EL,se.week=se.weeks=CL,se.isoWeek=se.isoWeeks=NL,se.weeksInYear=YP,se.weeksInWeekYear=KP,se.isoWeeksInYear=WP,se.isoWeeksInISOWeekYear=VP,se.date=ZS,se.day=se.days=HL,se.weekday=WL,se.isoWeekday=VL,se.dayOfYear=QP,se.hour=se.hours=eM,se.minute=se.minutes=JP,se.second=se.seconds=e$,se.millisecond=se.milliseconds=QS,se.utcOffset=PM,se.utc=jM,se.local=FM,se.parseZone=BM,se.hasAlignedHourOffset=UM,se.isDST=zM,se.isLocal=qM,se.isUtcOffset=HM,se.isUtc=FS,se.isUTC=FS,se.zoneAbbr=n$,se.zoneName=r$,se.dates=$("dates accessor is deprecated. Use date instead.",ZS),se.months=$("months accessor is deprecated. Use month instead",_S),se.years=$("years accessor is deprecated. Use year instead",AS),se.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$M),se.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",GM);function a$(d){return dt(d*1e3)}function i$(){return dt.apply(null,arguments).parseZone()}function JS(d){return d}var Ve=K.prototype;Ve.calendar=Z,Ve.longDateFormat=ce,Ve.invalidDate=_e,Ve.ordinal=Ue,Ve.preparse=JS,Ve.postformat=JS,Ve.relativeTime=Je,Ve.pastFuture=Ht,Ve.set=V,Ve.eras=CP,Ve.erasParse=NP,Ve.erasConvertYear=DP,Ve.erasAbbrRegex=FP,Ve.erasNameRegex=jP,Ve.erasNarrowRegex=BP,Ve.months=yL,Ve.monthsShort=vL,Ve.monthsParse=xL,Ve.monthsRegex=_L,Ve.monthsShortRegex=wL,Ve.week=kL,Ve.firstDayOfYear=RL,Ve.firstDayOfWeek=IL,Ve.weekdays=BL,Ve.weekdaysMin=zL,Ve.weekdaysShort=UL,Ve.weekdaysParse=qL,Ve.weekdaysRegex=YL,Ve.weekdaysShortRegex=KL,Ve.weekdaysMinRegex=XL,Ve.isPM=QL,Ve.meridiem=tM;function Gs(d,g,w,k){var I=xr(),U=m().set(k,g);return I[w](U,d)}function ex(d,g,w){if(c(d)&&(g=d,d=void 0),d=d||"",g!=null)return Gs(d,g,w,"month");var k,I=[];for(k=0;k<12;k++)I[k]=Gs(d,k,w,"month");return I}function Hc(d,g,w,k){typeof d=="boolean"?(c(g)&&(w=g,g=void 0),g=g||""):(g=d,w=g,d=!1,c(g)&&(w=g,g=void 0),g=g||"");var I=xr(),U=d?I._week.dow:0,J,xe=[];if(w!=null)return Gs(g,(w+U)%7,k,"day");for(J=0;J<7;J++)xe[J]=Gs(g,(J+U)%7,k,"day");return xe}function o$(d,g){return ex(d,g,"months")}function s$(d,g){return ex(d,g,"monthsShort")}function l$(d,g,w){return Hc(d,g,w,"weekdays")}function u$(d,g,w){return Hc(d,g,w,"weekdaysShort")}function c$(d,g,w){return Hc(d,g,w,"weekdaysMin")}Fr("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(d){var g=d%10,w=ue(d%100/10)===1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th";return d+w}}),r.lang=$("moment.lang is deprecated. Use moment.locale instead.",Fr),r.langData=$("moment.langData is deprecated. Use moment.localeData instead.",xr);var Er=Math.abs;function d$(){var d=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),d.milliseconds=Er(d.milliseconds),d.seconds=Er(d.seconds),d.minutes=Er(d.minutes),d.hours=Er(d.hours),d.months=Er(d.months),d.years=Er(d.years),this}function tx(d,g,w,k){var I=Hn(g,w);return d._milliseconds+=k*I._milliseconds,d._days+=k*I._days,d._months+=k*I._months,d._bubble()}function p$(d,g){return tx(this,d,g,1)}function f$(d,g){return tx(this,d,g,-1)}function nx(d){return d<0?Math.floor(d):Math.ceil(d)}function h$(){var d=this._milliseconds,g=this._days,w=this._months,k=this._data,I,U,J,xe,Ne;return d>=0&&g>=0&&w>=0||d<=0&&g<=0&&w<=0||(d+=nx(Wc(w)+g)*864e5,g=0,w=0),k.milliseconds=d%1e3,I=pe(d/1e3),k.seconds=I%60,U=pe(I/60),k.minutes=U%60,J=pe(U/60),k.hours=J%24,g+=pe(J/24),Ne=pe(rx(g)),w+=Ne,g-=nx(Wc(Ne)),xe=pe(w/12),w%=12,k.days=g,k.months=w,k.years=xe,this}function rx(d){return d*4800/146097}function Wc(d){return d*146097/4800}function g$(d){if(!this.isValid())return NaN;var g,w,k=this._milliseconds;if(d=Xe(d),d==="month"||d==="quarter"||d==="year")switch(g=this._days+k/864e5,w=this._months+rx(g),d){case"month":return w;case"quarter":return w/3;case"year":return w/12}else switch(g=this._days+Math.round(Wc(this._months)),d){case"week":return g/7+k/6048e5;case"day":return g+k/864e5;case"hour":return g*24+k/36e5;case"minute":return g*1440+k/6e4;case"second":return g*86400+k/1e3;case"millisecond":return Math.floor(g*864e5)+k;default:throw new Error("Unknown unit "+d)}}function m$(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function wr(d){return function(){return this.as(d)}}var b$=wr("ms"),y$=wr("s"),v$=wr("m"),S$=wr("h"),x$=wr("d"),E$=wr("w"),w$=wr("M"),_$=wr("Q"),T$=wr("y");function A$(){return Hn(this)}function k$(d){return d=Xe(d),this.isValid()?this[d+"s"]():NaN}function ca(d){return function(){return this.isValid()?this._data[d]:NaN}}var O$=ca("milliseconds"),I$=ca("seconds"),R$=ca("minutes"),C$=ca("hours"),N$=ca("days"),D$=ca("months"),L$=ca("years");function M$(){return pe(this.days()/7)}var _r=Math.round,Pa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function P$(d,g,w,k,I){return I.relativeTime(g||1,!!w,d,k)}function $$(d,g,w,k){var I=Hn(d).abs(),U=_r(I.as("s")),J=_r(I.as("m")),xe=_r(I.as("h")),Ne=_r(I.as("d")),tt=_r(I.as("M")),Jt=_r(I.as("w")),Tr=_r(I.as("y")),Ur=U<=w.ss&&["s",U]||U0,Ur[4]=k,P$.apply(null,Ur)}function j$(d){return d===void 0?_r:typeof d=="function"?(_r=d,!0):!1}function F$(d,g){return Pa[d]===void 0?!1:g===void 0?Pa[d]:(Pa[d]=g,d==="s"&&(Pa.ss=g-1),!0)}function B$(d,g){if(!this.isValid())return this.localeData().invalidDate();var w=!1,k=Pa,I,U;return typeof d=="object"&&(g=d,d=!1),typeof d=="boolean"&&(w=d),typeof g=="object"&&(k=Object.assign({},Pa,g),g.s!=null&&g.ss==null&&(k.ss=g.s-1)),I=this.localeData(),U=$$(this,!w,k,I),w&&(U=I.pastFuture(+this,U)),I.postformat(U)}var Vc=Math.abs;function $a(d){return(d>0)-(d<0)||+d}function qs(){if(!this.isValid())return this.localeData().invalidDate();var d=Vc(this._milliseconds)/1e3,g=Vc(this._days),w=Vc(this._months),k,I,U,J,xe=this.asSeconds(),Ne,tt,Jt,Tr;return xe?(k=pe(d/60),I=pe(k/60),d%=60,k%=60,U=pe(w/12),w%=12,J=d?d.toFixed(3).replace(/\.?0+$/,""):"",Ne=xe<0?"-":"",tt=$a(this._months)!==$a(xe)?"-":"",Jt=$a(this._days)!==$a(xe)?"-":"",Tr=$a(this._milliseconds)!==$a(xe)?"-":"",Ne+"P"+(U?tt+U+"Y":"")+(w?tt+w+"M":"")+(g?Jt+g+"D":"")+(I||k||d?"T":"")+(I?Tr+I+"H":"")+(k?Tr+k+"M":"")+(d?Tr+J+"S":"")):"P0D"}var qe=$s.prototype;qe.isValid=NM,qe.abs=d$,qe.add=p$,qe.subtract=f$,qe.as=g$,qe.asMilliseconds=b$,qe.asSeconds=y$,qe.asMinutes=v$,qe.asHours=S$,qe.asDays=x$,qe.asWeeks=E$,qe.asMonths=w$,qe.asQuarters=_$,qe.asYears=T$,qe.valueOf=m$,qe._bubble=h$,qe.clone=A$,qe.get=k$,qe.milliseconds=O$,qe.seconds=I$,qe.minutes=R$,qe.hours=C$,qe.days=N$,qe.weeks=M$,qe.months=D$,qe.years=L$,qe.humanize=B$,qe.toISOString=qs,qe.toString=qs,qe.toJSON=qs,qe.locale=qS,qe.localeData=WS,qe.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),qe.lang=HS,re("X",0,0,"unix"),re("x",0,0,"valueOf"),he("x",zn),he("X",Li),Me("X",function(d,g,w){w._d=new Date(parseFloat(d)*1e3)}),Me("x",function(d,g,w){w._d=new Date(ue(d))});//! moment.js +return r.version="2.29.4",a(dt),r.fn=se,r.min=OM,r.max=IM,r.now=RM,r.utc=m,r.unix=a$,r.months=o$,r.isDate=p,r.locale=Fr,r.invalid=E,r.duration=Hn,r.isMoment=R,r.weekdays=l$,r.parseZone=i$,r.localeData=xr,r.isDuration=js,r.monthsShort=s$,r.weekdaysMin=c$,r.defineLocale=Lc,r.updateLocale=iM,r.locales=oM,r.weekdaysShort=u$,r.normalizeUnits=Xe,r.relativeTimeRounding=j$,r.relativeTimeThreshold=F$,r.calendarFormat=tP,r.prototype=se,r.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"},r})})(FI);var W2=FI.exports;const BI=St(W2),V2=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(q,{direction:"column",children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:y.jsx(Ai,{type:t})}),n&&y.jsx(ri,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(aB,{"data-testid":"episode-description",children:e}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(q,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Aa,{children:BI.unix(r).fromNow()})}),n&&y.jsxs(ri,{href:n,onClick:a=>a.stopPropagation(),target:"_blank",children:[y.jsx(SI,{}),y.jsx(Y2,{children:n})]})]})]}),Y2=H(vt)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; @@ -401,7 +401,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni font-size: 12px; font-weight: 400; line-height: 18px; -`,K2=({title:e,imageUrl:t,name:n,sourceLink:r,date:a})=>y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx(X2,{children:y.jsx(Jn,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||n)&&y.jsx(Z2,{children:e||n})]}),!r&&y.jsx(ri,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!a&&y.jsx(Aa,{children:FI.unix(a).fromNow()})})]}),X2=H(q)` +`,K2=({title:e,imageUrl:t,name:n,sourceLink:r,date:a})=>y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx(X2,{children:y.jsx(Jn,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||n)&&y.jsx(Z2,{children:e||n})]}),!r&&y.jsx(ri,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!a&&y.jsx(Aa,{children:BI.unix(a).fromNow()})})]}),X2=H(q)` img { width: 64px; height: 64px; @@ -477,7 +477,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni .player-controls { margin-left: 4px; } -`,My=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:u,className:c="episode-wrapper",onClick:p,node:f})=>{const h=Pt(x=>x.currentSearch),m=ur(String(i),h),b=ur(String(o),h),T=ur(String(a==="show"?"":r),h),_=["Tweet","person","guest","topic","document"];return y.jsxs(rB,{className:c,onClick:p,children:[!_.includes(a)&&y.jsx(B2,{boostCount:e,date:t,imageUrl:n,newName:o,node:f,showTitle:r,type:a}),a==="topic"&&y.jsx(iB,{children:y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(xj,{}),y.jsx("p",{children:T})]}),s&&y.jsx(ri,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Aa,{children:_i.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(K2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",title:r||""}),["image"].includes(a)&&y.jsx(G2,{date:t,imageUrl:s,name:b||"",sourceLink:s||""}),a==="Tweet"&&y.jsx(Q2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",text:m||"",twitterHandle:u,verified:l}),a==="document"&&y.jsx(V2,{date:t,sourceLink:s||"",text:m||"",type:a})]})},aB=H(q)` +`,My=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:u,className:c="episode-wrapper",onClick:p,node:f})=>{const h=Pt(A=>A.currentSearch),{setHoveredNode:m}=xI(A=>A),b=ur(String(i),h),S=ur(String(o),h),_=ur(String(a==="show"?"":r),h),E=["Tweet","person","guest","topic","document"];return y.jsxs(rB,{className:c,onClick:p,onMouseLeave:()=>{m(null)},onMouseOver:()=>{m(f)},children:[!E.includes(a)&&y.jsx(B2,{boostCount:e,date:t,imageUrl:n,newName:o,node:f,showTitle:r,type:a}),a==="topic"&&y.jsx(iB,{children:y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(Ej,{}),y.jsx("p",{children:_})]}),s&&y.jsx(ri,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:A=>A.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Aa,{children:_i.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(K2,{date:t,imageUrl:n,name:S||"",sourceLink:s||"",title:r||""}),["image"].includes(a)&&y.jsx(G2,{date:t,imageUrl:s,name:S||"",sourceLink:s||""}),a==="Tweet"&&y.jsx(Q2,{date:t,imageUrl:n,name:S||"",sourceLink:s||"",text:b||"",twitterHandle:u,verified:l}),a==="document"&&y.jsx(V2,{date:t,sourceLink:s||"",text:b||"",type:a})]})},aB=H(q)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -576,7 +576,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni overflow-y: auto; overflow-x: hidden; background: ${j.body}; -`,Py=e=>{const{properties:t,ref_id:n}=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:n,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:""}},sB=({sourceIds:e})=>{const t=F.useRef(null),[n,r]=F.useState(!1),{dataInitial:a}=Mn(c=>c),i=ps(),o=F.useCallback(c=>{i(c)},[i]),s=()=>r(!n),l=(a==null?void 0:a.nodes.filter(c=>e.includes(c.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(cB,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(uB,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(Ej,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(pB,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Iy,{}):y.jsx(Iu,{})]})]})}),n&&u.length>0&&y.jsx(oB,{ref:t,id:"search-result-list",shrink:1,children:u.map((c,p)=>{const f=Py(c),{image_url:h,date:m,boost:b,show_title:S,node_type:T,text:_,source_link:x,name:A,verified:E=!1,twitter_handle:v}=f||{};return y.jsx(dB,{boostCount:b||0,date:m||0,imageUrl:h||"",name:A||"",node:c,onClick:()=>{o(c)},showTitle:Ry(S),sourceLink:x,text:_||"",twitterHandle:v,type:T,verified:E},p.toString())})})]})},lB=F.memo(sB),uB=H(q)` +`,Py=e=>{const{properties:t,ref_id:n}=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:n,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:""}},sB=({sourceIds:e})=>{const t=F.useRef(null),[n,r]=F.useState(!1),{dataInitial:a}=Mn(c=>c),i=ps(),o=F.useCallback(c=>{i(c)},[i]),s=()=>r(!n),l=(a==null?void 0:a.nodes.filter(c=>e.includes(c.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(cB,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(uB,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(wj,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(pB,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Iy,{}):y.jsx(Iu,{})]})]})}),n&&u.length>0&&y.jsx(oB,{ref:t,id:"search-result-list",shrink:1,children:u.map((c,p)=>{const f=Py(c),{image_url:h,date:m,boost:b,show_title:S,node_type:T,text:_,source_link:E,name:A,verified:x=!1,twitter_handle:v}=f||{};return y.jsx(dB,{boostCount:b||0,date:m||0,imageUrl:h||"",name:A||"",node:c,onClick:()=>{o(c)},showTitle:Ry(S),sourceLink:E,text:_||"",twitterHandle:v,type:T,verified:x},p.toString())})})]})},lB=F.memo(sB),uB=H(q)` &.heading { font-weight: 600; color: ${j.white}; @@ -658,7 +658,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni border-radius: 50%; margin-right: 8px; } -`,Gi=H(kI)` +`,Gi=H(OI)` && { background: #353a46; border-radius: 0.5rem; @@ -675,7 +675,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni `,mB=H(vt)` font-weight: 600; font-size: 0.9375rem; -`,qi=8,el=332,bB=()=>y.jsx(y.Fragment,{children:y.jsx(fB,{children:y.jsxs(q,{direction:"column",children:[y.jsxs(q,{direction:"row",children:[y.jsx(gB,{children:y.jsx(wj,{})}),y.jsx(mB,{children:"Answer"})]}),y.jsxs(hB,{grow:1,shrink:1,children:[y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:180})]})]})})}),yB=H(vt)` +`,qi=8,el=332,bB=()=>y.jsx(y.Fragment,{children:y.jsx(fB,{children:y.jsxs(q,{direction:"column",children:[y.jsxs(q,{direction:"row",children:[y.jsx(gB,{children:y.jsx(_j,{})}),y.jsx(mB,{children:"Answer"})]}),y.jsxs(hB,{grow:1,shrink:1,children:[y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:180})]})]})})}),yB=H(vt)` font-size: 20px; font-weight: 600; flex-grow: 1; @@ -687,7 +687,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni padding: 24px 10px 24px 24px; flex-shrink: 1; overflow: hidden; -`,hx=({question:e,response:t,refId:n})=>{var m;const r=F.useRef(null),[a,i]=F.useState(!1),{setAiSummaryAnswer:o}=cI(b=>b),s=F.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=Pt(b=>b);F.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),F.useEffect(()=>{const b=s.current,S=()=>{u(null)};return b&&b.addEventListener("ended",S),()=>{b&&b.removeEventListener("ended",S)}},[u]);const c=()=>{i(!a)},p=()=>{n&&o(n,{hasBeenRendered:!0})},f=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},h=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),f()};return y.jsxs(SB,{children:[y.jsxs(vB,{children:[y.jsx(yB,{ref:r,children:e}),t.audio_en&&y.jsx(EB,{onClick:h,children:(l==null?void 0:l.current)===s.current&&!((m=s.current)!=null&&m.paused)?y.jsx(xI,{}):y.jsx(EI,{})}),y.jsx(xB,{onClick:c,children:a?y.jsx(Iu,{}):y.jsx(Iy,{})})]}),!a&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(bB,{}):y.jsx(C2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>p(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx(PI,{count:1}):y.jsx(D2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(lB,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(wB,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},SB=H(q).attrs({direction:"column"})` +`,hx=({question:e,response:t,refId:n})=>{var m;const r=F.useRef(null),[a,i]=F.useState(!1),{setAiSummaryAnswer:o}=cI(b=>b),s=F.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=Pt(b=>b);F.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),F.useEffect(()=>{const b=s.current,S=()=>{u(null)};return b&&b.addEventListener("ended",S),()=>{b&&b.removeEventListener("ended",S)}},[u]);const c=()=>{i(!a)},p=()=>{n&&o(n,{hasBeenRendered:!0})},f=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},h=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),f()};return y.jsxs(SB,{children:[y.jsxs(vB,{children:[y.jsx(yB,{ref:r,children:e}),t.audio_en&&y.jsx(EB,{onClick:h,children:(l==null?void 0:l.current)===s.current&&!((m=s.current)!=null&&m.paused)?y.jsx(EI,{}):y.jsx(wI,{})}),y.jsx(xB,{onClick:c,children:a?y.jsx(Iu,{}):y.jsx(Iy,{})})]}),!a&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(bB,{}):y.jsx(C2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>p(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx($I,{count:1}):y.jsx(D2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(lB,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(wB,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},SB=H(q).attrs({direction:"column"})` border-top: 1px solid #101317; `,xB=H(qt)` &&.MuiButton-root { @@ -736,12 +736,12 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni } `,wB=H.audio` display: none; -`,_B=390,TB=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=cI(l=>l),{abortFetchData:a,resetGraph:i}=Mn(l=>l),o=Au(),s=()=>{r(null),a(),i(),t(),o("/")};return y.jsxs(AB,{children:[y.jsx(q,{align:"flex-start",children:y.jsx(q,{p:24,children:y.jsx(qt,{onClick:s,startIcon:y.jsx(_j,{}),children:"Home"})})}),y.jsx(kB,{children:y.jsxs(q,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(hx,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(hx,{question:n.question||"",refId:"",response:n})]})}),y.jsx(y2,{})]})},AB=H(q)(({theme:e})=>({position:"relative",background:j.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:_B}})),kB=H(q)` +`,_B=390,TB=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=cI(l=>l),{abortFetchData:a,resetGraph:i}=Mn(l=>l),o=Au(),s=()=>{r(null),a(),i(),t(),o("/")};return y.jsxs(AB,{children:[y.jsx(q,{align:"flex-start",children:y.jsx(q,{p:24,children:y.jsx(qt,{onClick:s,startIcon:y.jsx(Tj,{}),children:"Home"})})}),y.jsx(kB,{children:y.jsxs(q,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(hx,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(hx,{question:n.question||"",refId:"",response:n})]})}),y.jsx(y2,{})]})},AB=H(q)(({theme:e})=>({position:"relative",background:j.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:_B}})),kB=H(q)` overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; -`,OB=()=>{var p;const[e,t]=F.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:a=[]}=Mn(f=>f),i=(n??"").toLowerCase(),o=((p=a.find(f=>f.name===i))==null?void 0:p.count)||0,s=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",l=f=>{o>=1&&t(f.currentTarget)},u=()=>{t(null)},c=f=>{r(f),u()};return y.jsxs("div",{children:[y.jsxs(IB,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Iy,{}):y.jsx(Iu,{})})]}),y.jsx(CB,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Vj,{children:a.filter(({name:f})=>f).map(({name:f,count:h})=>y.jsxs(RB,{className:lr({active:f===n}),onClick:m=>{m.preventDefault(),c(f)},children:[y.jsx("span",{className:"icon",children:f===n?y.jsx(wI,{}):null}),y.jsx("span",{children:`${s(f)} (${h})`})]},f))})})]})},IB=H(q).attrs({direction:"row",align:"center"})` +`,OB=()=>{var p;const[e,t]=F.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:a=[]}=Mn(f=>f),i=(n??"").toLowerCase(),o=((p=a.find(f=>f.name===i))==null?void 0:p.count)||0,s=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",l=f=>{o>=1&&t(f.currentTarget)},u=()=>{t(null)},c=f=>{r(f),u()};return y.jsxs("div",{children:[y.jsxs(IB,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Iy,{}):y.jsx(Iu,{})})]}),y.jsx(CB,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Vj,{children:a.filter(({name:f})=>f).map(({name:f,count:h})=>y.jsxs(RB,{className:lr({active:f===n}),onClick:m=>{m.preventDefault(),c(f)},children:[y.jsx("span",{className:"icon",children:f===n?y.jsx(_I,{}):null}),y.jsx("span",{children:`${s(f)} (${h})`})]},f))})})]})},IB=H(q).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${j.GRAY6}; @@ -778,7 +778,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni width: 9px; font-size: 10px; } -`,CB=H(Tj)` +`,CB=H(Aj)` .MuiPaper-root { background: ${j.BUTTON1}; min-width: 149px; @@ -832,7 +832,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni border-radius: 8px; } } -`,jB=({maxResults:e,setMaxResults:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Max results"}),y.jsx($y,{children:"Total number of relationships"})]}),y.jsxs(gs,{children:[y.jsxs(UI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"300"})]}),y.jsx(BI,{direction:"row",children:y.jsx(FB,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},FB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),BB=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:n})=>{const[r,a]=F.useState(!1),i=(r?n:n.slice(0,4)).filter((o,s,l)=>s===l.findIndex(u=>u.type===o.type));return y.jsxs(y.Fragment,{children:[y.jsxs(UB,{children:[y.jsx("div",{children:"Type"}),y.jsxs(zB,{children:[y.jsx(GB,{children:t.length}),y.jsx(qB,{children:"Selected"})]})]}),y.jsxs(gs,{children:[y.jsx(WB,{children:i.map(o=>y.jsx(VB,{isSelected:t.includes(o.type),onClick:()=>e(o==null?void 0:o.type),children:o.type},o.type))}),!r&&n.length>4&&y.jsx(YB,{onClick:()=>a(!0),children:y.jsxs(HB,{children:[y.jsx(Oy,{})," View More"]})})]})]})},UB=H.div` +`,jB=({maxResults:e,setMaxResults:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Max results"}),y.jsx($y,{children:"Total number of relationships"})]}),y.jsxs(gs,{children:[y.jsxs(zI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"300"})]}),y.jsx(UI,{direction:"row",children:y.jsx(FB,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},FB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),BB=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:n})=>{const[r,a]=F.useState(!1),i=(r?n:n.slice(0,4)).filter((o,s,l)=>s===l.findIndex(u=>u.type===o.type));return y.jsxs(y.Fragment,{children:[y.jsxs(UB,{children:[y.jsx("div",{children:"Type"}),y.jsxs(zB,{children:[y.jsx(GB,{children:t.length}),y.jsx(qB,{children:"Selected"})]})]}),y.jsxs(gs,{children:[y.jsx(WB,{children:i.map(o=>y.jsx(VB,{isSelected:t.includes(o.type),onClick:()=>e(o==null?void 0:o.type),children:o.type},o.type))}),!r&&n.length>4&&y.jsx(YB,{onClick:()=>a(!0),children:y.jsxs(HB,{children:[y.jsx(Oy,{})," View More"]})})]})]})},UB=H.div` display: flex; justify-content: space-between; align-items: center; @@ -907,7 +907,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni &:active { background: ${j.BUTTON1_PRESS}; } -`,KB=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx($y,{children:"Core set of nodes based on search term"})]}),y.jsxs(gs,{children:[y.jsxs(UI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"100"})]}),y.jsx(BI,{direction:"row",children:y.jsx(XB,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},XB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),Gr={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},ZB=({anchorEl:e,setAnchorEl:t,onClose:n})=>{const[r,a]=uI(v=>[v.schemas,v.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Mn(v=>v),[l,u]=F.useState(Gr.selectedTypes),[c,p]=F.useState(Gr.hops),[f,h]=F.useState(Gr.sourceNodes),[m,b]=F.useState(Gr.maxResults),{fastFiltersFeatureFlag:S}=dI(v=>v);F.useEffect(()=>{(async()=>{try{const O=await K$();a(O.schemas.filter(R=>!R.is_deleted))}catch(O){console.error("Error fetching schema:",O)}})()},[a]);const T=v=>{u(O=>O.includes(v)?O.filter(R=>R!==v):[...O,v])},_=v=>{u(v)},x=()=>{u(Gr.selectedTypes),p(Gr.hops),h(Gr.sourceNodes),b(Gr.maxResults)},A=async()=>{x(),i(),o()},E=async()=>{s({node_type:l,limit:m,depth:c.toString(),top_node_count:f.toString()}),t(null),n()};return y.jsxs(QB,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(NB,{handleFastFiltersSelect:_}),y.jsx(Hi,{})]}),y.jsx(BB,{handleSchemaTypeClick:T,schemaAll:r,selectedTypes:l}),y.jsx(Hi,{}),y.jsx(KB,{setSourceNodes:h,sourceNodes:f}),y.jsx(Hi,{}),y.jsx(PB,{hops:c,setHops:p}),y.jsx(Hi,{}),y.jsx(jB,{maxResults:m,setMaxResults:b}),y.jsx(Hi,{}),y.jsx(JB,{children:y.jsxs(rU,{children:[y.jsxs(eU,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(tU,{children:y.jsx(pI,{})}),"Clear"]}),y.jsx(nU,{color:"secondary",onClick:E,size:"large",variant:"contained",children:"Show Results"})]})})]})},QB=H(Ny)` +`,KB=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx($y,{children:"Core set of nodes based on search term"})]}),y.jsxs(gs,{children:[y.jsxs(zI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"100"})]}),y.jsx(UI,{direction:"row",children:y.jsx(XB,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},XB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),Gr={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},ZB=({anchorEl:e,setAnchorEl:t,onClose:n})=>{const[r,a]=uI(v=>[v.schemas,v.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Mn(v=>v),[l,u]=F.useState(Gr.selectedTypes),[c,p]=F.useState(Gr.hops),[f,h]=F.useState(Gr.sourceNodes),[m,b]=F.useState(Gr.maxResults),{fastFiltersFeatureFlag:S}=dI(v=>v);F.useEffect(()=>{(async()=>{try{const O=await X$();a(O.schemas.filter(R=>!R.is_deleted))}catch(O){console.error("Error fetching schema:",O)}})()},[a]);const T=v=>{u(O=>O.includes(v)?O.filter(R=>R!==v):[...O,v])},_=v=>{u(v)},E=()=>{u(Gr.selectedTypes),p(Gr.hops),h(Gr.sourceNodes),b(Gr.maxResults)},A=async()=>{E(),i(),o()},x=async()=>{s({node_type:l,limit:m,depth:c.toString(),top_node_count:f.toString()}),t(null),n()};return y.jsxs(QB,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(NB,{handleFastFiltersSelect:_}),y.jsx(Hi,{})]}),y.jsx(BB,{handleSchemaTypeClick:T,schemaAll:r,selectedTypes:l}),y.jsx(Hi,{}),y.jsx(KB,{setSourceNodes:h,sourceNodes:f}),y.jsx(Hi,{}),y.jsx(PB,{hops:c,setHops:p}),y.jsx(Hi,{}),y.jsx(jB,{maxResults:m,setMaxResults:b}),y.jsx(Hi,{}),y.jsx(JB,{children:y.jsxs(rU,{children:[y.jsxs(eU,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(tU,{children:y.jsx(pI,{})}),"Clear"]}),y.jsx(nU,{color:"secondary",onClick:x,size:"large",variant:"contained",children:"Show Results"})]})})]})},QB=H(Ny)` &&.MuiPopper-root { background: ${j.BG2}; padding: 16px; @@ -980,7 +980,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni font-family: Barlow; font-size: 18px; font-weight: 500; -`,BI=H(q)` +`,UI=H(q)` margin: 10px auto; .volume-slider { @@ -1007,7 +1007,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni } } } -`,UI=H.div` +`,zI=H.div` display: flex; flex-direction: row; justify-content: space-between; @@ -1040,7 +1040,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni .entity { color: ${j.SECONDARY_BLUE}; } -`,oU=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=ds(o=>o),{fetchData:r,setAbortRequests:a}=Mn(o=>o),i=async()=>{e<1||(await r(n,a,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(uU,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(Aj,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(sU,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:y.jsx(kj,{}),children:`See Latest (${e})`})}):null]})})},sU=H(qt)` +`,oU=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=ds(o=>o),{fetchData:r,setAbortRequests:a}=Mn(o=>o),i=async()=>{e<1||(await r(n,a,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(uU,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(kj,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(sU,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:y.jsx(Oj,{}),children:`See Latest (${e})`})}):null]})})},sU=H(qt)` && { width: 100%; margin-top: 1.2rem; @@ -1103,22 +1103,22 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni } } } -`,cU=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Mn(A=>A),a=ps(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Pt(A=>A),[l,u]=F.useState(0),[c,p]=F.useState(0),f=fI(),m=l*t+t,b=f&&f.length>0?f.length-1>m:!1,S=d2("sm","down"),T=F.useCallback(A=>{uF(A),n(A),s(!0),a(A),S&&o(!1)},[a,s,o,n,S]),_=()=>{r(),b&&(u(l+1),p(A=>A+1))},x=F.useMemo(()=>{if(f){const A=[...f].sort((E,v)=>(v.date||0)-(E.date||0));return i&&A.sort((E,v)=>{const O=E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0;return(v.node_type==="topic"&&v.name.toLowerCase()===i.toLowerCase()?1:0)-O}),A.slice(0,m)}return[]},[f,i,m]);return y.jsxs(y.Fragment,{children:[(x??[]).map(A=>{const E=Py(A),{image_url:v,date:O,boost:R,show_title:C,node_type:$,text:N,source_link:P,name:z,verified:V=!1,twitter_handle:G}=E||{};return $?y.jsx(My,{boostCount:R||0,date:O||0,imageUrl:v||"",name:z||"",node:A,onClick:()=>{T(A)},showTitle:Ry(C),sourceLink:P,text:N||"",twitterHandle:G,type:$,verified:V},E.ref_id):null}),y.jsx(pU,{align:"center",background:"BG1",direction:"row",justify:"center",children:b&&y.jsx(qt,{onClick:_,size:"medium",children:"Load More"},c)})]})},dU=F.memo(cU),pU=H(q)` +`,cU=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Mn(A=>A),a=ps(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Pt(A=>A),[l,u]=F.useState(0),[c,p]=F.useState(0),f=fI(),m=l*t+t,b=f&&f.length>0?f.length-1>m:!1,S=d2("sm","down"),T=F.useCallback(A=>{uF(A),n(A),s(!0),a(A),S&&o(!1)},[a,s,o,n,S]),_=()=>{r(),b&&(u(l+1),p(A=>A+1))},E=F.useMemo(()=>{if(f){const A=[...f].sort((x,v)=>(v.date||0)-(x.date||0));return i&&A.sort((x,v)=>{const O=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(v.node_type==="topic"&&v.name.toLowerCase()===i.toLowerCase()?1:0)-O}),A.slice(0,m)}return[]},[f,i,m]);return y.jsxs(y.Fragment,{children:[(E??[]).map(A=>{const x=Py(A),{image_url:v,date:O,boost:R,show_title:C,node_type:$,text:N,source_link:P,name:z,verified:V=!1,twitter_handle:G}=x||{};return $?y.jsx(My,{boostCount:R||0,date:O||0,imageUrl:v||"",name:z||"",node:A,onClick:()=>{T(A)},showTitle:Ry(C),sourceLink:P,text:N||"",twitterHandle:G,type:$,verified:V},x.ref_id):null}),y.jsx(pU,{align:"center",background:"BG1",direction:"row",justify:"center",children:b&&y.jsx(qt,{onClick:_,size:"medium",children:"Load More"},c)})]})},dU=F.memo(cU),pU=H(q)` flex: 0 0 86px; -`,fU=async()=>{const e="/get_trends";return await aI.get(e)};function hU(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bU={};function mx(e,t){return((t||bU).jsx?mU:gU).test(e)}const yU=/[ \t\n\f\r]/g;function vU(e){return typeof e=="object"?e.type==="text"?bx(e.value):!1:bx(e)}function bx(e){return e.replace(yU,"")===""}let ms=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ms.prototype.property={};ms.prototype.normal={};ms.prototype.space=null;function zI(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&_U.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(vx,OU);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!vx.test(i)){let o=i.replace(TU,kU);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Fy}return new a(r,t)}function kU(e){return"-"+e.toLowerCase()}function OU(e){return e.charAt(1).toUpperCase()}const IU={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"},RU=zI([HI,qI,YI,KI,EU],"html"),By=zI([HI,qI,YI,KI,wU],"svg");function CU(e){return e.join(" ").trim()}var XI={},Sx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NU=/\n/g,DU=/^\s*/,LU=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MU=/^:\s*/,PU=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$U=/^[;\s]*/,jU=/^\s+|\s+$/g,FU=` -`,xx="/",Ex="*",ga="",BU="comment",UU="declaration",zU=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(m){var b=m.match(NU);b&&(n+=b.length);var S=m.lastIndexOf(FU);r=~S?m.length-S:r+m.length}function i(){var m={line:n,column:r};return function(b){return b.position=new o(m),u(),b}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var S=b[0];return a(S),e=e.slice(S.length),b}}function u(){l(DU)}function c(m){var b;for(m=m||[];b=p();)b!==!1&&m.push(b);return m}function p(){var m=i();if(!(xx!=e.charAt(0)||Ex!=e.charAt(1))){for(var b=2;ga!=e.charAt(b)&&(Ex!=e.charAt(b)||xx!=e.charAt(b+1));)++b;if(b+=2,ga===e.charAt(b-1))return s("End of comment missing");var S=e.slice(2,b-2);return r+=2,a(S),e=e.slice(b),r+=2,m({type:BU,comment:S})}}function f(){var m=i(),b=l(LU);if(b){if(p(),!l(MU))return s("property missing ':'");var S=l(PU),T=m({type:UU,property:wx(b[0].replace(Sx,ga)),value:S?wx(S[0].replace(Sx,ga)):ga});return l($U),T}}function h(){var m=[];c(m);for(var b;b=f();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function wx(e){return e?e.replace(jU,ga):ga}var GU=At&&At.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(XI,"__esModule",{value:!0});var qU=GU(zU);function HU(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,qU.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var _x=XI.default=HU;const WU=_x.default||_x,ZI=QI("end"),Uy=QI("start");function QI(e){return t;function t(n){const r=n&&n.position&&n.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 VU(e){const t=Uy(e),n=ZI(e);if(t&&n)return{start:t,end:n}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tx(e.position):"start"in e||"end"in e?Tx(e):"line"in e||"column"in e?Zm(e):""}function Zm(e){return Ax(e&&e.line)+":"+Ax(e&&e.column)}function Tx(e){return Zm(e&&e.start)+"-"+Zm(e&&e.end)}function Ax(e){return e&&typeof e=="number"?e:1}class Xt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=po(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xt.prototype.file="";Xt.prototype.name="";Xt.prototype.reason="";Xt.prototype.message="";Xt.prototype.stack="";Xt.prototype.column=void 0;Xt.prototype.line=void 0;Xt.prototype.ancestors=void 0;Xt.prototype.cause=void 0;Xt.prototype.fatal=void 0;Xt.prototype.place=void 0;Xt.prototype.ruleId=void 0;Xt.prototype.source=void 0;const zy={}.hasOwnProperty,YU=new Map,KU=/[A-Z]/g,XU=/-([a-z])/g,ZU=new Set(["table","tbody","thead","tfoot","tr"]),QU=new Set(["td","th"]),JI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=sz(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oz(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?By:RU,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=eR(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function eR(e,t,n){if(t.type==="element")return ez(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tz(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rz(e,t,n);if(t.type==="mdxjsEsm")return nz(e,t);if(t.type==="root")return az(e,t,n);if(t.type==="text")return iz(e,t)}function ez(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=nR(e,t.tagName,!1),o=lz(e,t);let s=qy(e,t);return ZU.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vU(l):!0})),tR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function tz(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Eo(e,t.position)}function nz(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eo(e,t.position)}function rz(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:nR(e,t.name,!0),o=uz(e,t),s=qy(e,t);return tR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function az(e,t,n){const r={};return Gy(r,qy(e,t)),e.create(t,e.Fragment,r,n)}function iz(e,t){return t.value}function tR(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oz(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function sz(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Uy(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function lz(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zy.call(t.properties,a)){const i=cz(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&QU.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function uz(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Eo(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Eo(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qy(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:YU;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(pr(e,e.length,0,t),e):t}const Ix={}.hasOwnProperty;function vz(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ez=ea(/\p{P}/u),or=ea(/[A-Za-z]/),xn=ea(/[\dA-Za-z]/),wz=ea(/[#-'*+\--9=?A-Z^-~]/);function Qm(e){return e!==null&&(e<32||e===127)}const Jm=ea(/\d/),_z=ea(/[\dA-Fa-f]/),iR=ea(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}function Tz(e){return iR(e)||Ez(e)}const Az=ea(/\s/);function ea(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oi(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ct(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Ke(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ke(l)&&i++o))return;const O=t.events.length;let R=O,C,$;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(C){$=t.events[R][1].end;break}C=!0}for(T(r),v=O;vx;){const E=n[A];t.containerState=E[1],E[0].exit.call(t,e)}n.length=x}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Cz(e,t,n){return ct(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cx(e){if(e===null||fn(e)||Az(e))return 1;if(Tz(e))return 2}function Wy(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);Nx(p,-l),Nx(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rn(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rn(u,Wy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rn(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,pr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ke(v)?ct(e,_,"linePrefix",i+1)(v):_(v)}function _(v){return v===null||Te(v)?e.check(Dx,b,A)(v):(e.enter("codeFlowValue"),x(v))}function x(v){return v===null||Te(v)?(e.exit("codeFlowValue"),_(v)):(e.consume(v),x)}function A(v){return e.exit("codeFenced"),t(v)}function E(v,O,R){let C=0;return $;function $(G){return v.enter("lineEnding"),v.consume(G),v.exit("lineEnding"),N}function N(G){return v.enter("codeFencedFence"),Ke(G)?ct(v,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):P(G)}function P(G){return G===s?(v.enter("codeFencedFenceSequence"),z(G)):R(G)}function z(G){return G===s?(C++,v.consume(G),z):C>=o?(v.exit("codeFencedFenceSequence"),Ke(G)?ct(v,V,"whitespace")(G):V(G)):R(G)}function V(G){return G===null||Te(G)?(v.exit("codeFencedFence"),O(G)):R(G)}}}function Gz(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const rd={name:"codeIndented",tokenize:Hz},qz={tokenize:Wz,partial:!0};function Hz(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),ct(e,i,"linePrefix",4+1)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):Te(u)?e.attempt(qz,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Te(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Wz(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ct(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Te(o)?a(o):n(o)}}const Vz={name:"codeText",tokenize:Xz,resolve:Yz,previous:Kz};function Yz(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function cR(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return p;function p(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),f):T===null||T===32||T===41||Qm(T)?n(T):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(T))}function f(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||Te(T)?n(T):(e.consume(T),T===92?m:h)}function m(T){return T===60||T===62||T===92?(e.consume(T),h):h(T)}function b(T){return!c&&(T===null||T===41||fn(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(T)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Te(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Te(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ke(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function pR(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ct(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Te(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function fo(e,t){let n;return r;function r(a){return Te(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ke(a)?ct(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const rG={name:"definition",tokenize:iG},aG={tokenize:oG,partial:!0};function iG(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return dR.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return fn(h)?fo(e,u)(h):u(h)}function u(h){return cR(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(aG,p,p)(h)}function p(h){return Ke(h)?ct(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Te(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function oG(e,t,n){return r;function r(s){return fn(s)?fo(e,a)(s):n(s)}function a(s){return pR(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Ke(s)?ct(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Te(s)?t(s):n(s)}}const sG={name:"hardBreakEscape",tokenize:lG};function lG(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Te(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const uG={name:"headingAtx",tokenize:dG,resolve:cG};function cG(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pr(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function dG(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||fn(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Te(c)?(e.exit("atxHeading"),t(c)):Ke(c)?ct(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||fn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const pG=["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"],Mx=["pre","script","style","textarea"],fG={name:"htmlFlow",tokenize:bG,resolveTo:mG,concrete:!0},hG={tokenize:vG,partial:!0},gG={tokenize:yG,partial:!0};function mG(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bG(e,t,n){const r=this;let a,i,o,s,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),i=!0,b):M===63?(e.consume(M),a=3,r.interrupt?t:D):or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,s=0,m):or(M)?(e.consume(M),a=4,r.interrupt?t:D):n(M)}function h(M){return M===45?(e.consume(M),r.interrupt?t:D):n(M)}function m(M){const ye="CDATA[";return M===ye.charCodeAt(s++)?(e.consume(M),s===ye.length?r.interrupt?t:P:m):n(M)}function b(M){return or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function S(M){if(M===null||M===47||M===62||fn(M)){const ye=M===47,re=o.toLowerCase();return!ye&&!i&&Mx.includes(re)?(a=1,r.interrupt?t(M):P(M)):pG.includes(o.toLowerCase())?(a=6,ye?(e.consume(M),T):r.interrupt?t(M):P(M)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):i?_(M):x(M))}return M===45||xn(M)?(e.consume(M),o+=String.fromCharCode(M),S):n(M)}function T(M){return M===62?(e.consume(M),r.interrupt?t:P):n(M)}function _(M){return Ke(M)?(e.consume(M),_):$(M)}function x(M){return M===47?(e.consume(M),$):M===58||M===95||or(M)?(e.consume(M),A):Ke(M)?(e.consume(M),x):$(M)}function A(M){return M===45||M===46||M===58||M===95||xn(M)?(e.consume(M),A):E(M)}function E(M){return M===61?(e.consume(M),v):Ke(M)?(e.consume(M),E):x(M)}function v(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,O):Ke(M)?(e.consume(M),v):R(M)}function O(M){return M===l?(e.consume(M),l=null,C):M===null||Te(M)?n(M):(e.consume(M),O)}function R(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||fn(M)?E(M):(e.consume(M),R)}function C(M){return M===47||M===62||Ke(M)?x(M):n(M)}function $(M){return M===62?(e.consume(M),N):n(M)}function N(M){return M===null||Te(M)?P(M):Ke(M)?(e.consume(M),N):n(M)}function P(M){return M===45&&a===2?(e.consume(M),K):M===60&&a===1?(e.consume(M),X):M===62&&a===4?(e.consume(M),ie):M===63&&a===3?(e.consume(M),D):M===93&&a===5?(e.consume(M),Z):Te(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(hG,ne,z)(M)):M===null||Te(M)?(e.exit("htmlFlowData"),z(M)):(e.consume(M),P)}function z(M){return e.check(gG,V,ne)(M)}function V(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),G}function G(M){return M===null||Te(M)?z(M):(e.enter("htmlFlowData"),P(M))}function K(M){return M===45?(e.consume(M),D):P(M)}function X(M){return M===47?(e.consume(M),o="",W):P(M)}function W(M){if(M===62){const ye=o.toLowerCase();return Mx.includes(ye)?(e.consume(M),ie):P(M)}return or(M)&&o.length<8?(e.consume(M),o+=String.fromCharCode(M),W):P(M)}function Z(M){return M===93?(e.consume(M),D):P(M)}function D(M){return M===62?(e.consume(M),ie):M===45&&a===2?(e.consume(M),D):P(M)}function ie(M){return M===null||Te(M)?(e.exit("htmlFlowData"),ne(M)):(e.consume(M),ie)}function ne(M){return e.exit("htmlFlow"),t(M)}}function yG(e,t,n){const r=this;return a;function a(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vG(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Mu,t,n)}}const SG={name:"htmlText",tokenize:xG};function xG(e,t,n){const r=this;let a,i,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),E):D===63?(e.consume(D),x):or(D)?(e.consume(D),R):n(D)}function u(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),i=0,m):or(D)?(e.consume(D),_):n(D)}function c(D){return D===45?(e.consume(D),h):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),f):Te(D)?(o=p,X(D)):(e.consume(D),p)}function f(D){return D===45?(e.consume(D),h):p(D)}function h(D){return D===62?K(D):D===45?f(D):p(D)}function m(D){const ie="CDATA[";return D===ie.charCodeAt(i++)?(e.consume(D),i===ie.length?b:m):n(D)}function b(D){return D===null?n(D):D===93?(e.consume(D),S):Te(D)?(o=b,X(D)):(e.consume(D),b)}function S(D){return D===93?(e.consume(D),T):b(D)}function T(D){return D===62?K(D):D===93?(e.consume(D),T):b(D)}function _(D){return D===null||D===62?K(D):Te(D)?(o=_,X(D)):(e.consume(D),_)}function x(D){return D===null?n(D):D===63?(e.consume(D),A):Te(D)?(o=x,X(D)):(e.consume(D),x)}function A(D){return D===62?K(D):x(D)}function E(D){return or(D)?(e.consume(D),v):n(D)}function v(D){return D===45||xn(D)?(e.consume(D),v):O(D)}function O(D){return Te(D)?(o=O,X(D)):Ke(D)?(e.consume(D),O):K(D)}function R(D){return D===45||xn(D)?(e.consume(D),R):D===47||D===62||fn(D)?C(D):n(D)}function C(D){return D===47?(e.consume(D),K):D===58||D===95||or(D)?(e.consume(D),$):Te(D)?(o=C,X(D)):Ke(D)?(e.consume(D),C):K(D)}function $(D){return D===45||D===46||D===58||D===95||xn(D)?(e.consume(D),$):N(D)}function N(D){return D===61?(e.consume(D),P):Te(D)?(o=N,X(D)):Ke(D)?(e.consume(D),N):C(D)}function P(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,z):Te(D)?(o=P,X(D)):Ke(D)?(e.consume(D),P):(e.consume(D),V)}function z(D){return D===a?(e.consume(D),a=void 0,G):D===null?n(D):Te(D)?(o=z,X(D)):(e.consume(D),z)}function V(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||fn(D)?C(D):(e.consume(D),V)}function G(D){return D===47||D===62||fn(D)?C(D):n(D)}function K(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function X(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Ke(D)?ct(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Z(D)}function Z(D){return e.enter("htmlTextData"),o(D)}}const Vy={name:"labelEnd",tokenize:kG,resolveTo:AG,resolveAll:TG},EG={tokenize:OG},wG={tokenize:IG},_G={tokenize:RG};function TG(e){let t=-1;for(;++t=3&&(u===null||Te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ke(u)?ct(e,s,"whitespace")(u):s(u))}}const cn={name:"list",tokenize:FG,continuation:{tokenize:BG},exit:zG},$G={tokenize:GG,partial:!0},jG={tokenize:UG,partial:!0};function FG(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Jm(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Sl,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Jm(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Mu,r.interrupt?n:c,e.attempt($G,f,p))}function c(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return Ke(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function BG(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Mu,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ct(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Ke(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jG,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ct(e,e.attempt(cn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function UG(e,t,n){const r=this;return ct(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function zG(e){e.exit(this.containerState.type)}function GG(e,t,n){const r=this;return ct(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!Ke(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Px={name:"setextUnderline",tokenize:HG,resolveTo:qG};function qG(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function HG(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ke(u)?ct(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const WG={tokenize:VG};function VG(e){const t=this,n=e.attempt(Mu,r,e.attempt(this.parser.constructs.flowInitial,a,ct(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Qz,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const YG={resolveAll:hR()},KG=fR("string"),XG=fR("text");function fR(e){return{tokenize:t,resolveAll:hR(e==="text"?ZG:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const p=a[c];let f=-1;if(p)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function eq(e,t){let n=-1;const r=[];let a;for(;++n{const e="/get_trends";return await aI.get(e)};function hU(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bU={};function mx(e,t){return((t||bU).jsx?mU:gU).test(e)}const yU=/[ \t\n\f\r]/g;function vU(e){return typeof e=="object"?e.type==="text"?bx(e.value):!1:bx(e)}function bx(e){return e.replace(yU,"")===""}let ms=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ms.prototype.property={};ms.prototype.normal={};ms.prototype.space=null;function GI(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&_U.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(vx,OU);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!vx.test(i)){let o=i.replace(TU,kU);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Fy}return new a(r,t)}function kU(e){return"-"+e.toLowerCase()}function OU(e){return e.charAt(1).toUpperCase()}const IU={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"},RU=GI([WI,HI,KI,XI,EU],"html"),By=GI([WI,HI,KI,XI,wU],"svg");function CU(e){return e.join(" ").trim()}var ZI={},Sx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NU=/\n/g,DU=/^\s*/,LU=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MU=/^:\s*/,PU=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$U=/^[;\s]*/,jU=/^\s+|\s+$/g,FU=` +`,xx="/",Ex="*",ga="",BU="comment",UU="declaration",zU=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(m){var b=m.match(NU);b&&(n+=b.length);var S=m.lastIndexOf(FU);r=~S?m.length-S:r+m.length}function i(){var m={line:n,column:r};return function(b){return b.position=new o(m),u(),b}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var S=b[0];return a(S),e=e.slice(S.length),b}}function u(){l(DU)}function c(m){var b;for(m=m||[];b=p();)b!==!1&&m.push(b);return m}function p(){var m=i();if(!(xx!=e.charAt(0)||Ex!=e.charAt(1))){for(var b=2;ga!=e.charAt(b)&&(Ex!=e.charAt(b)||xx!=e.charAt(b+1));)++b;if(b+=2,ga===e.charAt(b-1))return s("End of comment missing");var S=e.slice(2,b-2);return r+=2,a(S),e=e.slice(b),r+=2,m({type:BU,comment:S})}}function f(){var m=i(),b=l(LU);if(b){if(p(),!l(MU))return s("property missing ':'");var S=l(PU),T=m({type:UU,property:wx(b[0].replace(Sx,ga)),value:S?wx(S[0].replace(Sx,ga)):ga});return l($U),T}}function h(){var m=[];c(m);for(var b;b=f();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function wx(e){return e?e.replace(jU,ga):ga}var GU=At&&At.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ZI,"__esModule",{value:!0});var qU=GU(zU);function HU(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,qU.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var _x=ZI.default=HU;const WU=_x.default||_x,QI=JI("end"),Uy=JI("start");function JI(e){return t;function t(n){const r=n&&n.position&&n.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 VU(e){const t=Uy(e),n=QI(e);if(t&&n)return{start:t,end:n}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tx(e.position):"start"in e||"end"in e?Tx(e):"line"in e||"column"in e?Zm(e):""}function Zm(e){return Ax(e&&e.line)+":"+Ax(e&&e.column)}function Tx(e){return Zm(e&&e.start)+"-"+Zm(e&&e.end)}function Ax(e){return e&&typeof e=="number"?e:1}class Xt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=po(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xt.prototype.file="";Xt.prototype.name="";Xt.prototype.reason="";Xt.prototype.message="";Xt.prototype.stack="";Xt.prototype.column=void 0;Xt.prototype.line=void 0;Xt.prototype.ancestors=void 0;Xt.prototype.cause=void 0;Xt.prototype.fatal=void 0;Xt.prototype.place=void 0;Xt.prototype.ruleId=void 0;Xt.prototype.source=void 0;const zy={}.hasOwnProperty,YU=new Map,KU=/[A-Z]/g,XU=/-([a-z])/g,ZU=new Set(["table","tbody","thead","tfoot","tr"]),QU=new Set(["td","th"]),eR="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=sz(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oz(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?By:RU,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=tR(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function tR(e,t,n){if(t.type==="element")return ez(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tz(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rz(e,t,n);if(t.type==="mdxjsEsm")return nz(e,t);if(t.type==="root")return az(e,t,n);if(t.type==="text")return iz(e,t)}function ez(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=rR(e,t.tagName,!1),o=lz(e,t);let s=qy(e,t);return ZU.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vU(l):!0})),nR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function tz(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Eo(e,t.position)}function nz(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eo(e,t.position)}function rz(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:rR(e,t.name,!0),o=uz(e,t),s=qy(e,t);return nR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function az(e,t,n){const r={};return Gy(r,qy(e,t)),e.create(t,e.Fragment,r,n)}function iz(e,t){return t.value}function nR(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oz(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function sz(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Uy(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function lz(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zy.call(t.properties,a)){const i=cz(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&QU.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function uz(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Eo(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Eo(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qy(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:YU;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(pr(e,e.length,0,t),e):t}const Ix={}.hasOwnProperty;function vz(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ez=ea(/\p{P}/u),or=ea(/[A-Za-z]/),xn=ea(/[\dA-Za-z]/),wz=ea(/[#-'*+\--9=?A-Z^-~]/);function Qm(e){return e!==null&&(e<32||e===127)}const Jm=ea(/\d/),_z=ea(/[\dA-Fa-f]/),oR=ea(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}function Tz(e){return oR(e)||Ez(e)}const Az=ea(/\s/);function ea(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oi(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ct(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Ke(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ke(l)&&i++o))return;const O=t.events.length;let R=O,C,$;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(C){$=t.events[R][1].end;break}C=!0}for(T(r),v=O;vE;){const x=n[A];t.containerState=x[1],x[0].exit.call(t,e)}n.length=E}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Cz(e,t,n){return ct(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cx(e){if(e===null||fn(e)||Az(e))return 1;if(Tz(e))return 2}function Wy(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);Nx(p,-l),Nx(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rn(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rn(u,Wy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rn(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,pr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ke(v)?ct(e,_,"linePrefix",i+1)(v):_(v)}function _(v){return v===null||Te(v)?e.check(Dx,b,A)(v):(e.enter("codeFlowValue"),E(v))}function E(v){return v===null||Te(v)?(e.exit("codeFlowValue"),_(v)):(e.consume(v),E)}function A(v){return e.exit("codeFenced"),t(v)}function x(v,O,R){let C=0;return $;function $(G){return v.enter("lineEnding"),v.consume(G),v.exit("lineEnding"),N}function N(G){return v.enter("codeFencedFence"),Ke(G)?ct(v,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):P(G)}function P(G){return G===s?(v.enter("codeFencedFenceSequence"),z(G)):R(G)}function z(G){return G===s?(C++,v.consume(G),z):C>=o?(v.exit("codeFencedFenceSequence"),Ke(G)?ct(v,V,"whitespace")(G):V(G)):R(G)}function V(G){return G===null||Te(G)?(v.exit("codeFencedFence"),O(G)):R(G)}}}function Gz(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const rd={name:"codeIndented",tokenize:Hz},qz={tokenize:Wz,partial:!0};function Hz(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),ct(e,i,"linePrefix",4+1)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):Te(u)?e.attempt(qz,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Te(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Wz(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ct(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Te(o)?a(o):n(o)}}const Vz={name:"codeText",tokenize:Xz,resolve:Yz,previous:Kz};function Yz(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function dR(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return p;function p(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),f):T===null||T===32||T===41||Qm(T)?n(T):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(T))}function f(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||Te(T)?n(T):(e.consume(T),T===92?m:h)}function m(T){return T===60||T===62||T===92?(e.consume(T),h):h(T)}function b(T){return!c&&(T===null||T===41||fn(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(T)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Te(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Te(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ke(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function fR(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ct(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Te(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function fo(e,t){let n;return r;function r(a){return Te(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ke(a)?ct(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const rG={name:"definition",tokenize:iG},aG={tokenize:oG,partial:!0};function iG(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return pR.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return fn(h)?fo(e,u)(h):u(h)}function u(h){return dR(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(aG,p,p)(h)}function p(h){return Ke(h)?ct(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Te(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function oG(e,t,n){return r;function r(s){return fn(s)?fo(e,a)(s):n(s)}function a(s){return fR(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Ke(s)?ct(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Te(s)?t(s):n(s)}}const sG={name:"hardBreakEscape",tokenize:lG};function lG(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Te(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const uG={name:"headingAtx",tokenize:dG,resolve:cG};function cG(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pr(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function dG(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||fn(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Te(c)?(e.exit("atxHeading"),t(c)):Ke(c)?ct(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||fn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const pG=["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"],Mx=["pre","script","style","textarea"],fG={name:"htmlFlow",tokenize:bG,resolveTo:mG,concrete:!0},hG={tokenize:vG,partial:!0},gG={tokenize:yG,partial:!0};function mG(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bG(e,t,n){const r=this;let a,i,o,s,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),i=!0,b):M===63?(e.consume(M),a=3,r.interrupt?t:D):or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,s=0,m):or(M)?(e.consume(M),a=4,r.interrupt?t:D):n(M)}function h(M){return M===45?(e.consume(M),r.interrupt?t:D):n(M)}function m(M){const ye="CDATA[";return M===ye.charCodeAt(s++)?(e.consume(M),s===ye.length?r.interrupt?t:P:m):n(M)}function b(M){return or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function S(M){if(M===null||M===47||M===62||fn(M)){const ye=M===47,re=o.toLowerCase();return!ye&&!i&&Mx.includes(re)?(a=1,r.interrupt?t(M):P(M)):pG.includes(o.toLowerCase())?(a=6,ye?(e.consume(M),T):r.interrupt?t(M):P(M)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):i?_(M):E(M))}return M===45||xn(M)?(e.consume(M),o+=String.fromCharCode(M),S):n(M)}function T(M){return M===62?(e.consume(M),r.interrupt?t:P):n(M)}function _(M){return Ke(M)?(e.consume(M),_):$(M)}function E(M){return M===47?(e.consume(M),$):M===58||M===95||or(M)?(e.consume(M),A):Ke(M)?(e.consume(M),E):$(M)}function A(M){return M===45||M===46||M===58||M===95||xn(M)?(e.consume(M),A):x(M)}function x(M){return M===61?(e.consume(M),v):Ke(M)?(e.consume(M),x):E(M)}function v(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,O):Ke(M)?(e.consume(M),v):R(M)}function O(M){return M===l?(e.consume(M),l=null,C):M===null||Te(M)?n(M):(e.consume(M),O)}function R(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||fn(M)?x(M):(e.consume(M),R)}function C(M){return M===47||M===62||Ke(M)?E(M):n(M)}function $(M){return M===62?(e.consume(M),N):n(M)}function N(M){return M===null||Te(M)?P(M):Ke(M)?(e.consume(M),N):n(M)}function P(M){return M===45&&a===2?(e.consume(M),K):M===60&&a===1?(e.consume(M),X):M===62&&a===4?(e.consume(M),ie):M===63&&a===3?(e.consume(M),D):M===93&&a===5?(e.consume(M),Z):Te(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(hG,ne,z)(M)):M===null||Te(M)?(e.exit("htmlFlowData"),z(M)):(e.consume(M),P)}function z(M){return e.check(gG,V,ne)(M)}function V(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),G}function G(M){return M===null||Te(M)?z(M):(e.enter("htmlFlowData"),P(M))}function K(M){return M===45?(e.consume(M),D):P(M)}function X(M){return M===47?(e.consume(M),o="",W):P(M)}function W(M){if(M===62){const ye=o.toLowerCase();return Mx.includes(ye)?(e.consume(M),ie):P(M)}return or(M)&&o.length<8?(e.consume(M),o+=String.fromCharCode(M),W):P(M)}function Z(M){return M===93?(e.consume(M),D):P(M)}function D(M){return M===62?(e.consume(M),ie):M===45&&a===2?(e.consume(M),D):P(M)}function ie(M){return M===null||Te(M)?(e.exit("htmlFlowData"),ne(M)):(e.consume(M),ie)}function ne(M){return e.exit("htmlFlow"),t(M)}}function yG(e,t,n){const r=this;return a;function a(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vG(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Mu,t,n)}}const SG={name:"htmlText",tokenize:xG};function xG(e,t,n){const r=this;let a,i,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),x):D===63?(e.consume(D),E):or(D)?(e.consume(D),R):n(D)}function u(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),i=0,m):or(D)?(e.consume(D),_):n(D)}function c(D){return D===45?(e.consume(D),h):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),f):Te(D)?(o=p,X(D)):(e.consume(D),p)}function f(D){return D===45?(e.consume(D),h):p(D)}function h(D){return D===62?K(D):D===45?f(D):p(D)}function m(D){const ie="CDATA[";return D===ie.charCodeAt(i++)?(e.consume(D),i===ie.length?b:m):n(D)}function b(D){return D===null?n(D):D===93?(e.consume(D),S):Te(D)?(o=b,X(D)):(e.consume(D),b)}function S(D){return D===93?(e.consume(D),T):b(D)}function T(D){return D===62?K(D):D===93?(e.consume(D),T):b(D)}function _(D){return D===null||D===62?K(D):Te(D)?(o=_,X(D)):(e.consume(D),_)}function E(D){return D===null?n(D):D===63?(e.consume(D),A):Te(D)?(o=E,X(D)):(e.consume(D),E)}function A(D){return D===62?K(D):E(D)}function x(D){return or(D)?(e.consume(D),v):n(D)}function v(D){return D===45||xn(D)?(e.consume(D),v):O(D)}function O(D){return Te(D)?(o=O,X(D)):Ke(D)?(e.consume(D),O):K(D)}function R(D){return D===45||xn(D)?(e.consume(D),R):D===47||D===62||fn(D)?C(D):n(D)}function C(D){return D===47?(e.consume(D),K):D===58||D===95||or(D)?(e.consume(D),$):Te(D)?(o=C,X(D)):Ke(D)?(e.consume(D),C):K(D)}function $(D){return D===45||D===46||D===58||D===95||xn(D)?(e.consume(D),$):N(D)}function N(D){return D===61?(e.consume(D),P):Te(D)?(o=N,X(D)):Ke(D)?(e.consume(D),N):C(D)}function P(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,z):Te(D)?(o=P,X(D)):Ke(D)?(e.consume(D),P):(e.consume(D),V)}function z(D){return D===a?(e.consume(D),a=void 0,G):D===null?n(D):Te(D)?(o=z,X(D)):(e.consume(D),z)}function V(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||fn(D)?C(D):(e.consume(D),V)}function G(D){return D===47||D===62||fn(D)?C(D):n(D)}function K(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function X(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Ke(D)?ct(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Z(D)}function Z(D){return e.enter("htmlTextData"),o(D)}}const Vy={name:"labelEnd",tokenize:kG,resolveTo:AG,resolveAll:TG},EG={tokenize:OG},wG={tokenize:IG},_G={tokenize:RG};function TG(e){let t=-1;for(;++t=3&&(u===null||Te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ke(u)?ct(e,s,"whitespace")(u):s(u))}}const cn={name:"list",tokenize:FG,continuation:{tokenize:BG},exit:zG},$G={tokenize:GG,partial:!0},jG={tokenize:UG,partial:!0};function FG(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Jm(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Sl,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Jm(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Mu,r.interrupt?n:c,e.attempt($G,f,p))}function c(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return Ke(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function BG(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Mu,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ct(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Ke(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jG,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ct(e,e.attempt(cn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function UG(e,t,n){const r=this;return ct(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function zG(e){e.exit(this.containerState.type)}function GG(e,t,n){const r=this;return ct(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!Ke(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Px={name:"setextUnderline",tokenize:HG,resolveTo:qG};function qG(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function HG(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ke(u)?ct(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const WG={tokenize:VG};function VG(e){const t=this,n=e.attempt(Mu,r,e.attempt(this.parser.constructs.flowInitial,a,ct(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Qz,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const YG={resolveAll:gR()},KG=hR("string"),XG=hR("text");function hR(e){return{tokenize:t,resolveAll:gR(e==="text"?ZG:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const p=a[c];let f=-1;if(p)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function eq(e,t){let n=-1;const r=[];let a;for(;++n0){const ke=oe.tokenStack[oe.tokenStack.length-1];(ke[1]||jx).call(oe,void 0,ke[0])}for(Q.position={start:qr(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:qr(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue0){const ke=oe.tokenStack[oe.tokenStack.length-1];(ke[1]||jx).call(oe,void 0,ke[0])}for(Q.position={start:qr(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:qr(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function kq(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Oq(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bR(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Iq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bR(e,t);const a={src:Oi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Rq(e,t){const n={src:Oi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Cq(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bR(e,t);const a={href:Oi(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Dq(e,t){const n={href:Oi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lq(e,t,n){const r=e.all(t),a=n?Mq(n):yR(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let p;c&&c.type==="element"&&c.tagName==="p"?p=c:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function kq(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Oq(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function yR(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Iq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yR(e,t);const a={src:Oi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Rq(e,t){const n={src:Oi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Cq(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yR(e,t);const a={href:Oi(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Dq(e,t){const n={href:Oi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lq(e,t,n){const r=e.all(t),a=n?Mq(n):vR(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let p;c&&c.type==="element"&&c.tagName==="p"?p=c:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s1}function Pq(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Uy(t.children[1]),l=ZI(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function Uq(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Ux(t.slice(a),a>0,!1)),i.join("")}function Ux(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===Fx||i===Bx;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===Fx||i===Bx;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function qq(e,t){const n={type:"text",value:Gq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Wq={blockquote:xq,break:Eq,code:wq,delete:_q,emphasis:Tq,footnoteReference:Aq,heading:kq,html:Oq,imageReference:Iq,image:Rq,inlineCode:Cq,linkReference:Nq,link:Dq,listItem:Lq,list:Pq,paragraph:$q,root:jq,strong:Fq,table:Bq,tableCell:zq,tableRow:Uq,text:qq,thematicBreak:Hq,toml:tl,yaml:tl,definition:tl,footnoteDefinition:tl};function tl(){}const vR=-1,Pu=0,Il=1,Rl=2,Yy=3,Ky=4,Xy=5,Zy=6,SR=7,xR=8,zx=typeof self=="object"?self:globalThis,Vq=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case Pu:case vR:return n(o,a);case Il:{const s=n([],a);for(const l of o)s.push(r(l));return s}case Rl:{const s=n({},a);for(const[l,u]of o)s[r(l)]=r(u);return s}case Yy:return n(new Date(o),a);case Ky:{const{source:s,flags:l}=o;return n(new RegExp(s,l),a)}case Xy:{const s=n(new Map,a);for(const[l,u]of o)s.set(r(l),r(u));return s}case Zy:{const s=n(new Set,a);for(const l of o)s.add(r(l));return s}case SR:{const{name:s,message:l}=o;return n(new zx[s](l),a)}case xR:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new zx[i](o),a)};return r},Gx=e=>Vq(new Map,e)(0),ja="",{toString:Yq}={},{keys:Kq}=Object,Wi=e=>{const t=typeof e;if(t!=="object"||!e)return[Pu,t];const n=Yq.call(e).slice(8,-1);switch(n){case"Array":return[Il,ja];case"Object":return[Rl,ja];case"Date":return[Yy,ja];case"RegExp":return[Ky,ja];case"Map":return[Xy,ja];case"Set":return[Zy,ja]}return n.includes("Array")?[Il,n]:n.includes("Error")?[SR,n]:[Rl,n]},nl=([e,t])=>e===Pu&&(t==="function"||t==="symbol"),Xq=(e,t,n,r)=>{const a=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},i=o=>{if(n.has(o))return n.get(o);let[s,l]=Wi(o);switch(s){case Pu:{let c=o;switch(l){case"bigint":s=xR,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([vR],o)}return a([s,c],o)}case Il:{if(l)return a([l,[...o]],o);const c=[],p=a([s,c],o);for(const f of o)c.push(i(f));return p}case Rl:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],p=a([s,c],o);for(const f of Kq(o))(e||!nl(Wi(o[f])))&&c.push([i(f),i(o[f])]);return p}case Yy:return a([s,o.toISOString()],o);case Ky:{const{source:c,flags:p}=o;return a([s,{source:c,flags:p}],o)}case Xy:{const c=[],p=a([s,c],o);for(const[f,h]of o)(e||!(nl(Wi(f))||nl(Wi(h))))&&c.push([i(f),i(h)]);return p}case Zy:{const c=[],p=a([s,c],o);for(const f of o)(e||!nl(Wi(f)))&&c.push(i(f));return p}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return i},qx=(e,{json:t,lossy:n}={})=>{const r=[];return Xq(!(t||n),!!t,new Map,r)(e),r},Cl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gx(qx(e,t)):structuredClone(e):(e,t)=>Gx(qx(e,t));function Zq(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Jq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Zq,r=e.options.footnoteBackLabel||Qq,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,h);typeof _=="string"&&(_={type:"text",value:_}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const S=c[c.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const _=S.children[S.children.length-1];_&&_.type==="text"?_.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...m)}else c.push(...m);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,T),s.push(T)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Cl(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function Mq(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Pq(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Uy(t.children[1]),l=QI(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function Uq(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Ux(t.slice(a),a>0,!1)),i.join("")}function Ux(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===Fx||i===Bx;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===Fx||i===Bx;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function qq(e,t){const n={type:"text",value:Gq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Wq={blockquote:xq,break:Eq,code:wq,delete:_q,emphasis:Tq,footnoteReference:Aq,heading:kq,html:Oq,imageReference:Iq,image:Rq,inlineCode:Cq,linkReference:Nq,link:Dq,listItem:Lq,list:Pq,paragraph:$q,root:jq,strong:Fq,table:Bq,tableCell:zq,tableRow:Uq,text:qq,thematicBreak:Hq,toml:tl,yaml:tl,definition:tl,footnoteDefinition:tl};function tl(){}const SR=-1,Pu=0,Il=1,Rl=2,Yy=3,Ky=4,Xy=5,Zy=6,xR=7,ER=8,zx=typeof self=="object"?self:globalThis,Vq=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case Pu:case SR:return n(o,a);case Il:{const s=n([],a);for(const l of o)s.push(r(l));return s}case Rl:{const s=n({},a);for(const[l,u]of o)s[r(l)]=r(u);return s}case Yy:return n(new Date(o),a);case Ky:{const{source:s,flags:l}=o;return n(new RegExp(s,l),a)}case Xy:{const s=n(new Map,a);for(const[l,u]of o)s.set(r(l),r(u));return s}case Zy:{const s=n(new Set,a);for(const l of o)s.add(r(l));return s}case xR:{const{name:s,message:l}=o;return n(new zx[s](l),a)}case ER:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new zx[i](o),a)};return r},Gx=e=>Vq(new Map,e)(0),ja="",{toString:Yq}={},{keys:Kq}=Object,Wi=e=>{const t=typeof e;if(t!=="object"||!e)return[Pu,t];const n=Yq.call(e).slice(8,-1);switch(n){case"Array":return[Il,ja];case"Object":return[Rl,ja];case"Date":return[Yy,ja];case"RegExp":return[Ky,ja];case"Map":return[Xy,ja];case"Set":return[Zy,ja]}return n.includes("Array")?[Il,n]:n.includes("Error")?[xR,n]:[Rl,n]},nl=([e,t])=>e===Pu&&(t==="function"||t==="symbol"),Xq=(e,t,n,r)=>{const a=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},i=o=>{if(n.has(o))return n.get(o);let[s,l]=Wi(o);switch(s){case Pu:{let c=o;switch(l){case"bigint":s=ER,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([SR],o)}return a([s,c],o)}case Il:{if(l)return a([l,[...o]],o);const c=[],p=a([s,c],o);for(const f of o)c.push(i(f));return p}case Rl:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],p=a([s,c],o);for(const f of Kq(o))(e||!nl(Wi(o[f])))&&c.push([i(f),i(o[f])]);return p}case Yy:return a([s,o.toISOString()],o);case Ky:{const{source:c,flags:p}=o;return a([s,{source:c,flags:p}],o)}case Xy:{const c=[],p=a([s,c],o);for(const[f,h]of o)(e||!(nl(Wi(f))||nl(Wi(h))))&&c.push([i(f),i(h)]);return p}case Zy:{const c=[],p=a([s,c],o);for(const f of o)(e||!nl(Wi(f)))&&c.push(i(f));return p}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return i},qx=(e,{json:t,lossy:n}={})=>{const r=[];return Xq(!(t||n),!!t,new Map,r)(e),r},Cl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gx(qx(e,t)):structuredClone(e):(e,t)=>Gx(qx(e,t));function Zq(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Jq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Zq,r=e.options.footnoteBackLabel||Qq,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,h);typeof _=="string"&&(_={type:"text",value:_}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const S=c[c.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const _=S.children[S.children.length-1];_&&_.type==="text"?_.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...m)}else c.push(...m);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,T),s.push(T)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Cl(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const ER=function(e){if(e==null)return rH;if(typeof e=="function")return $u(e);if(typeof e=="object")return Array.isArray(e)?eH(e):tH(e);if(typeof e=="string")return nH(e);throw new Error("Expected function, string, or object as test")};function eH(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let h=wR,m,b,S;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=lH(n(l,c)),h[0]===Hx))return h;if("children"in l&&l.children){const T=l;if(T.children&&h[0]!==oH)for(b=(r?T.children.length:-1)+o,S=c.concat(T);b>-1&&b":""))+")"})}return f;function f(){let h=_R,m,b,S;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=lH(n(l,c)),h[0]===Hx))return h;if("children"in l&&l.children){const T=l;if(T.children&&h[0]!==oH)for(b=(r?T.children.length:-1)+o,S=c.concat(T);b>-1&&b0&&n.push({type:"text",value:` `}),n}function Wx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Vx(e,t){const n=cH(e,t),r=n.one(e,void 0),a=Jq(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` -`},a),i}function gH(e,t){return e&&"run"in e?async function(n,r){const a=Vx(n,t);await e.run(a,r)}:function(n){return Vx(n,t||e)}}function Yx(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,TR=Object.prototype.toString,Kx=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,Zx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):TR.call(t)==="[object Array]"},Qx=function(t){if(!t||TR.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||xl.call(t,a)},Jx=function(t,n){Kx&&n.name==="__proto__"?Kx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},eE=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Xx)return Xx(t,n).value}else return;return t[n]},mH=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return a(c)}s||(l instanceof Promise?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const rr={basename:vH,dirname:SH,extname:xH,join:EH,sep:"/"};function vH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function SH(e){if(bs(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xH(e){bs(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function EH(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _H(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TH={cwd:AH};function AH(){return"/"}function rb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kH(e){if(typeof e=="string")e=new URL(e);else if(!rb(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return OH(e)}function OH(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 t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const b=r[f][1];nb(b)&&nb(h)&&(h=id(!0,b,h)),r[f]=[u,h,...m]}}}}const NH=new Qy().freeze();function ud(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nE(e){if(!nb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rl(e){return DH(e)?e:new AR(e)}function DH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LH(e){return typeof e=="string"||MH(e)}function MH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",aE=[],iE={allowDangerousHtml:!0},$H=/^(https?|ircs?|mailto|xmpp)$/i,jH=[{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 FH(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||aE,l=e.remarkPlugins||aE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iE}:iE,c=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||BH,h=NH().use(Sq).use(l).use(gH,u).use(s),m=new AR;typeof r=="string"&&(m.value=r);for(const _ of jH)Object.hasOwn(e,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+PH+_.id,void 0);const b=h.parse(m);let S=h.runSync(b,m);return a&&(S={type:"element",tagName:"div",properties:{className:a},children:S.type==="root"?S.children:[S]}),_R(S,T),JU(S,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function T(_,x,A){if(_.type==="raw"&&A&&typeof x=="number")return c?A.children.splice(x,1):A.children[x]={type:"text",value:_.value},x;if(_.type==="element"){let E;for(E in nd)if(Object.hasOwn(nd,E)&&Object.hasOwn(_.properties,E)){const v=_.properties[E],O=nd[E];(O===null||O.includes(_.tagName))&&(_.properties[E]=f(String(v||""),E,_))}}if(_.type==="element"){let E=t?!t.includes(_.tagName):o?o.includes(_.tagName):!1;if(!E&&n&&typeof x=="number"&&(E=!n(_,x,A)),E&&A&&typeof x=="number")return p&&_.children?A.children.splice(x,1,..._.children):A.children.splice(x,1),x}}}function BH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||$H.test(e.slice(0,t))?e:""}const UH=({trend:e,onClose:t})=>{var S,T;const[n,r]=F.useState(!1),{close:a}=Ym("briefDescription"),{currentPlayingAudio:i,setCurrentPlayingAudio:o}=Pt(_=>_),[s]=ds(_=>[_.setBudget]),{fetchData:l,setAbortRequests:u}=Mn(_=>_),c=F.useRef(null),p=async()=>{f(),await l(s,u,e.tldr_topic??e.name)},f=F.useCallback(()=>{t(),a()},[t,a]),h=()=>{c.current&&(n?c.current.pause():c.current.play(),r(!n))},m=()=>{var x,A,E;const _=!((x=i==null?void 0:i.current)!=null&&x.paused);_&&((A=i==null?void 0:i.current)==null||A.pause(),o(null)),(((E=i==null?void 0:i.current)==null?void 0:E.src)!==e.audio_EN||!_)&&h()};F.useEffect(()=>{const _=c.current,x=()=>{r(!1),o(null)};return _&&_.addEventListener("ended",x),()=>{_&&_.removeEventListener("ended",x)}},[o]);const b=((S=i==null?void 0:i.current)==null?void 0:S.src)===e.audio_EN&&!((T=i==null?void 0:i.current)!=null&&T.paused)||n;return y.jsxs(X$,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:f,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(WH,{children:[y.jsx(oE,{className:lr("default",{play:b}),onClick:m,size:"small",startIcon:b?y.jsx(Ru,{}):y.jsx(Oj,{}),children:b?"Pause":"Listen"}),y.jsx(oE,{className:"default",onClick:p,size:"small",startIcon:y.jsx(Ij,{}),children:"Learn More"})]}),y.jsx(HH,{ref:c,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(q,{mt:75,children:[y.jsx(qH,{children:e.tldr_topic??e.name}),y.jsx(zH,{children:y.jsx(q,{children:y.jsx(GH,{children:e.tldr&&y.jsx(FH,{children:e.tldr})})})})]})]})},zH=H.div` +`},a),i}function gH(e,t){return e&&"run"in e?async function(n,r){const a=Vx(n,t);await e.run(a,r)}:function(n){return Vx(n,t||e)}}function Yx(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,AR=Object.prototype.toString,Kx=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,Zx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):AR.call(t)==="[object Array]"},Qx=function(t){if(!t||AR.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||xl.call(t,a)},Jx=function(t,n){Kx&&n.name==="__proto__"?Kx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},eE=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Xx)return Xx(t,n).value}else return;return t[n]},mH=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return a(c)}s||(l instanceof Promise?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const rr={basename:vH,dirname:SH,extname:xH,join:EH,sep:"/"};function vH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function SH(e){if(bs(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xH(e){bs(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function EH(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _H(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TH={cwd:AH};function AH(){return"/"}function rb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kH(e){if(typeof e=="string")e=new URL(e);else if(!rb(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return OH(e)}function OH(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 t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const b=r[f][1];nb(b)&&nb(h)&&(h=id(!0,b,h)),r[f]=[u,h,...m]}}}}const NH=new Qy().freeze();function ud(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nE(e){if(!nb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rl(e){return DH(e)?e:new kR(e)}function DH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LH(e){return typeof e=="string"||MH(e)}function MH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",aE=[],iE={allowDangerousHtml:!0},$H=/^(https?|ircs?|mailto|xmpp)$/i,jH=[{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 FH(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||aE,l=e.remarkPlugins||aE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iE}:iE,c=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||BH,h=NH().use(Sq).use(l).use(gH,u).use(s),m=new kR;typeof r=="string"&&(m.value=r);for(const _ of jH)Object.hasOwn(e,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+PH+_.id,void 0);const b=h.parse(m);let S=h.runSync(b,m);return a&&(S={type:"element",tagName:"div",properties:{className:a},children:S.type==="root"?S.children:[S]}),TR(S,T),JU(S,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function T(_,E,A){if(_.type==="raw"&&A&&typeof E=="number")return c?A.children.splice(E,1):A.children[E]={type:"text",value:_.value},E;if(_.type==="element"){let x;for(x in nd)if(Object.hasOwn(nd,x)&&Object.hasOwn(_.properties,x)){const v=_.properties[x],O=nd[x];(O===null||O.includes(_.tagName))&&(_.properties[x]=f(String(v||""),x,_))}}if(_.type==="element"){let x=t?!t.includes(_.tagName):o?o.includes(_.tagName):!1;if(!x&&n&&typeof E=="number"&&(x=!n(_,E,A)),x&&A&&typeof E=="number")return p&&_.children?A.children.splice(E,1,..._.children):A.children.splice(E,1),E}}}function BH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||$H.test(e.slice(0,t))?e:""}const UH=({trend:e,onClose:t})=>{var S,T;const[n,r]=F.useState(!1),{close:a}=Ym("briefDescription"),{currentPlayingAudio:i,setCurrentPlayingAudio:o}=Pt(_=>_),[s]=ds(_=>[_.setBudget]),{fetchData:l,setAbortRequests:u}=Mn(_=>_),c=F.useRef(null),p=async()=>{f(),await l(s,u,e.tldr_topic??e.name)},f=F.useCallback(()=>{t(),a()},[t,a]),h=()=>{c.current&&(n?c.current.pause():c.current.play(),r(!n))},m=()=>{var E,A,x;const _=!((E=i==null?void 0:i.current)!=null&&E.paused);_&&((A=i==null?void 0:i.current)==null||A.pause(),o(null)),(((x=i==null?void 0:i.current)==null?void 0:x.src)!==e.audio_EN||!_)&&h()};F.useEffect(()=>{const _=c.current,E=()=>{r(!1),o(null)};return _&&_.addEventListener("ended",E),()=>{_&&_.removeEventListener("ended",E)}},[o]);const b=((S=i==null?void 0:i.current)==null?void 0:S.src)===e.audio_EN&&!((T=i==null?void 0:i.current)!=null&&T.paused)||n;return y.jsxs(Z$,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:f,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(WH,{children:[y.jsx(oE,{className:lr("default",{play:b}),onClick:m,size:"small",startIcon:b?y.jsx(Ru,{}):y.jsx(Ij,{}),children:b?"Pause":"Listen"}),y.jsx(oE,{className:"default",onClick:p,size:"small",startIcon:y.jsx(Rj,{}),children:"Learn More"})]}),y.jsx(HH,{ref:c,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(q,{mt:75,children:[y.jsx(qH,{children:e.tldr_topic??e.name}),y.jsx(zH,{children:y.jsx(q,{children:y.jsx(GH,{children:e.tldr&&y.jsx(FH,{children:e.tldr})})})})]})]})},zH=H.div` max-height: 310px; overflow-y: auto; margin: 8px 0; @@ -1167,7 +1167,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni align-items: center; background-color: ${j.BG3}; gap: 10px; -`,VH=["Drivechain","Ordinals","L402","Nostr","AI"],YH=()=>{var $;const{open:e}=Ym("addContent"),[t,n]=F.useState(!1),[r,a]=F.useState(!1),[i,o]=F.useState(null),s=F.useRef(null),[l,u]=F.useState(0),[c,p]=F.useState(!1),{currentPlayingAudio:f,setCurrentPlayingAudio:h}=Pt(N=>N),m=Au(),{open:b}=Ym("briefDescription"),{trendingTopics:S,setTrendingTopics:T}=Mn(N=>N),{setValue:_}=ky(),x=F.useCallback(async()=>{n(!0),a(!1),u(0),p(!1),h(null);try{const N=await fU();if(N.length&&Array.isArray(N)){const P=new Map(N.map(V=>[V.name,V])),z=Array.from(P.values());T(z)}}catch{T(VH.map(P=>({name:P,count:0})))}finally{n(!1)}},[h,T]);F.useEffect(()=>{S.length||x()},[x,S.length]),F.useEffect(()=>{const N=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(N)},[a,t]);const A=N=>{_("search",N);const P=N.replace(/\s+/g,"+");m(`/search?q=${P}`)},E=(N,P)=>{N.stopPropagation(),N.currentTarget.blur(),P!=null&&P.tldr&&(o(P),b())},v=()=>{o(null)},O=N=>{N.stopPropagation(),N.currentTarget.blur(),p(!c),h(s)};F.useEffect(()=>{var N,P;c?(N=s.current)==null||N.play():(P=s.current)==null||P.pause()},[l,c]),F.useEffect(()=>{f||p(!1)},[f]);const R=()=>{u(N=>{var z,V;let P=(N+1)%S.length;for(;P!==N&&!((z=S[P])!=null&&z.audio_EN);)P=(P+1)%S.length;return P===N?(p(!1),P):((V=s.current)==null||V.load(),P===0&&(p(!1),u(0)),P)}),h(s)},C=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(XH,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Nu,{color:j.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(QH,{onClick:x,size:"small",startIcon:y.jsx(Rj,{})}):y.jsx(Cj,{})})})]}),p2(S)?y.jsxs("div",{children:[y.jsx(qt,{onClick:N=>O(N),startIcon:c?y.jsx(Ru,{}):y.jsx(Cy,{}),children:c?"Pause":"Play All"}),y.jsx(t3,{ref:s,onEnded:R,src:($=S[l])==null?void 0:$.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),S.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(ZH,{children:C}),y.jsx(qt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Oy,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:S.map((N,P)=>y.jsxs(q,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(N.tldr_topic??N.name),children:[y.jsxs(KH,{children:[y.jsx(e3,{children:y.jsx(Nj,{})}),y.jsx("span",{className:"tldr",children:f2(N)})]}),N.tldr&&y.jsx(JH,{className:lr({isPlaying:l===P&&c}),onClick:z=>E(z,N),children:"TLDR"})]},N.name))})]}),i&&y.jsx(UH,{onClose:v,trend:i})]})},KH=H.div` +`,VH=["Drivechain","Ordinals","L402","Nostr","AI"],YH=()=>{var $;const{open:e}=Ym("addContent"),[t,n]=F.useState(!1),[r,a]=F.useState(!1),[i,o]=F.useState(null),s=F.useRef(null),[l,u]=F.useState(0),[c,p]=F.useState(!1),{currentPlayingAudio:f,setCurrentPlayingAudio:h}=Pt(N=>N),m=Au(),{open:b}=Ym("briefDescription"),{trendingTopics:S,setTrendingTopics:T}=Mn(N=>N),{setValue:_}=ky(),E=F.useCallback(async()=>{n(!0),a(!1),u(0),p(!1),h(null);try{const N=await fU();if(N.length&&Array.isArray(N)){const P=new Map(N.map(V=>[V.name,V])),z=Array.from(P.values());T(z)}}catch{T(VH.map(P=>({name:P,count:0})))}finally{n(!1)}},[h,T]);F.useEffect(()=>{S.length||E()},[E,S.length]),F.useEffect(()=>{const N=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(N)},[a,t]);const A=N=>{_("search",N);const P=N.replace(/\s+/g,"+");m(`/search?q=${P}`)},x=(N,P)=>{N.stopPropagation(),N.currentTarget.blur(),P!=null&&P.tldr&&(o(P),b())},v=()=>{o(null)},O=N=>{N.stopPropagation(),N.currentTarget.blur(),p(!c),h(s)};F.useEffect(()=>{var N,P;c?(N=s.current)==null||N.play():(P=s.current)==null||P.pause()},[l,c]),F.useEffect(()=>{f||p(!1)},[f]);const R=()=>{u(N=>{var z,V;let P=(N+1)%S.length;for(;P!==N&&!((z=S[P])!=null&&z.audio_EN);)P=(P+1)%S.length;return P===N?(p(!1),P):((V=s.current)==null||V.load(),P===0&&(p(!1),u(0)),P)}),h(s)},C=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(XH,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Nu,{color:j.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(QH,{onClick:E,size:"small",startIcon:y.jsx(Cj,{})}):y.jsx(Nj,{})})})]}),p2(S)?y.jsxs("div",{children:[y.jsx(qt,{onClick:N=>O(N),startIcon:c?y.jsx(Ru,{}):y.jsx(Cy,{}),children:c?"Pause":"Play All"}),y.jsx(t3,{ref:s,onEnded:R,src:($=S[l])==null?void 0:$.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),S.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(ZH,{children:C}),y.jsx(qt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Oy,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:S.map((N,P)=>y.jsxs(q,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(N.tldr_topic??N.name),children:[y.jsxs(KH,{children:[y.jsx(e3,{children:y.jsx(Dj,{})}),y.jsx("span",{className:"tldr",children:f2(N)})]}),N.tldr&&y.jsx(JH,{className:lr({isPlaying:l===P&&c}),onClick:z=>x(z,N),children:"TLDR"})]},N.name))})]}),i&&y.jsx(UH,{onClose:v,trend:i})]})},KH=H.div` position: relative; display: flex; align-items: flex-start; @@ -1274,7 +1274,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni `,t3=H.audio` height: 0; width: 0; -`,n3=()=>{const{isFetching:e,setSidebarFilter:t}=Mn(O=>O),n=ps(),r=fI(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Pt(O=>O),[s]=dI(O=>[O.trendingTopicsFeatureFlag]),{setValue:l,watch:u}=ky(),c=F.useRef(null),[p,f]=F.useState(!1),[h,m]=F.useState(!1),[b,S]=F.useState(null),[T]=Z$(),_=T.get("q")??"";F.useEffect(()=>{l("search",_||o)},[l,o,_]),F.useEffect(()=>{const O=c.current;if(!O)return;const R=()=>{f((O==null?void 0:O.scrollTop)>0)};O.addEventListener("scroll",R)},[]);const x=u("search"),A=O=>{S(h?null:O.currentTarget),m(R=>!R)},E=()=>{m(!1),S(null)},v=Au();return y.jsxs(y.Fragment,{children:[y.jsxs(kR,{className:lr({"has-shadow":p}),children:[y.jsxs(l3,{children:[y.jsxs(r3,{children:[y.jsx(LI,{}),y.jsx(i3,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),n(null),v("/");return}if(x.trim()==="")return;const O=x.replace(/\s+/g,"+");v(`/search?q=${O}`)},children:e?y.jsx(Nu,{color:j.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:a!=null&&a.trim()?y.jsx(pI,{}):y.jsx(yI,{})})})]}),y.jsx(u3,{"data-testid":"search_filter_icon",isFilterOpen:h,onClick:A,children:h?y.jsx(Dj,{}):y.jsx(Lj,{})}),y.jsx(ZB,{anchorEl:b,onClose:E,setAnchorEl:S})]}),a&&y.jsx(a3,{children:e?y.jsx(aU,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:r.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(OB,{})})]})})]}),y.jsxs(o3,{ref:c,children:[!a&&s&&y.jsx(s3,{children:y.jsx(YH,{})}),!a&&y.jsx(lU,{}),e?y.jsx(PI,{}):y.jsx(dU,{isSearchResult:!!a})]})]})},kR=H(q).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:j.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),r3=H(q).attrs({direction:"row",justify:"center",align:"center"})` +`,n3=()=>{const{isFetching:e,setSidebarFilter:t}=Mn(O=>O),n=ps(),r=fI(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Pt(O=>O),[s]=dI(O=>[O.trendingTopicsFeatureFlag]),{setValue:l,watch:u}=ky(),c=F.useRef(null),[p,f]=F.useState(!1),[h,m]=F.useState(!1),[b,S]=F.useState(null),[T]=Q$(),_=T.get("q")??"";F.useEffect(()=>{l("search",_||o)},[l,o,_]),F.useEffect(()=>{const O=c.current;if(!O)return;const R=()=>{f((O==null?void 0:O.scrollTop)>0)};O.addEventListener("scroll",R)},[]);const E=u("search"),A=O=>{S(h?null:O.currentTarget),m(R=>!R)},x=()=>{m(!1),S(null)},v=Au();return y.jsxs(y.Fragment,{children:[y.jsxs(OR,{className:lr({"has-shadow":p}),children:[y.jsxs(l3,{children:[y.jsxs(r3,{children:[y.jsx(MI,{}),y.jsx(i3,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),n(null),v("/");return}if(E.trim()==="")return;const O=E.replace(/\s+/g,"+");v(`/search?q=${O}`)},children:e?y.jsx(Nu,{color:j.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:a!=null&&a.trim()?y.jsx(pI,{}):y.jsx(yI,{})})})]}),y.jsx(u3,{"data-testid":"search_filter_icon",isFilterOpen:h,onClick:A,children:h?y.jsx(Lj,{}):y.jsx(Mj,{})}),y.jsx(ZB,{anchorEl:b,onClose:x,setAnchorEl:S})]}),a&&y.jsx(a3,{children:e?y.jsx(aU,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:r.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(OB,{})})]})})]}),y.jsxs(o3,{ref:c,children:[!a&&s&&y.jsx(s3,{children:y.jsx(YH,{})}),!a&&y.jsx(lU,{}),e?y.jsx($I,{}):y.jsx(dU,{isSearchResult:!!a})]})]})},OR=H(q).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:j.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),r3=H(q).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,a3=H(q).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1306,7 +1306,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni /* background-color: ${j.gray200}; */ } - ${kR} input:focus + & { + ${OR} input:focus + & { color: ${j.primaryBlue}; } `,o3=H(q)(()=>({overflow:"auto",flex:1,width:"100%"})),s3=H(q)` @@ -1339,57 +1339,57 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni color: ${({isFilterOpen:e})=>e?j.black:j.GRAY7}; fill: none; } -`;function OR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?1:-1},ma=function(t){return fs(t)&&t.indexOf("%")===t.length-1},fe=function(t){return x3(t)&&!ys(t)},Nt=function(t){return fe(t)||fs(t)},T3=0,vs=function(t){var n=++T3;return"".concat(t||"").concat(n)},ai=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!fs(t))return r;var i;if(ma(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return ys(i)&&(i=r),a&&i>n&&(i=n),i},Wr=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},A3=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var uE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},cE=null,fd=null,rv=function e(t){if(t===cE&&Array.isArray(fd))return fd;var n=[];return F.Children.forEach(t,function(r){Be(r)||(ab.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fd=n,cE=t,n};function En(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ir(a)}):r=[Ir(t)],rv(e).forEach(function(a){var i=Dn(a,"type.displayName")||Dn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Ar(e,t){var n=En(e,t);return n&&n[0]}var dE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!fe(r)||r<=0||!fe(a)||a<=0)},L3=["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"],M3=function(t){return t&&t.type&&fs(t.type)&&L3.indexOf(t.type)>=0},P3=function(t,n,r,a){var i,o=(i=pd==null?void 0:pd[a])!==null&&i!==void 0?i:[];return!Fe(t)&&(a&&o.includes(n)||I3.includes(n))||r&&nv.includes(n)},He=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(F.isValidElement(t)&&(a=t.props),!Ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;P3((s=a)===null||s===void 0?void 0:s[o],o,n,r)&&(i[o]=a[o])}),i},NR=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return pE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function sb(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,u=B3(e,F3),c=a||{width:n,height:r,x:0,y:0},p=rt("recharts-surface",i);return Y.createElement("svg",ob({},He(u,!0,"svg"),{className:p,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var z3=["children","className"];function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var yt=Y.forwardRef(function(e,t){var n=e.children,r=e.className,a=G3(e,z3),i=rt("recharts-layer",r);return Y.createElement("g",lb({className:i},He(a,!0),{ref:t}),n)}),Sa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:V3(e,t,n)}var K3=Y3,X3="\\ud800-\\udfff",Z3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",J3="\\u20d0-\\u20ff",eW=Z3+Q3+J3,tW="\\ufe0e\\ufe0f",nW="\\u200d",rW=RegExp("["+nW+X3+eW+tW+"]");function aW(e){return rW.test(e)}var DR=aW;function iW(e){return e.split("")}var oW=iW,LR="\\ud800-\\udfff",sW="\\u0300-\\u036f",lW="\\ufe20-\\ufe2f",uW="\\u20d0-\\u20ff",cW=sW+lW+uW,dW="\\ufe0e\\ufe0f",pW="["+LR+"]",ub="["+cW+"]",cb="\\ud83c[\\udffb-\\udfff]",fW="(?:"+ub+"|"+cb+")",MR="[^"+LR+"]",PR="(?:\\ud83c[\\udde6-\\uddff]){2}",$R="[\\ud800-\\udbff][\\udc00-\\udfff]",hW="\\u200d",jR=fW+"?",FR="["+dW+"]?",gW="(?:"+hW+"(?:"+[MR,PR,$R].join("|")+")"+FR+jR+")*",mW=FR+jR+gW,bW="(?:"+[MR+ub+"?",ub,PR,$R,pW].join("|")+")",yW=RegExp(cb+"(?="+cb+")|"+bW+mW,"g");function vW(e){return e.match(yW)||[]}var SW=vW,xW=oW,EW=DR,wW=SW;function _W(e){return EW(e)?wW(e):xW(e)}var TW=_W,AW=K3,kW=DR,OW=TW,IW=Kj;function RW(e){return function(t){t=IW(t);var n=kW(t)?OW(t):void 0,r=n?n[0]:t.charAt(0),a=n?AW(n,1).join(""):t.slice(1);return r[e]()+a}}var CW=RW,NW=CW,DW=NW("toUpperCase"),LW=DW;const Yu=St(LW);function ut(e){return function(){return e}}const BR=Math.cos,Ll=Math.sin,er=Math.sqrt,Ml=Math.PI,Ku=2*Ml,db=Math.PI,pb=2*db,fa=1e-6,MW=pb-fa;function UR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;afa)if(!(Math.abs(p*l-u*c)>fa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,m=a-s,b=l*l+u*u,S=h*h+m*m,T=Math.sqrt(b),_=Math.sqrt(f),x=i*Math.tan((db-Math.acos((b+f-S)/(2*T*_)))/2),A=x/_,E=x/T;Math.abs(A-1)>fa&&this._append`L${t+A*c},${n+A*p}`,this._append`A${i},${i},0,0,${+(p*h>c*m)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),u=t+s,c=n+l,p=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>fa||Math.abs(this._y1-c)>fa)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%pb+pb),f>MW?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:f>fa&&this._append`A${r},${r},0,${+(f>=db)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function av(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $W(t)}function iv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zR(e){this._context=e}zR.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 Xu(e){return new zR(e)}function GR(e){return e[0]}function qR(e){return e[1]}function HR(e,t){var n=ut(!0),r=null,a=Xu,i=null,o=av(s);e=typeof e=="function"?e:e===void 0?GR:ut(e),t=typeof t=="function"?t:t===void 0?qR:ut(t);function s(l){var u,c=(l=iv(l)).length,p,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=c;++u)!(u=h;--m)s.point(x[m],A[m]);s.lineEnd(),s.areaEnd()}T&&(x[f]=+e(S,f,p),A[f]=+t(S,f,p),s.point(r?+r(S,f,p):x[f],n?+n(S,f,p):A[f]))}if(_)return s=null,_+""||null}function c(){return HR().defined(a).curve(o).context(i)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ut(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ut(+p),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(p){return arguments.length?(a=typeof p=="function"?p:ut(!!p),u):a},u.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),u):o},u.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),u):i},u}class WR{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jW(e){return new WR(e,!0)}function FW(e){return new WR(e,!1)}const ov={draw(e,t){const n=er(t/Ml);e.moveTo(n,0),e.arc(0,0,n,0,Ku)}},BW={draw(e,t){const n=er(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VR=er(1/3),UW=VR*2,zW={draw(e,t){const n=er(t/UW),r=n*VR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GW={draw(e,t){const n=er(t),r=-n/2;e.rect(r,r,n,n)}},qW=.8908130915292852,YR=Ll(Ml/10)/Ll(7*Ml/10),HW=Ll(Ku/10)*YR,WW=-BR(Ku/10)*YR,VW={draw(e,t){const n=er(t*qW),r=HW*n,a=WW*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Ku*i/5,s=BR(o),l=Ll(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*a,l*r+s*a)}e.closePath()}},hd=er(3),YW={draw(e,t){const n=-er(t/(hd*3));e.moveTo(0,n*2),e.lineTo(-hd*n,-n),e.lineTo(hd*n,-n),e.closePath()}},_n=-.5,Tn=er(3)/2,fb=1/er(12),KW=(fb/2+1)*3,XW={draw(e,t){const n=er(t/KW),r=n/2,a=n*fb,i=r,o=n*fb+n,s=-i,l=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(_n*r-Tn*a,Tn*r+_n*a),e.lineTo(_n*i-Tn*o,Tn*i+_n*o),e.lineTo(_n*s-Tn*l,Tn*s+_n*l),e.lineTo(_n*r+Tn*a,_n*a-Tn*r),e.lineTo(_n*i+Tn*o,_n*o-Tn*i),e.lineTo(_n*s+Tn*l,_n*l-Tn*s),e.closePath()}};function ZW(e,t){let n=null,r=av(a);e=typeof e=="function"?e:ut(e||ov),t=typeof t=="function"?t:ut(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:ut(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:ut(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Pl(){}function $l(e,t,n){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+n)/6)}function KR(e){this._context=e}KR.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:$l(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:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QW(e){return new KR(e)}function XR(e){this._context=e}XR.prototype={areaStart:Pl,areaEnd:Pl,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:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JW(e){return new XR(e)}function ZR(e){this._context=e}ZR.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eV(e){return new ZR(e)}function QR(e){this._context=e}QR.prototype={areaStart:Pl,areaEnd:Pl,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 tV(e){return new QR(e)}function hE(e){return e<0?-1:1}function gE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(hE(i)+hE(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function mE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gd(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function jl(e){this._context=e}jl.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:gd(this,this._t0,mE(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 n=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,gd(this,mE(this,n=gE(this,e,t)),n);break;default:gd(this,this._t0,n=gE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JR(e){this._context=new eC(e)}(JR.prototype=Object.create(jl.prototype)).point=function(e,t){jl.prototype.point.call(this,t,e)};function eC(e){this._context=e}eC.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,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function nV(e){return new jl(e)}function rV(e){return new JR(e)}function tC(e){this._context=e}tC.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=bE(e),a=bE(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iV(e){return new Zu(e,.5)}function oV(e){return new Zu(e,0)}function sV(e){return new Zu(e,1)}function ii(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n=0;)n[t]=t;return n}function lV(e,t){return e[t]}function uV(e){const t=[];return t.key=e,t}function cV(){var e=ut([]),t=hb,n=ii,r=lV;function a(i){var o=Array.from(e.apply(this,arguments),uV),s,l=o.length,u=-1,c;for(const p of i)for(s=0,++u;s0){for(var n,r,a=0,i=e[0].length,o;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vV(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var nC={symbolCircle:ov,symbolCross:BW,symbolDiamond:zW,symbolSquare:GW,symbolStar:VW,symbolTriangle:YW,symbolWye:XW},SV=Math.PI/180,xV=function(t){var n="symbol".concat(Yu(t));return nC[n]||ov},EV=function(t,n,r){if(n==="area")return t;switch(r){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*SV;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}},wV=function(t,n){nC["symbol".concat(Yu(t))]=n},Qu=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=yV(t,hV),u=vE(vE({},l),{},{type:r,size:i,sizeType:s}),c=function(){var S=xV(r),T=ZW().type(S).size(EV(i,s,r));return T()},p=u.className,f=u.cx,h=u.cy,m=He(u,!0);return f===+f&&h===+h&&i===+i?Y.createElement("path",gb({},m,{className:rt("recharts-symbols",p),transform:"translate(".concat(f,", ").concat(h,")"),d:c()})):null};Qu.registerSymbol=wV;function oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function mb(){return mb=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(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function To(e,t,n){return t=rC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rC(e){var t=NV(e,"string");return oi(t)==="symbol"?t:String(t)}function NV(e,t){if(oi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var An=32,sv=function(e){kV(n,e);var t=OV(n);function n(){return TV(this,n),t.apply(this,arguments)}return AV(n,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=An/2,s=An/6,l=An/3,u=a.inactive?i:a.color;if(a.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:An,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` + */var $t=typeof Symbol=="function"&&Symbol.for,Jy=$t?Symbol.for("react.element"):60103,ev=$t?Symbol.for("react.portal"):60106,ju=$t?Symbol.for("react.fragment"):60107,Fu=$t?Symbol.for("react.strict_mode"):60108,Bu=$t?Symbol.for("react.profiler"):60114,Uu=$t?Symbol.for("react.provider"):60109,zu=$t?Symbol.for("react.context"):60110,tv=$t?Symbol.for("react.async_mode"):60111,Gu=$t?Symbol.for("react.concurrent_mode"):60111,qu=$t?Symbol.for("react.forward_ref"):60112,Hu=$t?Symbol.for("react.suspense"):60113,p3=$t?Symbol.for("react.suspense_list"):60120,Wu=$t?Symbol.for("react.memo"):60115,Vu=$t?Symbol.for("react.lazy"):60116,f3=$t?Symbol.for("react.block"):60121,h3=$t?Symbol.for("react.fundamental"):60117,g3=$t?Symbol.for("react.responder"):60118,m3=$t?Symbol.for("react.scope"):60119;function wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jy:switch(e=e.type,e){case tv:case Gu:case ju:case Bu:case Fu:case Hu:return e;default:switch(e=e&&e.$$typeof,e){case zu:case qu:case Vu:case Wu:case Uu:return e;default:return t}}case ev:return t}}}function CR(e){return wn(e)===Gu}et.AsyncMode=tv;et.ConcurrentMode=Gu;et.ContextConsumer=zu;et.ContextProvider=Uu;et.Element=Jy;et.ForwardRef=qu;et.Fragment=ju;et.Lazy=Vu;et.Memo=Wu;et.Portal=ev;et.Profiler=Bu;et.StrictMode=Fu;et.Suspense=Hu;et.isAsyncMode=function(e){return CR(e)||wn(e)===tv};et.isConcurrentMode=CR;et.isContextConsumer=function(e){return wn(e)===zu};et.isContextProvider=function(e){return wn(e)===Uu};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jy};et.isForwardRef=function(e){return wn(e)===qu};et.isFragment=function(e){return wn(e)===ju};et.isLazy=function(e){return wn(e)===Vu};et.isMemo=function(e){return wn(e)===Wu};et.isPortal=function(e){return wn(e)===ev};et.isProfiler=function(e){return wn(e)===Bu};et.isStrictMode=function(e){return wn(e)===Fu};et.isSuspense=function(e){return wn(e)===Hu};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ju||e===Gu||e===Bu||e===Fu||e===Hu||e===p3||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Wu||e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===qu||e.$$typeof===h3||e.$$typeof===g3||e.$$typeof===m3||e.$$typeof===f3)};et.typeOf=wn;RR.exports=et;var ab=RR.exports,b3=hI,y3=gI,v3="[object Number]";function S3(e){return typeof e=="number"||y3(e)&&b3(e)==v3}var NR=S3;const x3=St(NR);var E3=NR;function w3(e){return E3(e)&&e!=+e}var _3=w3;const ys=St(_3);var Zn=function(t){return t===0?0:t>0?1:-1},ma=function(t){return fs(t)&&t.indexOf("%")===t.length-1},fe=function(t){return x3(t)&&!ys(t)},Nt=function(t){return fe(t)||fs(t)},T3=0,vs=function(t){var n=++T3;return"".concat(t||"").concat(n)},ai=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!fs(t))return r;var i;if(ma(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return ys(i)&&(i=r),a&&i>n&&(i=n),i},Wr=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},A3=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var uE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},cE=null,fd=null,rv=function e(t){if(t===cE&&Array.isArray(fd))return fd;var n=[];return F.Children.forEach(t,function(r){Be(r)||(ab.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fd=n,cE=t,n};function En(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ir(a)}):r=[Ir(t)],rv(e).forEach(function(a){var i=Dn(a,"type.displayName")||Dn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Ar(e,t){var n=En(e,t);return n&&n[0]}var dE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!fe(r)||r<=0||!fe(a)||a<=0)},L3=["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"],M3=function(t){return t&&t.type&&fs(t.type)&&L3.indexOf(t.type)>=0},P3=function(t,n,r,a){var i,o=(i=pd==null?void 0:pd[a])!==null&&i!==void 0?i:[];return!Fe(t)&&(a&&o.includes(n)||I3.includes(n))||r&&nv.includes(n)},He=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(F.isValidElement(t)&&(a=t.props),!Ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;P3((s=a)===null||s===void 0?void 0:s[o],o,n,r)&&(i[o]=a[o])}),i},DR=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return pE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function sb(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,u=B3(e,F3),c=a||{width:n,height:r,x:0,y:0},p=rt("recharts-surface",i);return Y.createElement("svg",ob({},He(u,!0,"svg"),{className:p,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var z3=["children","className"];function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var yt=Y.forwardRef(function(e,t){var n=e.children,r=e.className,a=G3(e,z3),i=rt("recharts-layer",r);return Y.createElement("g",lb({className:i},He(a,!0),{ref:t}),n)}),Sa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:V3(e,t,n)}var K3=Y3,X3="\\ud800-\\udfff",Z3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",J3="\\u20d0-\\u20ff",eW=Z3+Q3+J3,tW="\\ufe0e\\ufe0f",nW="\\u200d",rW=RegExp("["+nW+X3+eW+tW+"]");function aW(e){return rW.test(e)}var LR=aW;function iW(e){return e.split("")}var oW=iW,MR="\\ud800-\\udfff",sW="\\u0300-\\u036f",lW="\\ufe20-\\ufe2f",uW="\\u20d0-\\u20ff",cW=sW+lW+uW,dW="\\ufe0e\\ufe0f",pW="["+MR+"]",ub="["+cW+"]",cb="\\ud83c[\\udffb-\\udfff]",fW="(?:"+ub+"|"+cb+")",PR="[^"+MR+"]",$R="(?:\\ud83c[\\udde6-\\uddff]){2}",jR="[\\ud800-\\udbff][\\udc00-\\udfff]",hW="\\u200d",FR=fW+"?",BR="["+dW+"]?",gW="(?:"+hW+"(?:"+[PR,$R,jR].join("|")+")"+BR+FR+")*",mW=BR+FR+gW,bW="(?:"+[PR+ub+"?",ub,$R,jR,pW].join("|")+")",yW=RegExp(cb+"(?="+cb+")|"+bW+mW,"g");function vW(e){return e.match(yW)||[]}var SW=vW,xW=oW,EW=LR,wW=SW;function _W(e){return EW(e)?wW(e):xW(e)}var TW=_W,AW=K3,kW=LR,OW=TW,IW=Kj;function RW(e){return function(t){t=IW(t);var n=kW(t)?OW(t):void 0,r=n?n[0]:t.charAt(0),a=n?AW(n,1).join(""):t.slice(1);return r[e]()+a}}var CW=RW,NW=CW,DW=NW("toUpperCase"),LW=DW;const Yu=St(LW);function ut(e){return function(){return e}}const UR=Math.cos,Ll=Math.sin,er=Math.sqrt,Ml=Math.PI,Ku=2*Ml,db=Math.PI,pb=2*db,fa=1e-6,MW=pb-fa;function zR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return zR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;afa)if(!(Math.abs(p*l-u*c)>fa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,m=a-s,b=l*l+u*u,S=h*h+m*m,T=Math.sqrt(b),_=Math.sqrt(f),E=i*Math.tan((db-Math.acos((b+f-S)/(2*T*_)))/2),A=E/_,x=E/T;Math.abs(A-1)>fa&&this._append`L${t+A*c},${n+A*p}`,this._append`A${i},${i},0,0,${+(p*h>c*m)},${this._x1=t+x*l},${this._y1=n+x*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),u=t+s,c=n+l,p=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>fa||Math.abs(this._y1-c)>fa)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%pb+pb),f>MW?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:f>fa&&this._append`A${r},${r},0,${+(f>=db)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function av(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $W(t)}function iv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GR(e){this._context=e}GR.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 Xu(e){return new GR(e)}function qR(e){return e[0]}function HR(e){return e[1]}function WR(e,t){var n=ut(!0),r=null,a=Xu,i=null,o=av(s);e=typeof e=="function"?e:e===void 0?qR:ut(e),t=typeof t=="function"?t:t===void 0?HR:ut(t);function s(l){var u,c=(l=iv(l)).length,p,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=c;++u)!(u=h;--m)s.point(E[m],A[m]);s.lineEnd(),s.areaEnd()}T&&(E[f]=+e(S,f,p),A[f]=+t(S,f,p),s.point(r?+r(S,f,p):E[f],n?+n(S,f,p):A[f]))}if(_)return s=null,_+""||null}function c(){return WR().defined(a).curve(o).context(i)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ut(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ut(+p),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(p){return arguments.length?(a=typeof p=="function"?p:ut(!!p),u):a},u.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),u):o},u.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),u):i},u}class VR{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jW(e){return new VR(e,!0)}function FW(e){return new VR(e,!1)}const ov={draw(e,t){const n=er(t/Ml);e.moveTo(n,0),e.arc(0,0,n,0,Ku)}},BW={draw(e,t){const n=er(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},YR=er(1/3),UW=YR*2,zW={draw(e,t){const n=er(t/UW),r=n*YR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GW={draw(e,t){const n=er(t),r=-n/2;e.rect(r,r,n,n)}},qW=.8908130915292852,KR=Ll(Ml/10)/Ll(7*Ml/10),HW=Ll(Ku/10)*KR,WW=-UR(Ku/10)*KR,VW={draw(e,t){const n=er(t*qW),r=HW*n,a=WW*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Ku*i/5,s=UR(o),l=Ll(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*a,l*r+s*a)}e.closePath()}},hd=er(3),YW={draw(e,t){const n=-er(t/(hd*3));e.moveTo(0,n*2),e.lineTo(-hd*n,-n),e.lineTo(hd*n,-n),e.closePath()}},_n=-.5,Tn=er(3)/2,fb=1/er(12),KW=(fb/2+1)*3,XW={draw(e,t){const n=er(t/KW),r=n/2,a=n*fb,i=r,o=n*fb+n,s=-i,l=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(_n*r-Tn*a,Tn*r+_n*a),e.lineTo(_n*i-Tn*o,Tn*i+_n*o),e.lineTo(_n*s-Tn*l,Tn*s+_n*l),e.lineTo(_n*r+Tn*a,_n*a-Tn*r),e.lineTo(_n*i+Tn*o,_n*o-Tn*i),e.lineTo(_n*s+Tn*l,_n*l-Tn*s),e.closePath()}};function ZW(e,t){let n=null,r=av(a);e=typeof e=="function"?e:ut(e||ov),t=typeof t=="function"?t:ut(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:ut(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:ut(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Pl(){}function $l(e,t,n){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+n)/6)}function XR(e){this._context=e}XR.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:$l(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:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QW(e){return new XR(e)}function ZR(e){this._context=e}ZR.prototype={areaStart:Pl,areaEnd:Pl,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:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JW(e){return new ZR(e)}function QR(e){this._context=e}QR.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eV(e){return new QR(e)}function JR(e){this._context=e}JR.prototype={areaStart:Pl,areaEnd:Pl,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 tV(e){return new JR(e)}function hE(e){return e<0?-1:1}function gE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(hE(i)+hE(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function mE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gd(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function jl(e){this._context=e}jl.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:gd(this,this._t0,mE(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 n=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,gd(this,mE(this,n=gE(this,e,t)),n);break;default:gd(this,this._t0,n=gE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function eC(e){this._context=new tC(e)}(eC.prototype=Object.create(jl.prototype)).point=function(e,t){jl.prototype.point.call(this,t,e)};function tC(e){this._context=e}tC.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,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function nV(e){return new jl(e)}function rV(e){return new eC(e)}function nC(e){this._context=e}nC.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=bE(e),a=bE(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iV(e){return new Zu(e,.5)}function oV(e){return new Zu(e,0)}function sV(e){return new Zu(e,1)}function ii(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n=0;)n[t]=t;return n}function lV(e,t){return e[t]}function uV(e){const t=[];return t.key=e,t}function cV(){var e=ut([]),t=hb,n=ii,r=lV;function a(i){var o=Array.from(e.apply(this,arguments),uV),s,l=o.length,u=-1,c;for(const p of i)for(s=0,++u;s0){for(var n,r,a=0,i=e[0].length,o;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vV(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var rC={symbolCircle:ov,symbolCross:BW,symbolDiamond:zW,symbolSquare:GW,symbolStar:VW,symbolTriangle:YW,symbolWye:XW},SV=Math.PI/180,xV=function(t){var n="symbol".concat(Yu(t));return rC[n]||ov},EV=function(t,n,r){if(n==="area")return t;switch(r){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*SV;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}},wV=function(t,n){rC["symbol".concat(Yu(t))]=n},Qu=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=yV(t,hV),u=vE(vE({},l),{},{type:r,size:i,sizeType:s}),c=function(){var S=xV(r),T=ZW().type(S).size(EV(i,s,r));return T()},p=u.className,f=u.cx,h=u.cy,m=He(u,!0);return f===+f&&h===+h&&i===+i?Y.createElement("path",gb({},m,{className:rt("recharts-symbols",p),transform:"translate(".concat(f,", ").concat(h,")"),d:c()})):null};Qu.registerSymbol=wV;function oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function mb(){return mb=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(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function To(e,t,n){return t=aC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aC(e){var t=NV(e,"string");return oi(t)==="symbol"?t:String(t)}function NV(e,t){if(oi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var An=32,sv=function(e){kV(n,e);var t=OV(n);function n(){return TV(this,n),t.apply(this,arguments)}return AV(n,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=An/2,s=An/6,l=An/3,u=a.inactive?i:a.color;if(a.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:An,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(An,"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 Y.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(An/8,"h").concat(An,"v").concat(An*3/4,"h").concat(-An,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(a.legendIcon)){var c=_V({},a);return delete c.legendIcon,Y.cloneElement(a.legendIcon,c)}return Y.createElement(Qu,{fill:u,cx:o,cy:o,size:An,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:An,height:An},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,b){var S,T=m.formatter||u,_=rt((S={"recharts-legend-item":!0},To(S,"legend-item-".concat(b),!0),To(S,"inactive",m.inactive),S));if(m.type==="none")return null;var x=Fe(m.value)?null:m.value;Sa(!Fe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=m.inactive?c:m.color;return Y.createElement("li",mb({className:_,style:f,key:"legend-item-".concat(b)},wo(a.props,m,b)),Y.createElement(sb,{width:s,height:s,viewBox:p,style:h},a.renderIcon(m)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},T?T(x,m,b):x))})}},{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 Y.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(F.PureComponent);To(sv,"displayName","Legend");To(sv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function DV(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i-1}var HV=qV;function WV(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=s4){var u=t?null:i4(e);if(u)return o4(u);o=!1,a=a4,l=new t4}else l=t?[]:s;e:for(;++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(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function Ju(e,t,n){return t=sC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e){var t=x4(e,"string");return si(t)==="symbol"?t:String(t)}function x4(e,t){if(si(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(si(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E4(e,t){if(e==null)return{};var n=w4(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _4(e){return e.value}function T4(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=E4(t,h4);return Y.createElement(sv,n)}var TE=1,Ao=function(e){b4(n,e);var t=y4(n);function n(){var r;g4(this,n);for(var a=arguments.length,i=new Array(a),o=0;oTE||Math.abs(i.height-this.lastBoundingBox.height)>TE)&&(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?da({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,c=i.chartWidth,p=i.chartHeight,f,h;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((p||0)-b.height)/2}}else h=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return da(da({},f),h)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,f=da(da({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return Y.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){a.wrapperNode=m}},T4(o,da(da({},this.props),{},{payload:iC(p,c,_4)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&fe(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),n}(F.PureComponent);Ju(Ao,"displayName","Legend");Ju(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AE=J$,A4=ej,k4=ku,kE=AE?AE.isConcatSpreadable:void 0;function O4(e){return k4(e)||A4(e)||!!(kE&&e&&e[kE])}var I4=O4,R4=tj,C4=I4;function lC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=C4),a||(a=[]);++i0&&n(s)?t>1?lC(s,t-1,n,r,a):R4(a,s):r||(a[a.length]=s)}return a}var uC=lC;function N4(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var D4=N4,OE=Dy;function L4(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=OE(e),o=t!==void 0,s=t===null,l=t===t,u=OE(t);if(!s&&!u&&!i&&e>t||i&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var j4=$4,bd=Qj,F4=Jj,B4=Ta,U4=eF,z4=D4,G4=nj,q4=j4,H4=hs,W4=ku;function V4(e,t,n){t.length?t=bd(t,function(i){return W4(i)?function(o){return F4(o,i.length===1?i[0]:i)}:i}):t=[H4];var r=-1;t=bd(t,G4(B4));var a=U4(e,function(i,o,s){var l=bd(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return z4(a,function(i,o){return q4(i,o,n)})}var Y4=V4;function K4(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var X4=K4,Z4=X4,IE=Math.max;function Q4(e,t,n){return t=IE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=IE(r.length-t,0),o=Array(i);++a0){if(++t>=oY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cY=uY,dY=iY,pY=cY,fY=pY(dY),hY=fY,gY=hs,mY=J4,bY=hY;function yY(e,t){return bY(mY(e,t,gY),e+"")}var vY=yY,SY=aj,xY=mI,EY=ij,wY=Ou;function _Y(e,t,n){if(!wY(n))return!1;var r=typeof t;return(r=="number"?xY(n)&&EY(t,n.length):r=="string"&&t in n)?SY(n[t],e):!1}var ec=_Y,TY=uC,AY=Y4,kY=vY,CE=ec,OY=kY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&CE(e,t[0],t[1])?t=[]:n>2&&CE(t[0],t[1],t[2])&&(t=[t[0]]),AY(e,TY(t,1),[])}),IY=OY;const lv=St(IY);function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function RY(e,t){return LY(e)||DY(e,t)||NY(e,t)||CY()}function CY(){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 NY(e,t){if(e){if(typeof e=="string")return NE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NE(e,t)}}function NE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function qY(e,t){return Ii(e.getTime(),t.getTime())}function jE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var p=o.value,f=p[0],h=p[1],m=s.value,b=m[0],S=m[1];!u&&!r[c]&&(u=n.equals(f,b,i,c,e,t,n)&&n.equals(h,S,f,b,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;i++}return!0}function HY(e,t,n){var r=$E(e),a=r.length;if($E(t).length!==a)return!1;for(var i;a-- >0;)if(i=r[a],i===dC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!cC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Vi(e,t,n){var r=ME(e),a=r.length;if(ME(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=r[a],i===dC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!cC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(o=PE(e,i),s=PE(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function WY(e,t){return Ii(e.valueOf(),t.valueOf())}function VY(e,t){return e.source===t.source&&e.flags===t.flags}function FE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(i.value,o.value,i.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function YY(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var KY="[object Arguments]",XY="[object Boolean]",ZY="[object Date]",QY="[object Map]",JY="[object Number]",e6="[object Object]",t6="[object RegExp]",n6="[object Set]",r6="[object String]",a6=Array.isArray,BE=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,UE=Object.assign,i6=Object.prototype.toString.call.bind(Object.prototype.toString);function o6(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,p,f){if(c===p)return!0;if(c==null||p==null||typeof c!="object"||typeof p!="object")return c!==c&&p!==p;var h=c.constructor;if(h!==p.constructor)return!1;if(h===Object)return a(c,p,f);if(a6(c))return t(c,p,f);if(BE!=null&&BE(c))return l(c,p,f);if(h===Date)return n(c,p,f);if(h===RegExp)return o(c,p,f);if(h===Map)return r(c,p,f);if(h===Set)return s(c,p,f);var m=i6(c);return m===ZY?n(c,p,f):m===t6?o(c,p,f):m===QY?r(c,p,f):m===n6?s(c,p,f):m===e6?typeof c.then!="function"&&typeof p.then!="function"&&a(c,p,f):m===KY?a(c,p,f):m===XY||m===JY||m===r6?i(c,p,f):!1}}function s6(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Vi:GY,areDatesEqual:qY,areMapsEqual:r?LE(jE,Vi):jE,areObjectsEqual:r?Vi:HY,arePrimitiveWrappersEqual:WY,areRegExpsEqual:VY,areSetsEqual:r?LE(FE,Vi):FE,areTypedArraysEqual:r?Vi:YY};if(n&&(a=UE({},a,n(a))),t){var i=il(a.areArraysEqual),o=il(a.areMapsEqual),s=il(a.areObjectsEqual),l=il(a.areSetsEqual);a=UE({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function l6(e){return function(t,n,r,a,i,o,s){return e(t,n,s)}}function u6(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(l,u){var c=r(),p=c.cache,f=p===void 0?t?new WeakMap:void 0:p,h=c.meta;return n(l,u,{cache:f,equals:a,meta:h,strict:i})};if(t)return function(l,u){return n(l,u,{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,u){return n(l,u,o)}}var c6=ta();ta({strict:!0});ta({circular:!0});ta({circular:!0,strict:!0});ta({createInternalComparator:function(){return Ii}});ta({strict:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii},strict:!0});function ta(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=s6(e),l=o6(s),u=r?r(l):l6(l);return u6({circular:n,comparator:l,createState:a,equals:u,strict:o})}function d6(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):d6(a)};requestAnimationFrame(r)}function vb(e){"@babel/helpers - typeof";return vb=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},vb(e)}function p6(e){return m6(e)||g6(e)||h6(e)||f6()}function f6(){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 h6(e,t){if(e){if(typeof e=="string")return GE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GE(e,t)}}function GE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:T<0?0:T},b=function(T){for(var _=T>1?1:T,x=_,A=0;A<8;++A){var E=p(x)-_,v=h(x);if(Math.abs(E-_)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(c,p,f){var h=-(c-p)*r,m=f*i,b=f+(h-m)*s/1e3,S=f*s/1e3+c;return Math.abs(S-p)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z6(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function vd(e){return t5(e)||e5(e)||J6(e)||Q6()}function Q6(){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 J6(e,t){if(e){if(typeof e=="string")return _b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _b(e,t)}}function e5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t5(e){if(Array.isArray(e))return _b(e)}function _b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);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 ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ql(e)}var Nr=function(e){i5(n,e);var t=o5(n);function n(r,a){var i;n5(this,n),i=t.call(this,r,a);var o=i.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,p=o.steps,f=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kb(i)),i.changeStyle=i.changeStyle.bind(kb(i)),!s||h<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:c}),Ab(i);if(p&&p.length)i.state={style:p[0].style};else if(u){if(typeof f=="function")return i.state={style:u},Ab(i);i.state={style:l?io({},l,u):u}}else i.state={style:{}};return i}return r5(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,p=i.from,f=this.state.style;if(s){if(!o){var h={style:l?io({},l,c):c};this.state&&f&&(l&&f[l]!==c||!l&&f!==c)&&this.setState(h);return}if(!(c6(a.to,c)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=m||u?p:a.to;if(this.state&&f){var S={style:l?io({},l,b):b};(l&&[l]!==b||!l&&f!==b)&&this.setState(S)}this.runAnimation(Wn(Wn({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,u=a.easing,c=a.begin,p=a.onAnimationEnd,f=a.onAnimationStart,h=Y6(o,s,$6(u),l,this.changeStyle),m=function(){i.stopJSAnimation=h()};this.manager.start([f,c,m,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,u=o[0],c=u.style,p=u.duration,f=p===void 0?0:p,h=function(b,S,T){if(T===0)return b;var _=S.duration,x=S.easing,A=x===void 0?"ease":x,E=S.style,v=S.properties,O=S.onAnimationEnd,R=T>0?o[T-1]:S,C=v||Object.keys(E);if(typeof A=="function"||A==="spring")return[].concat(vd(b),[i.runJSAnimation.bind(i,{from:R.style,to:E,duration:_,easing:A}),_]);var $=HE(C,_,A),N=Wn(Wn(Wn({},R.style),E),{},{transition:$});return[].concat(vd(b),[N,_,O]).filter(_6)};return this.manager.start([l].concat(vd(o.reduce(h,[c,Math.max(f,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=b6());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,u=a.easing,c=a.onAnimationStart,p=a.onAnimationEnd,f=a.steps,h=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(f.length>1){this.runStepAnimation(a);return}var b=s?io({},s,l):l,S=HE(Object.keys(b),o,u);m.start([c,i,Wn(Wn({},b),{},{transition:S}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=X6(a,K6),u=F.Children.count(i),c=uv(this.state.style);if(typeof i=="function")return i(c);if(!s||u===0||o<=0)return i;var p=function(h){var m=h.props,b=m.style,S=b===void 0?{}:b,T=m.className,_=F.cloneElement(h,Wn(Wn({},l),{},{style:Wn(Wn({},S),c),className:T}));return _};return u===1?p(F.Children.only(i)):Y.createElement("div",null,F.Children.map(i,function(f){return p(f)}))}}]),n}(F.PureComponent);Nr.displayName="Animate";Nr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Nr.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Re.object,Re.object,Re.object,Re.element;Re.object,Re.object,Re.object,Re.oneOfType([Re.array,Re.element]),Re.any;function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function ol(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e){var t=u5(e,"string");return Ro(t)==="symbol"?t:String(t)}function u5(e,t){if(Ro(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ro(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yi="recharts-tooltip-wrapper",c5={visibility:"hidden"};function d5(e){var t,n=e.coordinate,r=e.translateX,a=e.translateY;return rt(Yi,(t={},ol(t,"".concat(Yi,"-right"),fe(r)&&n&&fe(n.x)&&r>=n.x),ol(t,"".concat(Yi,"-left"),fe(r)&&n&&fe(n.x)&&r=n.y),ol(t,"".concat(Yi,"-top"),fe(a)&&n&&fe(n.y)&&ab?Math.max(c,l[r]):Math.max(p,l[r])}function p5(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return uv({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function f5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,p;return o.height>0&&o.width>0&&n?(c=QE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=QE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=p5({translateX:c,translateY:p,useTranslate3d:s})):u=c5,{cssProperties:u,cssClasses:d5({translateX:c,translateY:p,coordinate:n})}}function ci(e){"@babel/helpers - typeof";return ci=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},ci(e)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sd(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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(e)}function wl(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=S5(e,"string");return ci(t)==="symbol"?t:String(t)}function S5(e,t){if(ci(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ci(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tw=1,x5=function(e){m5(n,e);var t=b5(n);function n(){var r;h5(this,n);for(var a=arguments.length,i=new Array(a),o=0;otw||Math.abs(a.height-this.lastBoundingBox.height)>tw)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,c=i.children,p=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,m=i.offset,b=i.position,S=i.reverseDirection,T=i.useTranslate3d,_=i.viewBox,x=i.wrapperStyle,A=f5({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:m,position:b,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:T,viewBox:_}),E=A.cssClasses,v=A.cssProperties,O=Sd(Sd(Sd({},h&&o&&uv({transition:"transform ".concat(l,"ms ").concat(u)})),v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return Y.createElement("div",{tabIndex:-1,role:"dialog",className:E,style:O,ref:function(C){a.wrapperNode=C}},c)}}]),n}(F.PureComponent),E5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rr={isSsr:E5(),get:function(t){return Rr[t]},set:function(t,n){if(typeof t=="string")Rr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(a){Rr[a]=t[a]})}}};function di(e){"@babel/helpers - typeof";return di=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},di(e)}function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rw(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 Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(e)}function cv(e,t,n){return t=yC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yC(e){var t=R5(e,"string");return di(t)==="symbol"?t:String(t)}function R5(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C5(e){return e.dataKey}function N5(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(FY,t)}var ba=function(e){T5(n,e);var t=A5(n);function n(){return w5(this,n),t.apply(this,arguments)}return _5(n,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,c=a.coordinate,p=a.filterNull,f=a.isAnimationActive,h=a.offset,m=a.payload,b=a.payloadUniqBy,S=a.position,T=a.reverseDirection,_=a.useTranslate3d,x=a.viewBox,A=a.wrapperStyle,E=m??[];p&&E.length&&(E=iC(m.filter(function(O){return O.value!=null}),b,C5));var v=E.length>0;return Y.createElement(x5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:c,hasPayload:v,offset:h,position:S,reverseDirection:T,useTranslate3d:_,viewBox:x,wrapperStyle:A},N5(u,rw(rw({},this.props),{},{payload:E})))}}]),n}(F.PureComponent);cv(ba,"displayName","Tooltip");cv(ba,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Rr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var D5=oj,L5=function(){return D5.Date.now()},M5=L5,P5=/\s/;function $5(e){for(var t=e.length;t--&&P5.test(e.charAt(t)););return t}var j5=$5,F5=j5,B5=/^\s+/;function U5(e){return e&&e.slice(0,F5(e)+1).replace(B5,"")}var z5=U5,G5=z5,iw=Ou,q5=Dy,ow=0/0,H5=/^[-+]0x[0-9a-f]+$/i,W5=/^0b[01]+$/i,V5=/^0o[0-7]+$/i,Y5=parseInt;function K5(e){if(typeof e=="number")return e;if(q5(e))return ow;if(iw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G5(e);var n=W5.test(e);return n||V5.test(e)?Y5(e.slice(2),n?2:8):H5.test(e)?ow:+e}var vC=K5,X5=Ou,xd=M5,sw=vC,Z5="Expected a function",Q5=Math.max,J5=Math.min;function e8(e,t,n){var r,a,i,o,s,l,u=0,c=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Z5);t=sw(t)||0,X5(n)&&(c=!!n.leading,p="maxWait"in n,i=p?Q5(sw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(v){var O=r,R=a;return r=a=void 0,u=v,o=e.apply(R,O),o}function m(v){return u=v,s=setTimeout(T,t),c?h(v):o}function b(v){var O=v-l,R=v-u,C=t-O;return p?J5(C,i-R):C}function S(v){var O=v-l,R=v-u;return l===void 0||O>=t||O<0||p&&R>=i}function T(){var v=xd();if(S(v))return _(v);s=setTimeout(T,b(v))}function _(v){return s=void 0,f&&r?h(v):(r=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function A(){return s===void 0?o:_(xd())}function E(){var v=xd(),O=S(v);if(r=arguments,a=this,l=v,O){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(T,t),h(l)}return s===void 0&&(s=setTimeout(T,t)),o}return E.cancel=x,E.flush=A,E}var t8=e8,n8=t8,r8=Ou,a8="Expected a function";function i8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(a8);return r8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),n8(e,t,{leading:r,maxWait:t,trailing:a})}var o8=i8;const SC=St(o8);function Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(z=SC(z,b,{trailing:!0,leading:!1}));var V=new ResizeObserver(z),G=E.current.getBoundingClientRect(),K=G.width,X=G.height;return N(K,X),V.observe(E.current),function(){V.disconnect()}},[N,b]);var P=F.useMemo(function(){var z=C.containerWidth,V=C.containerHeight;if(z<0||V<0)return null;Sa(ma(o)||ma(l),`The width(%s) and height(%s) are both fixed numbers, + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return Y.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(An/8,"h").concat(An,"v").concat(An*3/4,"h").concat(-An,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(a.legendIcon)){var c=_V({},a);return delete c.legendIcon,Y.cloneElement(a.legendIcon,c)}return Y.createElement(Qu,{fill:u,cx:o,cy:o,size:An,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:An,height:An},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,b){var S,T=m.formatter||u,_=rt((S={"recharts-legend-item":!0},To(S,"legend-item-".concat(b),!0),To(S,"inactive",m.inactive),S));if(m.type==="none")return null;var E=Fe(m.value)?null:m.value;Sa(!Fe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=m.inactive?c:m.color;return Y.createElement("li",mb({className:_,style:f,key:"legend-item-".concat(b)},wo(a.props,m,b)),Y.createElement(sb,{width:s,height:s,viewBox:p,style:h},a.renderIcon(m)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},T?T(E,m,b):E))})}},{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 Y.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(F.PureComponent);To(sv,"displayName","Legend");To(sv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function DV(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i-1}var HV=qV;function WV(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=s4){var u=t?null:i4(e);if(u)return o4(u);o=!1,a=a4,l=new t4}else l=t?[]:s;e:for(;++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(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function Ju(e,t,n){return t=lC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lC(e){var t=x4(e,"string");return si(t)==="symbol"?t:String(t)}function x4(e,t){if(si(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(si(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E4(e,t){if(e==null)return{};var n=w4(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _4(e){return e.value}function T4(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=E4(t,h4);return Y.createElement(sv,n)}var TE=1,Ao=function(e){b4(n,e);var t=y4(n);function n(){var r;g4(this,n);for(var a=arguments.length,i=new Array(a),o=0;oTE||Math.abs(i.height-this.lastBoundingBox.height)>TE)&&(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?da({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,c=i.chartWidth,p=i.chartHeight,f,h;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((p||0)-b.height)/2}}else h=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return da(da({},f),h)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,f=da(da({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return Y.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){a.wrapperNode=m}},T4(o,da(da({},this.props),{},{payload:oC(p,c,_4)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&fe(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),n}(F.PureComponent);Ju(Ao,"displayName","Legend");Ju(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AE=ej,A4=tj,k4=ku,kE=AE?AE.isConcatSpreadable:void 0;function O4(e){return k4(e)||A4(e)||!!(kE&&e&&e[kE])}var I4=O4,R4=nj,C4=I4;function uC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=C4),a||(a=[]);++i0&&n(s)?t>1?uC(s,t-1,n,r,a):R4(a,s):r||(a[a.length]=s)}return a}var cC=uC;function N4(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var D4=N4,OE=Dy;function L4(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=OE(e),o=t!==void 0,s=t===null,l=t===t,u=OE(t);if(!s&&!u&&!i&&e>t||i&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var j4=$4,bd=Qj,F4=Jj,B4=Ta,U4=eF,z4=D4,G4=rj,q4=j4,H4=hs,W4=ku;function V4(e,t,n){t.length?t=bd(t,function(i){return W4(i)?function(o){return F4(o,i.length===1?i[0]:i)}:i}):t=[H4];var r=-1;t=bd(t,G4(B4));var a=U4(e,function(i,o,s){var l=bd(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return z4(a,function(i,o){return q4(i,o,n)})}var Y4=V4;function K4(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var X4=K4,Z4=X4,IE=Math.max;function Q4(e,t,n){return t=IE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=IE(r.length-t,0),o=Array(i);++a0){if(++t>=oY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cY=uY,dY=iY,pY=cY,fY=pY(dY),hY=fY,gY=hs,mY=J4,bY=hY;function yY(e,t){return bY(mY(e,t,gY),e+"")}var vY=yY,SY=ij,xY=mI,EY=oj,wY=Ou;function _Y(e,t,n){if(!wY(n))return!1;var r=typeof t;return(r=="number"?xY(n)&&EY(t,n.length):r=="string"&&t in n)?SY(n[t],e):!1}var ec=_Y,TY=cC,AY=Y4,kY=vY,CE=ec,OY=kY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&CE(e,t[0],t[1])?t=[]:n>2&&CE(t[0],t[1],t[2])&&(t=[t[0]]),AY(e,TY(t,1),[])}),IY=OY;const lv=St(IY);function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function RY(e,t){return LY(e)||DY(e,t)||NY(e,t)||CY()}function CY(){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 NY(e,t){if(e){if(typeof e=="string")return NE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NE(e,t)}}function NE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function qY(e,t){return Ii(e.getTime(),t.getTime())}function jE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var p=o.value,f=p[0],h=p[1],m=s.value,b=m[0],S=m[1];!u&&!r[c]&&(u=n.equals(f,b,i,c,e,t,n)&&n.equals(h,S,f,b,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;i++}return!0}function HY(e,t,n){var r=$E(e),a=r.length;if($E(t).length!==a)return!1;for(var i;a-- >0;)if(i=r[a],i===pC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!dC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Vi(e,t,n){var r=ME(e),a=r.length;if(ME(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=r[a],i===pC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!dC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(o=PE(e,i),s=PE(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function WY(e,t){return Ii(e.valueOf(),t.valueOf())}function VY(e,t){return e.source===t.source&&e.flags===t.flags}function FE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(i.value,o.value,i.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function YY(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var KY="[object Arguments]",XY="[object Boolean]",ZY="[object Date]",QY="[object Map]",JY="[object Number]",e6="[object Object]",t6="[object RegExp]",n6="[object Set]",r6="[object String]",a6=Array.isArray,BE=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,UE=Object.assign,i6=Object.prototype.toString.call.bind(Object.prototype.toString);function o6(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,p,f){if(c===p)return!0;if(c==null||p==null||typeof c!="object"||typeof p!="object")return c!==c&&p!==p;var h=c.constructor;if(h!==p.constructor)return!1;if(h===Object)return a(c,p,f);if(a6(c))return t(c,p,f);if(BE!=null&&BE(c))return l(c,p,f);if(h===Date)return n(c,p,f);if(h===RegExp)return o(c,p,f);if(h===Map)return r(c,p,f);if(h===Set)return s(c,p,f);var m=i6(c);return m===ZY?n(c,p,f):m===t6?o(c,p,f):m===QY?r(c,p,f):m===n6?s(c,p,f):m===e6?typeof c.then!="function"&&typeof p.then!="function"&&a(c,p,f):m===KY?a(c,p,f):m===XY||m===JY||m===r6?i(c,p,f):!1}}function s6(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Vi:GY,areDatesEqual:qY,areMapsEqual:r?LE(jE,Vi):jE,areObjectsEqual:r?Vi:HY,arePrimitiveWrappersEqual:WY,areRegExpsEqual:VY,areSetsEqual:r?LE(FE,Vi):FE,areTypedArraysEqual:r?Vi:YY};if(n&&(a=UE({},a,n(a))),t){var i=il(a.areArraysEqual),o=il(a.areMapsEqual),s=il(a.areObjectsEqual),l=il(a.areSetsEqual);a=UE({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function l6(e){return function(t,n,r,a,i,o,s){return e(t,n,s)}}function u6(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(l,u){var c=r(),p=c.cache,f=p===void 0?t?new WeakMap:void 0:p,h=c.meta;return n(l,u,{cache:f,equals:a,meta:h,strict:i})};if(t)return function(l,u){return n(l,u,{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,u){return n(l,u,o)}}var c6=ta();ta({strict:!0});ta({circular:!0});ta({circular:!0,strict:!0});ta({createInternalComparator:function(){return Ii}});ta({strict:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii},strict:!0});function ta(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=s6(e),l=o6(s),u=r?r(l):l6(l);return u6({circular:n,comparator:l,createState:a,equals:u,strict:o})}function d6(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):d6(a)};requestAnimationFrame(r)}function vb(e){"@babel/helpers - typeof";return vb=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},vb(e)}function p6(e){return m6(e)||g6(e)||h6(e)||f6()}function f6(){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 h6(e,t){if(e){if(typeof e=="string")return GE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GE(e,t)}}function GE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:T<0?0:T},b=function(T){for(var _=T>1?1:T,E=_,A=0;A<8;++A){var x=p(E)-_,v=h(E);if(Math.abs(x-_)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(c,p,f){var h=-(c-p)*r,m=f*i,b=f+(h-m)*s/1e3,S=f*s/1e3+c;return Math.abs(S-p)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z6(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function vd(e){return t5(e)||e5(e)||J6(e)||Q6()}function Q6(){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 J6(e,t){if(e){if(typeof e=="string")return _b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _b(e,t)}}function e5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t5(e){if(Array.isArray(e))return _b(e)}function _b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);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 ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ql(e)}var Nr=function(e){i5(n,e);var t=o5(n);function n(r,a){var i;n5(this,n),i=t.call(this,r,a);var o=i.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,p=o.steps,f=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kb(i)),i.changeStyle=i.changeStyle.bind(kb(i)),!s||h<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:c}),Ab(i);if(p&&p.length)i.state={style:p[0].style};else if(u){if(typeof f=="function")return i.state={style:u},Ab(i);i.state={style:l?io({},l,u):u}}else i.state={style:{}};return i}return r5(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,p=i.from,f=this.state.style;if(s){if(!o){var h={style:l?io({},l,c):c};this.state&&f&&(l&&f[l]!==c||!l&&f!==c)&&this.setState(h);return}if(!(c6(a.to,c)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=m||u?p:a.to;if(this.state&&f){var S={style:l?io({},l,b):b};(l&&[l]!==b||!l&&f!==b)&&this.setState(S)}this.runAnimation(Wn(Wn({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,u=a.easing,c=a.begin,p=a.onAnimationEnd,f=a.onAnimationStart,h=Y6(o,s,$6(u),l,this.changeStyle),m=function(){i.stopJSAnimation=h()};this.manager.start([f,c,m,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,u=o[0],c=u.style,p=u.duration,f=p===void 0?0:p,h=function(b,S,T){if(T===0)return b;var _=S.duration,E=S.easing,A=E===void 0?"ease":E,x=S.style,v=S.properties,O=S.onAnimationEnd,R=T>0?o[T-1]:S,C=v||Object.keys(x);if(typeof A=="function"||A==="spring")return[].concat(vd(b),[i.runJSAnimation.bind(i,{from:R.style,to:x,duration:_,easing:A}),_]);var $=HE(C,_,A),N=Wn(Wn(Wn({},R.style),x),{},{transition:$});return[].concat(vd(b),[N,_,O]).filter(_6)};return this.manager.start([l].concat(vd(o.reduce(h,[c,Math.max(f,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=b6());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,u=a.easing,c=a.onAnimationStart,p=a.onAnimationEnd,f=a.steps,h=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(f.length>1){this.runStepAnimation(a);return}var b=s?io({},s,l):l,S=HE(Object.keys(b),o,u);m.start([c,i,Wn(Wn({},b),{},{transition:S}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=X6(a,K6),u=F.Children.count(i),c=uv(this.state.style);if(typeof i=="function")return i(c);if(!s||u===0||o<=0)return i;var p=function(h){var m=h.props,b=m.style,S=b===void 0?{}:b,T=m.className,_=F.cloneElement(h,Wn(Wn({},l),{},{style:Wn(Wn({},S),c),className:T}));return _};return u===1?p(F.Children.only(i)):Y.createElement("div",null,F.Children.map(i,function(f){return p(f)}))}}]),n}(F.PureComponent);Nr.displayName="Animate";Nr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Nr.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Re.object,Re.object,Re.object,Re.element;Re.object,Re.object,Re.object,Re.oneOfType([Re.array,Re.element]),Re.any;function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function ol(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e){var t=u5(e,"string");return Ro(t)==="symbol"?t:String(t)}function u5(e,t){if(Ro(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ro(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yi="recharts-tooltip-wrapper",c5={visibility:"hidden"};function d5(e){var t,n=e.coordinate,r=e.translateX,a=e.translateY;return rt(Yi,(t={},ol(t,"".concat(Yi,"-right"),fe(r)&&n&&fe(n.x)&&r>=n.x),ol(t,"".concat(Yi,"-left"),fe(r)&&n&&fe(n.x)&&r=n.y),ol(t,"".concat(Yi,"-top"),fe(a)&&n&&fe(n.y)&&ab?Math.max(c,l[r]):Math.max(p,l[r])}function p5(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return uv({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function f5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,p;return o.height>0&&o.width>0&&n?(c=QE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=QE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=p5({translateX:c,translateY:p,useTranslate3d:s})):u=c5,{cssProperties:u,cssClasses:d5({translateX:c,translateY:p,coordinate:n})}}function ci(e){"@babel/helpers - typeof";return ci=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},ci(e)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sd(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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(e)}function wl(e,t,n){return t=yC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yC(e){var t=S5(e,"string");return ci(t)==="symbol"?t:String(t)}function S5(e,t){if(ci(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ci(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tw=1,x5=function(e){m5(n,e);var t=b5(n);function n(){var r;h5(this,n);for(var a=arguments.length,i=new Array(a),o=0;otw||Math.abs(a.height-this.lastBoundingBox.height)>tw)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,c=i.children,p=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,m=i.offset,b=i.position,S=i.reverseDirection,T=i.useTranslate3d,_=i.viewBox,E=i.wrapperStyle,A=f5({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:m,position:b,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:T,viewBox:_}),x=A.cssClasses,v=A.cssProperties,O=Sd(Sd(Sd({},h&&o&&uv({transition:"transform ".concat(l,"ms ").concat(u)})),v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},E);return Y.createElement("div",{tabIndex:-1,role:"dialog",className:x,style:O,ref:function(C){a.wrapperNode=C}},c)}}]),n}(F.PureComponent),E5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rr={isSsr:E5(),get:function(t){return Rr[t]},set:function(t,n){if(typeof t=="string")Rr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(a){Rr[a]=t[a]})}}};function di(e){"@babel/helpers - typeof";return di=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},di(e)}function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rw(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 Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(e)}function cv(e,t,n){return t=vC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vC(e){var t=R5(e,"string");return di(t)==="symbol"?t:String(t)}function R5(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C5(e){return e.dataKey}function N5(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(FY,t)}var ba=function(e){T5(n,e);var t=A5(n);function n(){return w5(this,n),t.apply(this,arguments)}return _5(n,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,c=a.coordinate,p=a.filterNull,f=a.isAnimationActive,h=a.offset,m=a.payload,b=a.payloadUniqBy,S=a.position,T=a.reverseDirection,_=a.useTranslate3d,E=a.viewBox,A=a.wrapperStyle,x=m??[];p&&x.length&&(x=oC(m.filter(function(O){return O.value!=null}),b,C5));var v=x.length>0;return Y.createElement(x5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:c,hasPayload:v,offset:h,position:S,reverseDirection:T,useTranslate3d:_,viewBox:E,wrapperStyle:A},N5(u,rw(rw({},this.props),{},{payload:x})))}}]),n}(F.PureComponent);cv(ba,"displayName","Tooltip");cv(ba,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Rr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var D5=sj,L5=function(){return D5.Date.now()},M5=L5,P5=/\s/;function $5(e){for(var t=e.length;t--&&P5.test(e.charAt(t)););return t}var j5=$5,F5=j5,B5=/^\s+/;function U5(e){return e&&e.slice(0,F5(e)+1).replace(B5,"")}var z5=U5,G5=z5,iw=Ou,q5=Dy,ow=0/0,H5=/^[-+]0x[0-9a-f]+$/i,W5=/^0b[01]+$/i,V5=/^0o[0-7]+$/i,Y5=parseInt;function K5(e){if(typeof e=="number")return e;if(q5(e))return ow;if(iw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G5(e);var n=W5.test(e);return n||V5.test(e)?Y5(e.slice(2),n?2:8):H5.test(e)?ow:+e}var SC=K5,X5=Ou,xd=M5,sw=SC,Z5="Expected a function",Q5=Math.max,J5=Math.min;function e8(e,t,n){var r,a,i,o,s,l,u=0,c=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Z5);t=sw(t)||0,X5(n)&&(c=!!n.leading,p="maxWait"in n,i=p?Q5(sw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(v){var O=r,R=a;return r=a=void 0,u=v,o=e.apply(R,O),o}function m(v){return u=v,s=setTimeout(T,t),c?h(v):o}function b(v){var O=v-l,R=v-u,C=t-O;return p?J5(C,i-R):C}function S(v){var O=v-l,R=v-u;return l===void 0||O>=t||O<0||p&&R>=i}function T(){var v=xd();if(S(v))return _(v);s=setTimeout(T,b(v))}function _(v){return s=void 0,f&&r?h(v):(r=a=void 0,o)}function E(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function A(){return s===void 0?o:_(xd())}function x(){var v=xd(),O=S(v);if(r=arguments,a=this,l=v,O){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(T,t),h(l)}return s===void 0&&(s=setTimeout(T,t)),o}return x.cancel=E,x.flush=A,x}var t8=e8,n8=t8,r8=Ou,a8="Expected a function";function i8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(a8);return r8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),n8(e,t,{leading:r,maxWait:t,trailing:a})}var o8=i8;const xC=St(o8);function Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(z=xC(z,b,{trailing:!0,leading:!1}));var V=new ResizeObserver(z),G=x.current.getBoundingClientRect(),K=G.width,X=G.height;return N(K,X),V.observe(x.current),function(){V.disconnect()}},[N,b]);var P=F.useMemo(function(){var z=C.containerWidth,V=C.containerHeight;if(z<0||V<0)return null;Sa(ma(o)||ma(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),Sa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var G=ma(o)?z:o,K=ma(l)?V:l;n&&n>0&&(G?K=G/n:K&&(G=K*n),f&&K>f&&(K=f)),Sa(G>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,G,K,o,l,c,p,n);var X=!Array.isArray(h)&&ab.isElement(h)&&Ir(h.type).endsWith("Chart");return Y.Children.map(h,function(W){return ab.isElement(W)?F.cloneElement(W,sl({width:G,height:K},X?{style:sl({height:"100%",width:"100%",maxHeight:K,maxWidth:G},W.props.style)}:{})):W})},[n,h,l,f,p,c,C,o]);return Y.createElement("div",{id:S?"".concat(S):void 0,className:rt("recharts-responsive-container",T),style:sl(sl({},A),{},{width:o,height:l,minWidth:c,minHeight:p,maxHeight:f}),ref:E},P)}),dv=function(t){return null};dv.displayName="Cell";function No(e){"@babel/helpers - typeof";return No=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},No(e)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rb(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rr.isSsr)return{width:0,height:0};var r=x8(n),a=JSON.stringify({text:t,copyStyle:r});if(Fa.widthCache[a])return Fa.widthCache[a];try{var i=document.getElementById(dw);i||(i=document.createElement("span"),i.setAttribute("id",dw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Rb(Rb({},S8),r);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Fa.widthCache[a]=l,++Fa.cacheCount>v8&&(Fa.cacheCount=0,Fa.widthCache={}),l}catch{return{width:0,height:0}}},E8=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Vl(e,t){return A8(e)||T8(e,t)||_8(e,t)||w8()}function w8(){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 _8(e,t){if(e){if(typeof e=="string")return pw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pw(e,t)}}function pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B8(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function yw(e,t){return q8(e)||G8(e,t)||z8(e,t)||U8()}function U8(){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 z8(e,t){if(e){if(typeof e=="string")return vw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vw(e,t)}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(K,X){var W=X.word,Z=X.width,D=K[K.length-1];if(D&&(a==null||i||D.width+Z+rX.width?K:X})};if(!c)return h;for(var b="…",S=function(G){var K=p.slice(0,G),X=_C({breakAll:u,style:l,children:K+b}).wordsWithComputedWidth,W=f(X),Z=W.length>o||m(W).width>Number(a);return[Z,W]},T=0,_=p.length-1,x=0,A;T<=_&&x<=p.length-1;){var E=Math.floor((T+_)/2),v=E-1,O=S(v),R=yw(O,2),C=R[0],$=R[1],N=S(E),P=yw(N,1),z=P[0];if(!C&&!z&&(T=E+1),C&&z&&(_=E-1),!C&&z){A=$;break}x++}return A||h},Sw=function(t){var n=Be(t)?[]:t.toString().split(wC);return[{words:n}]},W8=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!Rr.isSsr){var l,u,c=_C({breakAll:o,children:a,style:i});if(c){var p=c.wordsWithComputedWidth,f=c.spaceWidth;l=p,u=f}else return Sw(a);return H8({breakAll:o,children:a,maxLines:s,style:i},l,u,n,r)}return Sw(a)},xw="#808080",Yl=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,p=c===void 0?!1:c,f=t.textAnchor,h=f===void 0?"start":f,m=t.verticalAnchor,b=m===void 0?"end":m,S=t.fill,T=S===void 0?xw:S,_=bw(t,j8),x=F.useMemo(function(){return W8({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,E=_.dy,v=_.angle,O=_.className,R=_.breakAll,C=bw(_,F8);if(!Nt(r)||!Nt(i))return null;var $=r+(fe(A)?A:0),N=i+(fe(E)?E:0),P;switch(b){case"start":P=Ed("calc(".concat(u,")"));break;case"middle":P=Ed("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=Ed("calc(".concat(x.length-1," * -").concat(s,")"));break}var z=[];if(p){var V=x[0].width,G=_.width;z.push("scale(".concat((fe(G)?G/V:1)/V,")"))}return v&&z.push("rotate(".concat(v,", ").concat($,", ").concat(N,")")),z.length&&(C.transform=z.join(" ")),Y.createElement("text",Cb({},He(C,!0),{x:$,y:N,className:rt("recharts-text",O),textAnchor:h,fill:T.includes("url")?xw:T}),x.map(function(K,X){var W=K.words.join(R?"":" ");return Y.createElement("tspan",{x:$,dy:X===0?P:s,key:W},W)}))};function Qr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function V8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pv(e){let t,n,r;e.length!==2?(t=Qr,n=(s,l)=>Qr(e(s),l),r=(s,l)=>e(s)-l):(t=e===Qr||e===V8?e:Y8,n=e,r=e);function a(s,l,u=0,c=s.length){if(u>>1;n(s[p],l)<0?u=p+1:c=p}while(u>>1;n(s[p],l)<=0?u=p+1:c=p}while(uu&&r(s[p-1],l)>-r(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function Y8(){return 0}function TC(e){return e===null?NaN:+e}function*K8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const X8=pv(Qr),Z8=X8.right;pv(TC).center;const Ss=Z8;class Ew extends Map{constructor(t,n=e9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ww(this,t))}has(t){return super.has(ww(this,t))}set(t,n){return super.set(Q8(this,t),n)}delete(t){return super.delete(J8(this,t))}}function ww({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Q8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function J8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t9(e=Qr){if(e===Qr)return AC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function AC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const n9=Math.sqrt(50),r9=Math.sqrt(10),a9=Math.sqrt(2);function Kl(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=n9?10:i>=r9?5:i>=a9?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Tw(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function kC(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?AC:t9(a);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,c=Math.log(l),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(l-p)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*p/l+f)),m=Math.min(r,Math.floor(t+(l-u)*p/l+f));kC(e,t,h,m,a)}const i=e[t];let o=n,s=r;for(Ki(e,n,t),a(e[r],i)>0&&Ki(e,n,r);o0;)--s}a(e[n],i)===0?Ki(e,n,s):(++s,Ki(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ki(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function i9(e,t,n){if(e=Float64Array.from(K8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Tw(e);if(t>=1)return _w(e);var r,a=(r-1)*t,i=Math.floor(a),o=_w(kC(e,i).subarray(0,i+1)),s=Tw(e.subarray(i+1));return o+(s-o)*(a-i)}}function o9(e,t,n=TC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function s9(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ul(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ul(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=u9.exec(e))?new pn(t[1],t[2],t[3],1):(t=c9.exec(e))?new pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d9.exec(e))?ul(t[1],t[2],t[3],t[4]):(t=p9.exec(e))?ul(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,1):(t=h9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,t[4]):Aw.hasOwnProperty(e)?Iw(Aw[e]):e==="transparent"?new pn(NaN,NaN,NaN,0):null}function Iw(e){return new pn(e>>16&255,e>>8&255,e&255,1)}function ul(e,t,n,r){return r<=0&&(e=t=n=NaN),new pn(e,t,n,r)}function b9(e){return e instanceof xs||(e=$o(e)),e?(e=e.rgb(),new pn(e.r,e.g,e.b,e.opacity)):new pn}function Pb(e,t,n,r){return arguments.length===1?b9(e):new pn(e,t,n,r??1)}function pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hv(pn,Pb,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pn(xa(this.r),xa(this.g),xa(this.b),Zl(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:Rw,formatHex:Rw,formatHex8:y9,formatRgb:Cw,toString:Cw}));function Rw(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}`}function y9(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}${ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cw(){const e=Zl(this.opacity);return`${e===1?"rgb(":"rgba("}${xa(this.r)}, ${xa(this.g)}, ${xa(this.b)}${e===1?")":`, ${e})`}`}function Zl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ya(e){return e=xa(e),(e<16?"0":"")+e.toString(16)}function Nw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function RC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=$o(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n0&&l<1?0:o,new Yn(o,s,l,e.opacity)}function v9(e,t,n,r){return arguments.length===1?RC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hv(Yn,v9,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new Yn(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new pn(wd(e>=240?e-240:e+120,a,r),wd(e,a,r),wd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Yn(Dw(this.h),cl(this.s),cl(this.l),Zl(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=Zl(this.opacity);return`${e===1?"hsl(":"hsla("}${Dw(this.h)}, ${cl(this.s)*100}%, ${cl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dw(e){return e=(e||0)%360,e<0?e+360:e}function cl(e){return Math.max(0,Math.min(1,e||0))}function wd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gv=e=>()=>e;function S9(e,t){return function(n){return e+n*t}}function x9(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function E9(e){return(e=+e)==1?CC:function(t,n){return n-t?x9(t,n,e):gv(isNaN(t)?n:t)}}function CC(e,t){var n=t-e;return n?S9(e,n):gv(isNaN(e)?t:e)}const Lw=function e(t){var n=E9(t);function r(a,i){var o=n((a=Pb(a)).r,(i=Pb(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=CC(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function w9(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:Ql(r,a)})),n=_d.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function L9(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?M9:L9,l=u=null,p}function p(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return p.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ql)))(f)))},p.domain=function(f){return arguments.length?(e=Array.from(f,Jl),c()):e.slice()},p.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},p.rangeRound=function(f){return t=Array.from(f),n=mv,c()},p.clamp=function(f){return arguments.length?(o=f?!0:on,c()):o!==on},p.interpolate=function(f){return arguments.length?(n=f,c()):n},p.unknown=function(f){return arguments.length?(i=f,p):i},function(f,h){return r=f,a=h,c()}}function bv(){return tc()(on,on)}function P9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pi(e){return e=eu(Math.abs(e)),e?e[1]:NaN}function $9(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function j9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var F9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jo(e){if(!(t=F9.exec(e)))throw new Error("invalid format: "+e);var t;return new yv({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]})}jo.prototype=yv.prototype;function yv(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+""}yv.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 B9(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var NC;function U9(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(NC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+eu(e,Math.max(0,t+i-1))[0]}function Pw(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const $w={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:P9,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)=>Pw(e*100,t),r:Pw,s:U9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jw(e){return e}var Fw=Array.prototype.map,Bw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function z9(e){var t=e.grouping===void 0||e.thousands===void 0?jw:$9(Fw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?jw:j9(Fw.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 u(p){p=jo(p);var f=p.fill,h=p.align,m=p.sign,b=p.symbol,S=p.zero,T=p.width,_=p.comma,x=p.precision,A=p.trim,E=p.type;E==="n"?(_=!0,E="g"):$w[E]||(x===void 0&&(x=12),A=!0,E="g"),(S||f==="0"&&h==="=")&&(S=!0,f="0",h="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",O=b==="$"?r:/[%p]/.test(E)?o:"",R=$w[E],C=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function $(N){var P=v,z=O,V,G,K;if(E==="c")z=R(N)+z,N="";else{N=+N;var X=N<0||1/N<0;if(N=isNaN(N)?l:R(Math.abs(N),x),A&&(N=B9(N)),X&&+N==0&&m!=="+"&&(X=!1),P=(X?m==="("?m:s:m==="-"||m==="("?"":m)+P,z=(E==="s"?Bw[8+NC/3]:"")+z+(X&&m==="("?")":""),C){for(V=-1,G=N.length;++VK||K>57){z=(K===46?a+N.slice(V+1):N.slice(V))+z,N=N.slice(0,V);break}}}_&&!S&&(N=t(N,1/0));var W=P.length+N.length+z.length,Z=W>1)+P+N+z+Z.slice(W);break;default:N=Z+P+N+z;break}return i(N)}return $.toString=function(){return p+""},$}function c(p,f){var h=u((p=jo(p),p.type="f",p)),m=Math.max(-8,Math.min(8,Math.floor(pi(f)/3)))*3,b=Math.pow(10,-m),S=Bw[8+m/3];return function(T){return h(b*T)+S}}return{format:u,formatPrefix:c}}var dl,vv,DC;G9({thousands:",",grouping:[3],currency:["$",""]});function G9(e){return dl=z9(e),vv=dl.format,DC=dl.formatPrefix,dl}function q9(e){return Math.max(0,-pi(Math.abs(e)))}function H9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pi(t)/3)))*3-pi(Math.abs(e)))}function W9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pi(t)-pi(e))+1}function LC(e,t,n,r){var a=Lb(e,t,n),i;switch(r=jo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=H9(a,o))&&(r.precision=i),DC(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=W9(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=q9(a))&&(r.precision=i-(r.type==="%")*2);break}}return vv(r)}function na(e){var t=e.domain;return e.ticks=function(n){var r=t();return Nb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return LC(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s0;){if(u=Db(o,s,n),u===l)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function tu(){var e=bv();return e.copy=function(){return Es(e,tu())},$n.apply(e,arguments),na(e)}function MC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Jl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return MC(e).unknown(t)},e=arguments.length?Array.from(e,Jl):[0,1],na(n)}function PC(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Z9(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 Gw(e){return(t,n)=>-e(-t,n)}function Sv(e){const t=e(Uw,zw),n=t.domain;let r=10,a,i;function o(){return a=Z9(r),i=X9(r),n()[0]<0?(a=Gw(a),i=Gw(i),e(V9,Y9)):e(Uw,zw),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const p=c0){for(;f<=h;++f)for(m=1;mc)break;T.push(b)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(b=f>0?m/i(-f):m*i(f),!(bc)break;T.push(b)}T.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=jo(l)).precision==null&&(l.trim=!0),l=vv(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let p=c/i(Math.round(a(c)));return p*rn(PC(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function $C(){const e=Sv(tc()).domain([1,10]);return e.copy=()=>Es(e,$C()).base(e.base()),$n.apply(e,arguments),e}function qw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xv(e){var t=1,n=e(qw(t),Hw(t));return n.constant=function(r){return arguments.length?e(qw(t=+r),Hw(t)):t},na(n)}function jC(){var e=xv(tc());return e.copy=function(){return Es(e,jC()).constant(e.constant())},$n.apply(e,arguments)}function Ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Q9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function J9(e){return e<0?-e*e:e*e}function Ev(e){var t=e(on,on),n=1;function r(){return n===1?e(on,on):n===.5?e(Q9,J9):e(Ww(n),Ww(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},na(t)}function wv(){var e=Ev(tc());return e.copy=function(){return Es(e,wv()).exponent(e.exponent())},$n.apply(e,arguments),e}function eK(){return wv.apply(null,arguments).exponent(.5)}function Vw(e){return Math.sign(e)*e*e}function tK(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function FC(){var e=bv(),t=[0,1],n=!1,r;function a(i){var o=tK(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(Vw(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,Jl)).map(Vw)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return FC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(a,arguments),na(a)}function BC(){var e=[],t=[],n=[],r;function a(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return UC().domain([e,t]).range(a).unknown(i)},$n.apply(na(o),arguments)}function zC(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Ss(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=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?(n=i,a):n},a.copy=function(){return zC().domain(e).range(t).unknown(n)},$n.apply(a,arguments)}const Td=new Date,Ad=new Date;function Dt(e,t,n,r){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 u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uDt(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););}),n&&(a.count=(i,o)=>(Td.setTime(+i),Ad.setTime(+o),e(Td),e(Ad),Math.floor(n(Td,Ad))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const nu=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nu);nu.range;const kr=1e3,Nn=kr*60,Or=Nn*60,Dr=Or*24,_v=Dr*7,Yw=Dr*30,kd=Dr*365,va=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());va.range;const Tv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());Tv.range;const Av=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());Av.range;const kv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getHours());kv.range;const Ov=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCHours());Ov.range;const ws=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Dr,e=>e.getDate()-1);ws.range;const nc=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>e.getUTCDate()-1);nc.range;const GC=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>Math.floor(e/Dr));GC.range;function Oa(e){return Dt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/_v)}const rc=Oa(0),ru=Oa(1),nK=Oa(2),rK=Oa(3),fi=Oa(4),aK=Oa(5),iK=Oa(6);rc.range;ru.range;nK.range;rK.range;fi.range;aK.range;iK.range;function Ia(e){return Dt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/_v)}const ac=Ia(0),au=Ia(1),oK=Ia(2),sK=Ia(3),hi=Ia(4),lK=Ia(5),uK=Ia(6);ac.range;au.range;oK.range;sK.range;hi.range;lK.range;uK.range;const Iv=Dt(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());Iv.range;const Rv=Dt(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());Rv.range;const Lr=Dt(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());Lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lr.range;const Mr=Dt(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());Mr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mr.range;function qC(e,t,n,r,a,i){const o=[[va,1,kr],[va,5,5*kr],[va,15,15*kr],[va,30,30*kr],[i,1,Nn],[i,5,5*Nn],[i,15,15*Nn],[i,30,30*Nn],[a,1,Or],[a,3,3*Or],[a,6,6*Or],[a,12,12*Or],[r,1,Dr],[r,2,2*Dr],[n,1,_v],[t,1,Yw],[t,3,3*Yw],[e,1,kd]];function s(u,c,p){const f=cS).right(o,f);if(h===o.length)return e.every(Lb(u/kd,c/kd,p));if(h===0)return nu.every(Math.max(Lb(u,c,p),1));const[m,b]=o[f/o[h-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(me=Id(Xi(ee.y,0,1)),ve=me.getUTCDay(),me=ve>4||ve===0?au.ceil(me):au(me),me=nc.offset(me,(ee.V-1)*7),ee.y=me.getUTCFullYear(),ee.m=me.getUTCMonth(),ee.d=me.getUTCDate()+(ee.w+6)%7):(me=Od(Xi(ee.y,0,1)),ve=me.getDay(),me=ve>4||ve===0?ru.ceil(me):ru(me),me=ws.offset(me,(ee.V-1)*7),ee.y=me.getFullYear(),ee.m=me.getMonth(),ee.d=me.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ve="Z"in ee?Id(Xi(ee.y,0,1)).getUTCDay():Od(Xi(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(ve+5)%7:ee.w+ee.U*7-(ve+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Id(ee)):Od(ee)}}function R(ae,de,ce,ee){for(var _e=0,me=de.length,ve=ce.length,Ue,at;_e=ve)return-1;if(Ue=de.charCodeAt(_e++),Ue===37){if(Ue=de.charAt(_e++),at=E[Ue in Kw?de.charAt(_e++):Ue],!at||(ee=at(ae,ce,ee))<0)return-1}else if(Ue!=ce.charCodeAt(ee++))return-1}return ee}function C(ae,de,ce){var ee=u.exec(de.slice(ce));return ee?(ae.p=c.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function $(ae,de,ce){var ee=h.exec(de.slice(ce));return ee?(ae.w=m.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function N(ae,de,ce){var ee=p.exec(de.slice(ce));return ee?(ae.w=f.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function P(ae,de,ce){var ee=T.exec(de.slice(ce));return ee?(ae.m=_.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function z(ae,de,ce){var ee=b.exec(de.slice(ce));return ee?(ae.m=S.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function V(ae,de,ce){return R(ae,t,de,ce)}function G(ae,de,ce){return R(ae,n,de,ce)}function K(ae,de,ce){return R(ae,r,de,ce)}function X(ae){return o[ae.getDay()]}function W(ae){return i[ae.getDay()]}function Z(ae){return l[ae.getMonth()]}function D(ae){return s[ae.getMonth()]}function ie(ae){return a[+(ae.getHours()>=12)]}function ne(ae){return 1+~~(ae.getMonth()/3)}function M(ae){return o[ae.getUTCDay()]}function ye(ae){return i[ae.getUTCDay()]}function re(ae){return l[ae.getUTCMonth()]}function Se(ae){return s[ae.getUTCMonth()]}function je(ae){return a[+(ae.getUTCHours()>=12)]}function we(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=v(ae+="",x);return de.toString=function(){return ae},de},parse:function(ae){var de=O(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=v(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=O(ae+="",!0);return de.toString=function(){return ae},de}}}var Kw={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,gK=/^%/,mK=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function yK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wK(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _K(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function TK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function AK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function OK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function RK(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CK(e,t,n){var r=gK.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function e0(e,t){return Ye(e.getDate(),t,2)}function LK(e,t){return Ye(e.getHours(),t,2)}function MK(e,t){return Ye(e.getHours()%12||12,t,2)}function PK(e,t){return Ye(1+ws.count(Lr(e),e),t,3)}function HC(e,t){return Ye(e.getMilliseconds(),t,3)}function $K(e,t){return HC(e,t)+"000"}function jK(e,t){return Ye(e.getMonth()+1,t,2)}function FK(e,t){return Ye(e.getMinutes(),t,2)}function BK(e,t){return Ye(e.getSeconds(),t,2)}function UK(e){var t=e.getDay();return t===0?7:t}function zK(e,t){return Ye(rc.count(Lr(e)-1,e),t,2)}function WC(e){var t=e.getDay();return t>=4||t===0?fi(e):fi.ceil(e)}function GK(e,t){return e=WC(e),Ye(fi.count(Lr(e),e)+(Lr(e).getDay()===4),t,2)}function qK(e){return e.getDay()}function HK(e,t){return Ye(ru.count(Lr(e)-1,e),t,2)}function WK(e,t){return Ye(e.getFullYear()%100,t,2)}function VK(e,t){return e=WC(e),Ye(e.getFullYear()%100,t,2)}function YK(e,t){return Ye(e.getFullYear()%1e4,t,4)}function KK(e,t){var n=e.getDay();return e=n>=4||n===0?fi(e):fi.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function XK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function t0(e,t){return Ye(e.getUTCDate(),t,2)}function ZK(e,t){return Ye(e.getUTCHours(),t,2)}function QK(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function JK(e,t){return Ye(1+nc.count(Mr(e),e),t,3)}function VC(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function eX(e,t){return VC(e,t)+"000"}function tX(e,t){return Ye(e.getUTCMonth()+1,t,2)}function nX(e,t){return Ye(e.getUTCMinutes(),t,2)}function rX(e,t){return Ye(e.getUTCSeconds(),t,2)}function aX(e){var t=e.getUTCDay();return t===0?7:t}function iX(e,t){return Ye(ac.count(Mr(e)-1,e),t,2)}function YC(e){var t=e.getUTCDay();return t>=4||t===0?hi(e):hi.ceil(e)}function oX(e,t){return e=YC(e),Ye(hi.count(Mr(e),e)+(Mr(e).getUTCDay()===4),t,2)}function sX(e){return e.getUTCDay()}function lX(e,t){return Ye(au.count(Mr(e)-1,e),t,2)}function uX(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function cX(e,t){return e=YC(e),Ye(e.getUTCFullYear()%100,t,2)}function dX(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function pX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hi(e):hi.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function fX(){return"+0000"}function n0(){return"%"}function r0(e){return+e}function a0(e){return Math.floor(+e/1e3)}var Ba,KC,XC;hX({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 hX(e){return Ba=hK(e),KC=Ba.format,Ba.parse,XC=Ba.utcFormat,Ba.utcParse,Ba}function gX(e){return new Date(e)}function mX(e){return e instanceof Date?+e:+new Date(+e)}function Cv(e,t,n,r,a,i,o,s,l,u){var c=bv(),p=c.invert,f=c.domain,h=u(".%L"),m=u(":%S"),b=u("%I:%M"),S=u("%I %p"),T=u("%a %d"),_=u("%b %d"),x=u("%B"),A=u("%Y");function E(v){return(l(v)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>i9(e,i/r))},n.copy=function(){return eN(t).domain(e)},$r.apply(n,arguments)}function oc(){var e=0,t=.5,n=1,r=1,a,i,o,s,l,u=on,c,p=!1,f;function h(b){return isNaN(b=+b)?f:(b=.5+((b=+c(b))-i)*(r*bt}var _X=wX,TX=aN,AX=_X,kX=hs;function OX(e){return e&&e.length?TX(e,kX,AX):void 0}var IX=OX;const sc=St(IX);function RX(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return Cr(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ot(Cr(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return kt(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(Sn)?new r(0):(gt=!1,t=Cr(Fo(n,i),Fo(e,i),i),gt=!0,ot(t,a))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lN(t,e):oN(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ln+"NaN");return n.s?(gt=!1,t=Cr(n,e,0,1).times(e),gt=!0,n.minus(t)):ot(new r(n),a)};be.naturalExponential=be.exp=function(){return sN(this)};be.naturalLogarithm=be.ln=function(){return Fo(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oN(t,e):lN(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ea+e);if(t=kt(a)+1,r=a.d.length-1,n=r*ft+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ln+"NaN")}for(e=kt(s),gt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=sr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ni((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),r=new l(t)):r=new l(a.toString()),n=l.precision,a=o=n+3;;)if(i=r,r=i.plus(Cr(s,i,o+2)).times(.5),sr(i.d).slice(0,o)===(t=sr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ot(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;o+=4}return gt=!0,ot(r,n)};be.times=be.mul=function(e){var t,n,r,a,i,o,s,l,u,c=this,p=c.constructor,f=c.d,h=(e=new p(e)).d;if(!c.s||!e.s)return new p(0);for(e.s*=c.s,n=c.e+e.e,l=f.length,u=h.length,l=0;){for(t=0,a=l+r;a>r;)s=i[a]+h[r]*f[a-r-1]+t,i[a--]=s%Mt|0,t=s/Mt|0;i[a]=(i[a]+t)%Mt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,gt?ot(e,p.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fr(e,0,Ci),t===void 0?t=r.rounding:fr(t,0,8),ot(n,e+kt(n)+1,t))};be.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_a(r,!0):(fr(e,0,Ci),t===void 0?t=a.rounding:fr(t,0,8),r=ot(new a(r),e+1,t),n=_a(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?_a(a):(fr(e,0,Ci),t===void 0?t=i.rounding:fr(t,0,8),r=ot(new i(a),e+kt(a)+1,t),n=_a(r.abs(),!1,e+kt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return ot(new t(e),kt(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ln+"Infinity");return s}if(s.eq(Sn))return s;if(r=l.precision,e.eq(Sn))return ot(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=s.s,o){if((n=c<0?-c:c)<=iN){for(a=new l(Sn),t=Math.ceil(r/ft+4),gt=!1;n%2&&(a=a.times(s),s0(a.d,t)),n=Ni(n/2),n!==0;)s=s.times(s),s0(s.d,t);return gt=!0,e.s<0?new l(Sn).div(a):ot(a,r)}}else if(i<0)throw Error(Ln+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,gt=!1,a=e.times(Fo(s,r+u)),gt=!0,a=sN(a),a.s=i,a};be.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=kt(a),r=_a(a,n<=i.toExpNeg||n>=i.toExpPos)):(fr(e,1,Ci),t===void 0?t=i.rounding:fr(t,0,8),a=ot(new i(a),e,t),n=kt(a),r=_a(a,e<=n||n<=i.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(fr(e,1,Ci),t===void 0?t=r.rounding:fr(t,0,8)),ot(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=kt(e),n=e.constructor;return _a(e,t<=n.toExpNeg||t>=n.toExpPos)};function oN(e,t){var n,r,a,i,o,s,l,u,c=e.constructor,p=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),gt?ot(t,p):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,a=o,s=l.length),o=Math.ceil(p/ft),s=o>s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Mt|0,l[i]%=Mt;for(n&&(l.unshift(n),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,gt?ot(t,p):t}function fr(e,t,n){if(e!==~~e||en)throw Error(Ea+e)}function sr(e){var t,n,r,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 n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]1;)r.shift()}return function(r,a,i,o){var s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C=r.constructor,$=r.s==a.s?1:-1,N=r.d,P=a.d;if(!r.s)return new C(r);if(!a.s)throw Error(Ln+"Division by zero");for(l=r.e-a.e,O=P.length,E=N.length,h=new C($),m=h.d=[],u=0;P[u]==(N[u]||0);)++u;if(P[u]>(N[u]||0)&&--l,i==null?_=i=C.precision:o?_=i+(kt(r)-kt(a))+1:_=i,_<0)return new C(0);if(_=_/ft+2|0,u=0,O==1)for(c=0,P=P[0],_++;(u1&&(P=e(P,c),N=e(N,c),O=P.length,E=N.length),A=O,b=N.slice(0,O),S=b.length;S=Mt/2&&++v;do c=0,s=t(P,b,O,S),s<0?(T=b[0],O!=S&&(T=T*Mt+(b[1]||0)),c=T/v|0,c>1?(c>=Mt&&(c=Mt-1),p=e(P,c),f=p.length,S=b.length,s=t(p,b,f,S),s==1&&(c--,n(p,O16)throw Error(Lv+kt(e));if(!e.s)return new c(Sn);for(t==null?(gt=!1,s=p):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(ha(2,u))/Math.LN10*2+5|0,s+=r,n=a=i=new c(Sn),c.precision=s;;){if(a=ot(a.times(e),s),n=n.times(++l),o=i.plus(Cr(a,n,s)),sr(o.d).slice(0,s)===sr(i.d).slice(0,s)){for(;u--;)i=ot(i.times(i),s);return c.precision=p,t==null?(gt=!0,ot(i,p)):i}i=o}}function kt(e){for(var t=e.e*ft,n=e.d[0];n>=10;n/=10)t++;return t}function Rd(e,t,n){if(t>e.LN10.sd())throw gt=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return ot(new e(e.LN10),t)}function Yr(e){for(var t="";e--;)t+="0";return t}function Fo(e,t){var n,r,a,i,o,s,l,u,c,p=1,f=10,h=e,m=h.d,b=h.constructor,S=b.precision;if(h.s<1)throw Error(Ln+(h.s?"NaN":"-Infinity"));if(h.eq(Sn))return new b(0);if(t==null?(gt=!1,u=S):u=t,h.eq(10))return t==null&&(gt=!0),Rd(b,u);if(u+=f,b.precision=u,n=sr(m),r=n.charAt(0),i=kt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=sr(h.d),r=n.charAt(0),p++;i=kt(h),r>1?(h=new b("0."+n),i++):h=new b(r+"."+n.slice(1))}else return l=Rd(b,u+2,S).times(i+""),h=Fo(new b(r+"."+n.slice(1)),u-f).plus(l),b.precision=S,t==null?(gt=!0,ot(h,S)):h;for(s=o=h=Cr(h.minus(Sn),h.plus(Sn),u),c=ot(h.times(h),u),a=3;;){if(o=ot(o.times(c),u),l=s.plus(Cr(o,new b(a),u)),sr(l.d).slice(0,u)===sr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Rd(b,u+2,S).times(i+""))),s=Cr(s,new b(p),u),b.precision=S,t==null?(gt=!0,ot(s,S)):s;s=l,a+=2}}function o0(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Ni(n/ft),e.d=[],r=(n+1)%ft,n<0&&(r+=ft),riu||e.e<-iu))throw Error(Lv+n)}else e.s=0,e.e=0,e.d=[0];return e}function ot(e,t,n){var r,a,i,o,s,l,u,c,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=ft,a=t,u=p[c=0];else{if(c=Math.ceil((r+1)/ft),i=p.length,c>=i)return e;for(u=i=p[c],o=1;i>=10;i/=10)o++;r%=ft,a=r-ft+o}if(n!==void 0&&(i=ha(10,o-a-1),s=u/i%10|0,l=t<0||p[c+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?a>0?u/ha(10,o-a):0:p[c-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return l?(i=kt(e),p.length=1,t=t-i-1,p[0]=ha(10,(ft-t%ft)%ft),e.e=Ni(-t/ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=c,i=1,c--):(p.length=c+1,i=ha(10,ft-r),p[c]=a>0?(u/ha(10,o-a)%ha(10,a)|0)*i:0),l)for(;;)if(c==0){(p[0]+=i)==Mt&&(p[0]=1,++e.e);break}else{if(p[c]+=i,p[c]!=Mt)break;p[c--]=0,i=1}for(r=p.length;p[--r]===0;)p.pop();if(gt&&(e.e>iu||e.e<-iu))throw Error(Lv+kt(e));return e}function lN(e,t){var n,r,a,i,o,s,l,u,c,p,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),gt?ot(t,h):t;if(l=e.d,p=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(c=o<0,c?(n=l,o=-o,s=p.length):(n=p,r=u,s=l.length),a=Math.max(Math.ceil(h/ft),s)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=l.length,s=p.length,c=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+Yr(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Yr(-a-1)+i,n&&(r=n-o)>0&&(i+=Yr(r))):a>=o?(i+=Yr(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Yr(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=Yr(r))),e.s<0?"-"+i:i}function s0(e,t){if(e.length>t)return e.length=t,!0}function uN(e){var t,n,r;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(Ea+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 o0(o,i.toString())}else if(typeof i!="string")throw Error(Ea+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WX.test(i))o0(o,i);else throw Error(Ea+i)}if(a.prototype=be,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=uN,a.config=a.set=VX,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ea+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ea+n+": "+r);return this}var Mv=uN(HX);Sn=new Mv(1);const nt=Mv;function YX(e){return QX(e)||ZX(e)||XX(e)||KX()}function KX(){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 XX(e,t){if(e){if(typeof e=="string")return Fb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fb(e,t)}}function ZX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QX(e){if(Array.isArray(e))return Fb(e)}function Fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,a):e(t-o,l0(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function f7(e){if(Array.isArray(e))return e}function hN(e){var t=Bo(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function gN(e,t,n){if(e.lte(0))return new nt(0);var r=dc.getDigitCount(e.toNumber()),a=new nt(10).pow(r),i=e.div(a),o=r!==1?.05:.1,s=new nt(Math.ceil(i.div(o).toNumber())).add(n).mul(o),l=s.mul(a);return t?l:new nt(Math.ceil(l))}function h7(e,t,n){var r=1,a=new nt(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new nt(10).pow(dc.getDigitCount(e)-1),a=new nt(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new nt(Math.floor(e)))}else e===0?a=new nt(Math.floor((t-1)/2)):n||(a=new nt(Math.floor(e)));var o=Math.floor((t-1)/2),s=n7(t7(function(l){return a.add(new nt(l-o).mul(r)).toNumber()}),Bb);return s(0,t)}function mN(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new nt(0),tickMin:new nt(0),tickMax:new nt(0)};var i=gN(new nt(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new nt(0):(o=new nt(e).add(t).div(2),o=o.sub(new nt(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new nt(t).sub(o).div(i).toNumber()),u=s+l+1;return u>n?mN(e,t,n,r,a+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:i,tickMin:o.sub(new nt(s).mul(i)),tickMax:o.add(new nt(l).mul(i))})}function g7(e){var t=Bo(e,2),n=t[0],r=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=hN([n,r]),l=Bo(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var p=c===1/0?[u].concat(zb(Bb(0,a-1).map(function(){return 1/0}))):[].concat(zb(Bb(0,a-1).map(function(){return-1/0})),[c]);return n>r?Ub(p):p}if(u===c)return h7(u,a,i);var f=mN(u,c,o,i),h=f.step,m=f.tickMin,b=f.tickMax,S=dc.rangeStep(m,b.add(new nt(.1).mul(h)),h);return n>r?Ub(S):S}function m7(e,t){var n=Bo(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=hN([r,a]),s=Bo(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,a];if(l===u)return[l];var c=Math.max(t,2),p=gN(new nt(u).sub(l).div(c-1),i,0),f=[].concat(zb(dc.rangeStep(new nt(l),new nt(u).sub(new nt(.99).mul(p)),p)),[u]);return r>a?Ub(f):f}var b7=pN(g7),y7=pN(m7),v7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A7(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _s(e){var t=e.offset,n=e.layout,r=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=T7(e,v7),c=He(u),p=i.map(function(f){var h=o(f,a),m=h.x,b=h.y,S=h.value,T=h.errorVal;if(!T)return null;var _=[],x,A;if(Array.isArray(T)){var E=S7(T,2);x=E[0],A=E[1]}else x=A=T;if(n==="vertical"){var v=s.scale,O=b+t,R=O+r,C=O-r,$=v(S-x),N=v(S+A);_.push({x1:N,y1:R,x2:N,y2:C}),_.push({x1:$,y1:O,x2:N,y2:O}),_.push({x1:$,y1:R,x2:$,y2:C})}else if(n==="horizontal"){var P=l.scale,z=m+t,V=z-r,G=z+r,K=P(S-x),X=P(S+A);_.push({x1:V,y1:X,x2:G,y2:X}),_.push({x1:z,y1:K,x2:z,y2:X}),_.push({x1:V,y1:K,x2:G,y2:K})}return Y.createElement(yt,ou({className:"recharts-errorBar",key:"bar-".concat(_.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},c),_.map(function(W){return Y.createElement("line",ou({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return Y.createElement(yt,{className:"recharts-errorBars"},p)}_s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};_s.displayName="ErrorBar";function Uo(e){"@babel/helpers - typeof";return Uo=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},Uo(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u0?a[u-1].coordinate:a[s-1].coordinate,p=a[u].coordinate,f=u>=s-1?a[0].coordinate:a[u+1].coordinate,h=void 0;if(Zn(p-c)!==Zn(f-p)){var m=[];if(Zn(f-p)===Zn(l[1]-l[0])){h=f;var b=p+l[1]-l[0];m[0]=Math.min(b,(b+c)/2),m[1]=Math.max(b,(b+c)/2)}else{h=c;var S=f+l[1]-l[0];m[0]=Math.min(p,(S+p)/2),m[1]=Math.max(p,(S+p)/2)}var T=[Math.min(p,(h+p)/2),Math.max(p,(h+p)/2)];if(t>T[0]&&t<=T[1]||t>=m[0]&&t<=m[1]){o=a[u].index;break}}else{var _=Math.min(c,f),x=Math.max(c,f);if(t>(_+p)/2&&t<=(x+p)/2){o=a[u].index;break}}}else for(var A=0;A0&&A(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===s-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){o=r[A].index;break}return o},Pv=function(t){var n=t,r=n.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(r){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},$7=function(t){var n=t.barSize,r=t.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(S&&S.length){var T=S[0].props.barSize,_=S[0].props[b];i[_]||(i[_]=[]),i[_].push({item:S[0],stackList:S.slice(1),barSize:Be(T)?n:T})}}return i},j7=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ai(n,a,0,!0),c,p=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=a/l,m=o.reduce(function(A,E){return A+E.barSize||0},0);m+=(l-1)*u,m>=a&&(m-=(l-1)*u,u=0),m>=a&&h>0&&(f=!0,h*=.9,m=l*h);var b=(a-m)/2>>0,S={offset:b-u,size:0};c=o.reduce(function(A,E){var v={item:E.item,position:{offset:S.offset+S.size+u,size:f?h:E.barSize}},O=[].concat(p0(A),[v]);return S=O[O.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(R){O.push({item:R,position:S})}),O},p)}else{var T=ai(r,a,0,!0);a-2*T-(l-1)*u<=0&&(u=0);var _=(a-2*T-(l-1)*u)/l;_>1&&(_>>=0);var x=s===+s?Math.min(_,s):_;c=o.reduce(function(A,E,v){var O=[].concat(p0(A),[{item:E.item,position:{offset:T+(_+u)*v+(_-x)/2,size:x}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(R){O.push({item:R,position:O[O.length-1].position})}),O},p)}return c},F7=function(t,n,r,a){var i=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=bN({children:i,legendWidth:l});if(u){var c=a||{},p=c.width,f=c.height,h=u.align,m=u.verticalAlign,b=u.layout;if((b==="vertical"||b==="horizontal"&&m==="middle")&&h!=="center"&&fe(t[h]))return Cn(Cn({},t),{},ti({},h,t[h]+(p||0)));if((b==="horizontal"||b==="vertical"&&h==="center")&&m!=="middle"&&fe(t[m]))return Cn(Cn({},t),{},ti({},m,t[m]+(f||0)))}return t},B7=function(t,n,r){return Be(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},yN=function(t,n,r,a,i){var o=n.props.children,s=En(o,_s).filter(function(u){return B7(a,i,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var p=sn(c,r,0),f=Array.isArray(p)?[lc(p),sc(p)]:[p,p],h=l.reduce(function(m,b){var S=sn(c,b,0),T=f[0]-Math.abs(Array.isArray(S)?S[0]:S),_=f[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(T,m[0]),Math.max(_,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},U7=function(t,n,r,a,i){var o=n.map(function(s){return yN(t,s,r,i,a)}).filter(function(s){return!Be(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},vN=function(t,n,r,a,i){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&yN(t,l,u,a)||bo(t,u,r,i)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,p=u.length;c=2?Zn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(p){var f=i?i.indexOf(p):p;return{coordinate:a(f)+u,value:p,offset:u}});return c.filter(function(p){return!ys(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,f){return{coordinate:a(p)+u,value:p,index:f,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+u,value:p,offset:u}}):a.domain().map(function(p,f){return{coordinate:a(p)+u,value:i?i[p]:p,index:f,offset:u}})},Nd=new WeakMap,pl=function(t,n){if(typeof n!="function")return t;Nd.has(t)||Nd.set(t,new WeakMap);var r=Nd.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},z7=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Lo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:tu(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:mo(),realScaleType:"point"}:i==="category"?{scale:Lo(),realScaleType:"band"}:{scale:tu(),realScaleType:"linear"};if(fs(a)){var l="scale".concat(Yu(a));return{scale:(i0[l]||mo)(),realScaleType:i0[l]?l:"point"}}return Fe(a)?{scale:a}:{scale:mo(),realScaleType:"point"}},h0=1e-4,G7=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-h0,o=Math.max(a[0],a[1])+h0,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},q7=function(t,n){if(!t)return null;for(var r=0,a=t.length;ra)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},V7=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r=0?(t[o][r][0]=i,t[o][r][1]=i+s,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},Y7={sign:W7,expand:dV,none:ii,silhouette:pV,wiggle:fV,positive:V7},K7=function(t,n,r){var a=n.map(function(s){return s.props.dataKey}),i=Y7[r],o=cV().keys(a).value(function(s,l){return+sn(s,l,0)}).order(hb).offset(i);return o(t)},X7=function(t,n,r,a,i,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(p,f){var h=f.props,m=h.stackId,b=h.hide;if(b)return p;var S=f.props[r],T=p[S]||{hasStack:!1,stackGroups:{}};if(Nt(m)){var _=T.stackGroups[m]||{numericAxisId:r,cateAxisId:a,items:[]};_.items.push(f),T.hasStack=!0,T.stackGroups[m]=_}else T.stackGroups[vs("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[f]};return Cn(Cn({},p),{},ti({},S,T))},l),c={};return Object.keys(u).reduce(function(p,f){var h=u[f];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(b,S){var T=h.stackGroups[S];return Cn(Cn({},b),{},ti({},S,{numericAxisId:r,cateAxisId:a,items:T.items,stackedData:K7(t,T.items,i)}))},m)}return Cn(Cn({},p),{},ti({},f,h))},c)},Z7=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=b7(u,i,s);return t.domain([lc(c),sc(c)]),{niceTicks:c}}if(i&&a==="number"){var p=t.domain(),f=y7(p,i,s);return{niceTicks:f}}return null},g0=function(t){var n=t.axis,r=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Be(i[n.dataKey])){var l=Nl(r,"value",i[n.dataKey]);if(l)return l.coordinate+a/2}return r[o]?r[o].coordinate+a/2:null}var u=sn(i,Be(s)?n.dataKey:s);return Be(u)?null:n.scale(u)},m0=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+a:null;var l=sn(o,n.dataKey,n.domain[s]);return Be(l)?null:n.scale(l)-i/2+a},Q7=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},J7=function(t,n){var r=t.props.stackId;if(Nt(r)){var a=n[r];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},eZ=function(t){return t.reduce(function(n,r){return[lc(r.concat([n[0]]).filter(fe)),sc(r.concat([n[1]]).filter(fe))]},[1/0,-1/0])},xN=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(u,c){var p=eZ(c.slice(n,r+1));return[Math.min(u[0],p[0]),Math.max(u[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},b0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,y0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hb=function(t,n,r){if(Fe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(fe(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(b0.test(t[0])){var i=+b0.exec(t[0])[1];a[0]=n[0]-i}else Fe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(fe(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(y0.test(t[1])){var o=+y0.exec(t[1])[1];a[1]=n[1]+o}else Fe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},su=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=lv(n,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(u=2*Math.PI-u),{radius:s,angle:aZ(u),angleInRadian:u}},sZ=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},lZ=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},E0=function(t,n){var r=t.x,a=t.y,i=oZ({x:r,y:a},n),o=i.radius,s=i.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var c=sZ(n),p=c.startAngle,f=c.endAngle,h=s,m;if(p<=f){for(;h>f;)h-=360;for(;h=p&&h<=f}else{for(;h>p;)h-=360;for(;h=f&&h<=p}return m?x0(x0({},n),{},{radius:o,angle:lZ(h,n)}):null};function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}var uZ=["offset"];function cZ(e){return hZ(e)||fZ(e)||pZ(e)||dZ()}function dZ(){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 pZ(e,t){if(e){if(typeof e=="string")return Wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wb(e,t)}}function fZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hZ(e){if(Array.isArray(e))return Wb(e)}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t=0?1:-1,x,A;a==="insideStart"?(x=h+_*o,A=b):a==="insideEnd"?(x=m-_*o,A=!b):a==="end"&&(x=m+_*o,A=b),A=T<=0?A:!A;var E=Gt(u,c,S,x),v=Gt(u,c,S,x+(A?1:-1)*359),O="M".concat(E.x,",").concat(E.y,` + height and width.`,G,K,o,l,c,p,n);var X=!Array.isArray(h)&&ab.isElement(h)&&Ir(h.type).endsWith("Chart");return Y.Children.map(h,function(W){return ab.isElement(W)?F.cloneElement(W,sl({width:G,height:K},X?{style:sl({height:"100%",width:"100%",maxHeight:K,maxWidth:G},W.props.style)}:{})):W})},[n,h,l,f,p,c,C,o]);return Y.createElement("div",{id:S?"".concat(S):void 0,className:rt("recharts-responsive-container",T),style:sl(sl({},A),{},{width:o,height:l,minWidth:c,minHeight:p,maxHeight:f}),ref:x},P)}),dv=function(t){return null};dv.displayName="Cell";function No(e){"@babel/helpers - typeof";return No=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},No(e)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rb(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rr.isSsr)return{width:0,height:0};var r=x8(n),a=JSON.stringify({text:t,copyStyle:r});if(Fa.widthCache[a])return Fa.widthCache[a];try{var i=document.getElementById(dw);i||(i=document.createElement("span"),i.setAttribute("id",dw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Rb(Rb({},S8),r);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Fa.widthCache[a]=l,++Fa.cacheCount>v8&&(Fa.cacheCount=0,Fa.widthCache={}),l}catch{return{width:0,height:0}}},E8=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Vl(e,t){return A8(e)||T8(e,t)||_8(e,t)||w8()}function w8(){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 _8(e,t){if(e){if(typeof e=="string")return pw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pw(e,t)}}function pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B8(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function yw(e,t){return q8(e)||G8(e,t)||z8(e,t)||U8()}function U8(){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 z8(e,t){if(e){if(typeof e=="string")return vw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vw(e,t)}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(K,X){var W=X.word,Z=X.width,D=K[K.length-1];if(D&&(a==null||i||D.width+Z+rX.width?K:X})};if(!c)return h;for(var b="…",S=function(G){var K=p.slice(0,G),X=TC({breakAll:u,style:l,children:K+b}).wordsWithComputedWidth,W=f(X),Z=W.length>o||m(W).width>Number(a);return[Z,W]},T=0,_=p.length-1,E=0,A;T<=_&&E<=p.length-1;){var x=Math.floor((T+_)/2),v=x-1,O=S(v),R=yw(O,2),C=R[0],$=R[1],N=S(x),P=yw(N,1),z=P[0];if(!C&&!z&&(T=x+1),C&&z&&(_=x-1),!C&&z){A=$;break}E++}return A||h},Sw=function(t){var n=Be(t)?[]:t.toString().split(_C);return[{words:n}]},W8=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!Rr.isSsr){var l,u,c=TC({breakAll:o,children:a,style:i});if(c){var p=c.wordsWithComputedWidth,f=c.spaceWidth;l=p,u=f}else return Sw(a);return H8({breakAll:o,children:a,maxLines:s,style:i},l,u,n,r)}return Sw(a)},xw="#808080",Yl=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,p=c===void 0?!1:c,f=t.textAnchor,h=f===void 0?"start":f,m=t.verticalAnchor,b=m===void 0?"end":m,S=t.fill,T=S===void 0?xw:S,_=bw(t,j8),E=F.useMemo(function(){return W8({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,v=_.angle,O=_.className,R=_.breakAll,C=bw(_,F8);if(!Nt(r)||!Nt(i))return null;var $=r+(fe(A)?A:0),N=i+(fe(x)?x:0),P;switch(b){case"start":P=Ed("calc(".concat(u,")"));break;case"middle":P=Ed("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=Ed("calc(".concat(E.length-1," * -").concat(s,")"));break}var z=[];if(p){var V=E[0].width,G=_.width;z.push("scale(".concat((fe(G)?G/V:1)/V,")"))}return v&&z.push("rotate(".concat(v,", ").concat($,", ").concat(N,")")),z.length&&(C.transform=z.join(" ")),Y.createElement("text",Cb({},He(C,!0),{x:$,y:N,className:rt("recharts-text",O),textAnchor:h,fill:T.includes("url")?xw:T}),E.map(function(K,X){var W=K.words.join(R?"":" ");return Y.createElement("tspan",{x:$,dy:X===0?P:s,key:W},W)}))};function Qr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function V8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pv(e){let t,n,r;e.length!==2?(t=Qr,n=(s,l)=>Qr(e(s),l),r=(s,l)=>e(s)-l):(t=e===Qr||e===V8?e:Y8,n=e,r=e);function a(s,l,u=0,c=s.length){if(u>>1;n(s[p],l)<0?u=p+1:c=p}while(u>>1;n(s[p],l)<=0?u=p+1:c=p}while(uu&&r(s[p-1],l)>-r(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function Y8(){return 0}function AC(e){return e===null?NaN:+e}function*K8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const X8=pv(Qr),Z8=X8.right;pv(AC).center;const Ss=Z8;class Ew extends Map{constructor(t,n=e9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ww(this,t))}has(t){return super.has(ww(this,t))}set(t,n){return super.set(Q8(this,t),n)}delete(t){return super.delete(J8(this,t))}}function ww({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Q8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function J8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t9(e=Qr){if(e===Qr)return kC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function kC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const n9=Math.sqrt(50),r9=Math.sqrt(10),a9=Math.sqrt(2);function Kl(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=n9?10:i>=r9?5:i>=a9?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Tw(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function OC(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?kC:t9(a);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,c=Math.log(l),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(l-p)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*p/l+f)),m=Math.min(r,Math.floor(t+(l-u)*p/l+f));OC(e,t,h,m,a)}const i=e[t];let o=n,s=r;for(Ki(e,n,t),a(e[r],i)>0&&Ki(e,n,r);o0;)--s}a(e[n],i)===0?Ki(e,n,s):(++s,Ki(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ki(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function i9(e,t,n){if(e=Float64Array.from(K8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Tw(e);if(t>=1)return _w(e);var r,a=(r-1)*t,i=Math.floor(a),o=_w(OC(e,i).subarray(0,i+1)),s=Tw(e.subarray(i+1));return o+(s-o)*(a-i)}}function o9(e,t,n=AC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function s9(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ul(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ul(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=u9.exec(e))?new pn(t[1],t[2],t[3],1):(t=c9.exec(e))?new pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d9.exec(e))?ul(t[1],t[2],t[3],t[4]):(t=p9.exec(e))?ul(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,1):(t=h9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,t[4]):Aw.hasOwnProperty(e)?Iw(Aw[e]):e==="transparent"?new pn(NaN,NaN,NaN,0):null}function Iw(e){return new pn(e>>16&255,e>>8&255,e&255,1)}function ul(e,t,n,r){return r<=0&&(e=t=n=NaN),new pn(e,t,n,r)}function b9(e){return e instanceof xs||(e=$o(e)),e?(e=e.rgb(),new pn(e.r,e.g,e.b,e.opacity)):new pn}function Pb(e,t,n,r){return arguments.length===1?b9(e):new pn(e,t,n,r??1)}function pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hv(pn,Pb,RC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pn(xa(this.r),xa(this.g),xa(this.b),Zl(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:Rw,formatHex:Rw,formatHex8:y9,formatRgb:Cw,toString:Cw}));function Rw(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}`}function y9(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}${ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cw(){const e=Zl(this.opacity);return`${e===1?"rgb(":"rgba("}${xa(this.r)}, ${xa(this.g)}, ${xa(this.b)}${e===1?")":`, ${e})`}`}function Zl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ya(e){return e=xa(e),(e<16?"0":"")+e.toString(16)}function Nw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function CC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=$o(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n0&&l<1?0:o,new Yn(o,s,l,e.opacity)}function v9(e,t,n,r){return arguments.length===1?CC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hv(Yn,v9,RC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new Yn(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new pn(wd(e>=240?e-240:e+120,a,r),wd(e,a,r),wd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Yn(Dw(this.h),cl(this.s),cl(this.l),Zl(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=Zl(this.opacity);return`${e===1?"hsl(":"hsla("}${Dw(this.h)}, ${cl(this.s)*100}%, ${cl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dw(e){return e=(e||0)%360,e<0?e+360:e}function cl(e){return Math.max(0,Math.min(1,e||0))}function wd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gv=e=>()=>e;function S9(e,t){return function(n){return e+n*t}}function x9(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function E9(e){return(e=+e)==1?NC:function(t,n){return n-t?x9(t,n,e):gv(isNaN(t)?n:t)}}function NC(e,t){var n=t-e;return n?S9(e,n):gv(isNaN(e)?t:e)}const Lw=function e(t){var n=E9(t);function r(a,i){var o=n((a=Pb(a)).r,(i=Pb(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=NC(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function w9(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:Ql(r,a)})),n=_d.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function L9(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?M9:L9,l=u=null,p}function p(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return p.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ql)))(f)))},p.domain=function(f){return arguments.length?(e=Array.from(f,Jl),c()):e.slice()},p.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},p.rangeRound=function(f){return t=Array.from(f),n=mv,c()},p.clamp=function(f){return arguments.length?(o=f?!0:on,c()):o!==on},p.interpolate=function(f){return arguments.length?(n=f,c()):n},p.unknown=function(f){return arguments.length?(i=f,p):i},function(f,h){return r=f,a=h,c()}}function bv(){return tc()(on,on)}function P9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pi(e){return e=eu(Math.abs(e)),e?e[1]:NaN}function $9(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function j9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var F9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jo(e){if(!(t=F9.exec(e)))throw new Error("invalid format: "+e);var t;return new yv({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]})}jo.prototype=yv.prototype;function yv(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+""}yv.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 B9(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var DC;function U9(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(DC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+eu(e,Math.max(0,t+i-1))[0]}function Pw(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const $w={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:P9,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)=>Pw(e*100,t),r:Pw,s:U9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jw(e){return e}var Fw=Array.prototype.map,Bw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function z9(e){var t=e.grouping===void 0||e.thousands===void 0?jw:$9(Fw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?jw:j9(Fw.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 u(p){p=jo(p);var f=p.fill,h=p.align,m=p.sign,b=p.symbol,S=p.zero,T=p.width,_=p.comma,E=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):$w[x]||(E===void 0&&(E=12),A=!0,x="g"),(S||f==="0"&&h==="=")&&(S=!0,f="0",h="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O=b==="$"?r:/[%p]/.test(x)?o:"",R=$w[x],C=/[defgprs%]/.test(x);E=E===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function $(N){var P=v,z=O,V,G,K;if(x==="c")z=R(N)+z,N="";else{N=+N;var X=N<0||1/N<0;if(N=isNaN(N)?l:R(Math.abs(N),E),A&&(N=B9(N)),X&&+N==0&&m!=="+"&&(X=!1),P=(X?m==="("?m:s:m==="-"||m==="("?"":m)+P,z=(x==="s"?Bw[8+DC/3]:"")+z+(X&&m==="("?")":""),C){for(V=-1,G=N.length;++VK||K>57){z=(K===46?a+N.slice(V+1):N.slice(V))+z,N=N.slice(0,V);break}}}_&&!S&&(N=t(N,1/0));var W=P.length+N.length+z.length,Z=W>1)+P+N+z+Z.slice(W);break;default:N=Z+P+N+z;break}return i(N)}return $.toString=function(){return p+""},$}function c(p,f){var h=u((p=jo(p),p.type="f",p)),m=Math.max(-8,Math.min(8,Math.floor(pi(f)/3)))*3,b=Math.pow(10,-m),S=Bw[8+m/3];return function(T){return h(b*T)+S}}return{format:u,formatPrefix:c}}var dl,vv,LC;G9({thousands:",",grouping:[3],currency:["$",""]});function G9(e){return dl=z9(e),vv=dl.format,LC=dl.formatPrefix,dl}function q9(e){return Math.max(0,-pi(Math.abs(e)))}function H9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pi(t)/3)))*3-pi(Math.abs(e)))}function W9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pi(t)-pi(e))+1}function MC(e,t,n,r){var a=Lb(e,t,n),i;switch(r=jo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=H9(a,o))&&(r.precision=i),LC(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=W9(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=q9(a))&&(r.precision=i-(r.type==="%")*2);break}}return vv(r)}function na(e){var t=e.domain;return e.ticks=function(n){var r=t();return Nb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return MC(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s0;){if(u=Db(o,s,n),u===l)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function tu(){var e=bv();return e.copy=function(){return Es(e,tu())},$n.apply(e,arguments),na(e)}function PC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Jl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return PC(e).unknown(t)},e=arguments.length?Array.from(e,Jl):[0,1],na(n)}function $C(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Z9(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 Gw(e){return(t,n)=>-e(-t,n)}function Sv(e){const t=e(Uw,zw),n=t.domain;let r=10,a,i;function o(){return a=Z9(r),i=X9(r),n()[0]<0?(a=Gw(a),i=Gw(i),e(V9,Y9)):e(Uw,zw),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const p=c0){for(;f<=h;++f)for(m=1;mc)break;T.push(b)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(b=f>0?m/i(-f):m*i(f),!(bc)break;T.push(b)}T.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=jo(l)).precision==null&&(l.trim=!0),l=vv(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let p=c/i(Math.round(a(c)));return p*rn($C(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function jC(){const e=Sv(tc()).domain([1,10]);return e.copy=()=>Es(e,jC()).base(e.base()),$n.apply(e,arguments),e}function qw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xv(e){var t=1,n=e(qw(t),Hw(t));return n.constant=function(r){return arguments.length?e(qw(t=+r),Hw(t)):t},na(n)}function FC(){var e=xv(tc());return e.copy=function(){return Es(e,FC()).constant(e.constant())},$n.apply(e,arguments)}function Ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Q9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function J9(e){return e<0?-e*e:e*e}function Ev(e){var t=e(on,on),n=1;function r(){return n===1?e(on,on):n===.5?e(Q9,J9):e(Ww(n),Ww(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},na(t)}function wv(){var e=Ev(tc());return e.copy=function(){return Es(e,wv()).exponent(e.exponent())},$n.apply(e,arguments),e}function eK(){return wv.apply(null,arguments).exponent(.5)}function Vw(e){return Math.sign(e)*e*e}function tK(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function BC(){var e=bv(),t=[0,1],n=!1,r;function a(i){var o=tK(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(Vw(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,Jl)).map(Vw)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return BC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(a,arguments),na(a)}function UC(){var e=[],t=[],n=[],r;function a(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return zC().domain([e,t]).range(a).unknown(i)},$n.apply(na(o),arguments)}function GC(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Ss(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=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?(n=i,a):n},a.copy=function(){return GC().domain(e).range(t).unknown(n)},$n.apply(a,arguments)}const Td=new Date,Ad=new Date;function Dt(e,t,n,r){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 u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uDt(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););}),n&&(a.count=(i,o)=>(Td.setTime(+i),Ad.setTime(+o),e(Td),e(Ad),Math.floor(n(Td,Ad))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const nu=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nu);nu.range;const kr=1e3,Nn=kr*60,Or=Nn*60,Dr=Or*24,_v=Dr*7,Yw=Dr*30,kd=Dr*365,va=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());va.range;const Tv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());Tv.range;const Av=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());Av.range;const kv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getHours());kv.range;const Ov=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCHours());Ov.range;const ws=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Dr,e=>e.getDate()-1);ws.range;const nc=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>e.getUTCDate()-1);nc.range;const qC=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>Math.floor(e/Dr));qC.range;function Oa(e){return Dt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/_v)}const rc=Oa(0),ru=Oa(1),nK=Oa(2),rK=Oa(3),fi=Oa(4),aK=Oa(5),iK=Oa(6);rc.range;ru.range;nK.range;rK.range;fi.range;aK.range;iK.range;function Ia(e){return Dt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/_v)}const ac=Ia(0),au=Ia(1),oK=Ia(2),sK=Ia(3),hi=Ia(4),lK=Ia(5),uK=Ia(6);ac.range;au.range;oK.range;sK.range;hi.range;lK.range;uK.range;const Iv=Dt(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());Iv.range;const Rv=Dt(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());Rv.range;const Lr=Dt(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());Lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lr.range;const Mr=Dt(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());Mr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mr.range;function HC(e,t,n,r,a,i){const o=[[va,1,kr],[va,5,5*kr],[va,15,15*kr],[va,30,30*kr],[i,1,Nn],[i,5,5*Nn],[i,15,15*Nn],[i,30,30*Nn],[a,1,Or],[a,3,3*Or],[a,6,6*Or],[a,12,12*Or],[r,1,Dr],[r,2,2*Dr],[n,1,_v],[t,1,Yw],[t,3,3*Yw],[e,1,kd]];function s(u,c,p){const f=cS).right(o,f);if(h===o.length)return e.every(Lb(u/kd,c/kd,p));if(h===0)return nu.every(Math.max(Lb(u,c,p),1));const[m,b]=o[f/o[h-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(me=Id(Xi(ee.y,0,1)),ve=me.getUTCDay(),me=ve>4||ve===0?au.ceil(me):au(me),me=nc.offset(me,(ee.V-1)*7),ee.y=me.getUTCFullYear(),ee.m=me.getUTCMonth(),ee.d=me.getUTCDate()+(ee.w+6)%7):(me=Od(Xi(ee.y,0,1)),ve=me.getDay(),me=ve>4||ve===0?ru.ceil(me):ru(me),me=ws.offset(me,(ee.V-1)*7),ee.y=me.getFullYear(),ee.m=me.getMonth(),ee.d=me.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ve="Z"in ee?Id(Xi(ee.y,0,1)).getUTCDay():Od(Xi(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(ve+5)%7:ee.w+ee.U*7-(ve+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Id(ee)):Od(ee)}}function R(ae,de,ce,ee){for(var _e=0,me=de.length,ve=ce.length,Ue,at;_e=ve)return-1;if(Ue=de.charCodeAt(_e++),Ue===37){if(Ue=de.charAt(_e++),at=x[Ue in Kw?de.charAt(_e++):Ue],!at||(ee=at(ae,ce,ee))<0)return-1}else if(Ue!=ce.charCodeAt(ee++))return-1}return ee}function C(ae,de,ce){var ee=u.exec(de.slice(ce));return ee?(ae.p=c.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function $(ae,de,ce){var ee=h.exec(de.slice(ce));return ee?(ae.w=m.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function N(ae,de,ce){var ee=p.exec(de.slice(ce));return ee?(ae.w=f.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function P(ae,de,ce){var ee=T.exec(de.slice(ce));return ee?(ae.m=_.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function z(ae,de,ce){var ee=b.exec(de.slice(ce));return ee?(ae.m=S.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function V(ae,de,ce){return R(ae,t,de,ce)}function G(ae,de,ce){return R(ae,n,de,ce)}function K(ae,de,ce){return R(ae,r,de,ce)}function X(ae){return o[ae.getDay()]}function W(ae){return i[ae.getDay()]}function Z(ae){return l[ae.getMonth()]}function D(ae){return s[ae.getMonth()]}function ie(ae){return a[+(ae.getHours()>=12)]}function ne(ae){return 1+~~(ae.getMonth()/3)}function M(ae){return o[ae.getUTCDay()]}function ye(ae){return i[ae.getUTCDay()]}function re(ae){return l[ae.getUTCMonth()]}function Se(ae){return s[ae.getUTCMonth()]}function je(ae){return a[+(ae.getUTCHours()>=12)]}function we(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=v(ae+="",E);return de.toString=function(){return ae},de},parse:function(ae){var de=O(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=v(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=O(ae+="",!0);return de.toString=function(){return ae},de}}}var Kw={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,gK=/^%/,mK=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function yK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wK(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _K(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function TK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function AK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function OK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function RK(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CK(e,t,n){var r=gK.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function e0(e,t){return Ye(e.getDate(),t,2)}function LK(e,t){return Ye(e.getHours(),t,2)}function MK(e,t){return Ye(e.getHours()%12||12,t,2)}function PK(e,t){return Ye(1+ws.count(Lr(e),e),t,3)}function WC(e,t){return Ye(e.getMilliseconds(),t,3)}function $K(e,t){return WC(e,t)+"000"}function jK(e,t){return Ye(e.getMonth()+1,t,2)}function FK(e,t){return Ye(e.getMinutes(),t,2)}function BK(e,t){return Ye(e.getSeconds(),t,2)}function UK(e){var t=e.getDay();return t===0?7:t}function zK(e,t){return Ye(rc.count(Lr(e)-1,e),t,2)}function VC(e){var t=e.getDay();return t>=4||t===0?fi(e):fi.ceil(e)}function GK(e,t){return e=VC(e),Ye(fi.count(Lr(e),e)+(Lr(e).getDay()===4),t,2)}function qK(e){return e.getDay()}function HK(e,t){return Ye(ru.count(Lr(e)-1,e),t,2)}function WK(e,t){return Ye(e.getFullYear()%100,t,2)}function VK(e,t){return e=VC(e),Ye(e.getFullYear()%100,t,2)}function YK(e,t){return Ye(e.getFullYear()%1e4,t,4)}function KK(e,t){var n=e.getDay();return e=n>=4||n===0?fi(e):fi.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function XK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function t0(e,t){return Ye(e.getUTCDate(),t,2)}function ZK(e,t){return Ye(e.getUTCHours(),t,2)}function QK(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function JK(e,t){return Ye(1+nc.count(Mr(e),e),t,3)}function YC(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function eX(e,t){return YC(e,t)+"000"}function tX(e,t){return Ye(e.getUTCMonth()+1,t,2)}function nX(e,t){return Ye(e.getUTCMinutes(),t,2)}function rX(e,t){return Ye(e.getUTCSeconds(),t,2)}function aX(e){var t=e.getUTCDay();return t===0?7:t}function iX(e,t){return Ye(ac.count(Mr(e)-1,e),t,2)}function KC(e){var t=e.getUTCDay();return t>=4||t===0?hi(e):hi.ceil(e)}function oX(e,t){return e=KC(e),Ye(hi.count(Mr(e),e)+(Mr(e).getUTCDay()===4),t,2)}function sX(e){return e.getUTCDay()}function lX(e,t){return Ye(au.count(Mr(e)-1,e),t,2)}function uX(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function cX(e,t){return e=KC(e),Ye(e.getUTCFullYear()%100,t,2)}function dX(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function pX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hi(e):hi.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function fX(){return"+0000"}function n0(){return"%"}function r0(e){return+e}function a0(e){return Math.floor(+e/1e3)}var Ba,XC,ZC;hX({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 hX(e){return Ba=hK(e),XC=Ba.format,Ba.parse,ZC=Ba.utcFormat,Ba.utcParse,Ba}function gX(e){return new Date(e)}function mX(e){return e instanceof Date?+e:+new Date(+e)}function Cv(e,t,n,r,a,i,o,s,l,u){var c=bv(),p=c.invert,f=c.domain,h=u(".%L"),m=u(":%S"),b=u("%I:%M"),S=u("%I %p"),T=u("%a %d"),_=u("%b %d"),E=u("%B"),A=u("%Y");function x(v){return(l(v)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>i9(e,i/r))},n.copy=function(){return tN(t).domain(e)},$r.apply(n,arguments)}function oc(){var e=0,t=.5,n=1,r=1,a,i,o,s,l,u=on,c,p=!1,f;function h(b){return isNaN(b=+b)?f:(b=.5+((b=+c(b))-i)*(r*bt}var _X=wX,TX=iN,AX=_X,kX=hs;function OX(e){return e&&e.length?TX(e,kX,AX):void 0}var IX=OX;const sc=St(IX);function RX(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return Cr(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ot(Cr(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return kt(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(Sn)?new r(0):(gt=!1,t=Cr(Fo(n,i),Fo(e,i),i),gt=!0,ot(t,a))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uN(t,e):sN(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ln+"NaN");return n.s?(gt=!1,t=Cr(n,e,0,1).times(e),gt=!0,n.minus(t)):ot(new r(n),a)};be.naturalExponential=be.exp=function(){return lN(this)};be.naturalLogarithm=be.ln=function(){return Fo(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sN(t,e):uN(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ea+e);if(t=kt(a)+1,r=a.d.length-1,n=r*ft+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ln+"NaN")}for(e=kt(s),gt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=sr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ni((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),r=new l(t)):r=new l(a.toString()),n=l.precision,a=o=n+3;;)if(i=r,r=i.plus(Cr(s,i,o+2)).times(.5),sr(i.d).slice(0,o)===(t=sr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ot(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;o+=4}return gt=!0,ot(r,n)};be.times=be.mul=function(e){var t,n,r,a,i,o,s,l,u,c=this,p=c.constructor,f=c.d,h=(e=new p(e)).d;if(!c.s||!e.s)return new p(0);for(e.s*=c.s,n=c.e+e.e,l=f.length,u=h.length,l=0;){for(t=0,a=l+r;a>r;)s=i[a]+h[r]*f[a-r-1]+t,i[a--]=s%Mt|0,t=s/Mt|0;i[a]=(i[a]+t)%Mt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,gt?ot(e,p.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fr(e,0,Ci),t===void 0?t=r.rounding:fr(t,0,8),ot(n,e+kt(n)+1,t))};be.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_a(r,!0):(fr(e,0,Ci),t===void 0?t=a.rounding:fr(t,0,8),r=ot(new a(r),e+1,t),n=_a(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?_a(a):(fr(e,0,Ci),t===void 0?t=i.rounding:fr(t,0,8),r=ot(new i(a),e+kt(a)+1,t),n=_a(r.abs(),!1,e+kt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return ot(new t(e),kt(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ln+"Infinity");return s}if(s.eq(Sn))return s;if(r=l.precision,e.eq(Sn))return ot(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=s.s,o){if((n=c<0?-c:c)<=oN){for(a=new l(Sn),t=Math.ceil(r/ft+4),gt=!1;n%2&&(a=a.times(s),s0(a.d,t)),n=Ni(n/2),n!==0;)s=s.times(s),s0(s.d,t);return gt=!0,e.s<0?new l(Sn).div(a):ot(a,r)}}else if(i<0)throw Error(Ln+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,gt=!1,a=e.times(Fo(s,r+u)),gt=!0,a=lN(a),a.s=i,a};be.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=kt(a),r=_a(a,n<=i.toExpNeg||n>=i.toExpPos)):(fr(e,1,Ci),t===void 0?t=i.rounding:fr(t,0,8),a=ot(new i(a),e,t),n=kt(a),r=_a(a,e<=n||n<=i.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(fr(e,1,Ci),t===void 0?t=r.rounding:fr(t,0,8)),ot(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=kt(e),n=e.constructor;return _a(e,t<=n.toExpNeg||t>=n.toExpPos)};function sN(e,t){var n,r,a,i,o,s,l,u,c=e.constructor,p=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),gt?ot(t,p):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,a=o,s=l.length),o=Math.ceil(p/ft),s=o>s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Mt|0,l[i]%=Mt;for(n&&(l.unshift(n),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,gt?ot(t,p):t}function fr(e,t,n){if(e!==~~e||en)throw Error(Ea+e)}function sr(e){var t,n,r,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 n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]1;)r.shift()}return function(r,a,i,o){var s,l,u,c,p,f,h,m,b,S,T,_,E,A,x,v,O,R,C=r.constructor,$=r.s==a.s?1:-1,N=r.d,P=a.d;if(!r.s)return new C(r);if(!a.s)throw Error(Ln+"Division by zero");for(l=r.e-a.e,O=P.length,x=N.length,h=new C($),m=h.d=[],u=0;P[u]==(N[u]||0);)++u;if(P[u]>(N[u]||0)&&--l,i==null?_=i=C.precision:o?_=i+(kt(r)-kt(a))+1:_=i,_<0)return new C(0);if(_=_/ft+2|0,u=0,O==1)for(c=0,P=P[0],_++;(u1&&(P=e(P,c),N=e(N,c),O=P.length,x=N.length),A=O,b=N.slice(0,O),S=b.length;S=Mt/2&&++v;do c=0,s=t(P,b,O,S),s<0?(T=b[0],O!=S&&(T=T*Mt+(b[1]||0)),c=T/v|0,c>1?(c>=Mt&&(c=Mt-1),p=e(P,c),f=p.length,S=b.length,s=t(p,b,f,S),s==1&&(c--,n(p,O16)throw Error(Lv+kt(e));if(!e.s)return new c(Sn);for(t==null?(gt=!1,s=p):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(ha(2,u))/Math.LN10*2+5|0,s+=r,n=a=i=new c(Sn),c.precision=s;;){if(a=ot(a.times(e),s),n=n.times(++l),o=i.plus(Cr(a,n,s)),sr(o.d).slice(0,s)===sr(i.d).slice(0,s)){for(;u--;)i=ot(i.times(i),s);return c.precision=p,t==null?(gt=!0,ot(i,p)):i}i=o}}function kt(e){for(var t=e.e*ft,n=e.d[0];n>=10;n/=10)t++;return t}function Rd(e,t,n){if(t>e.LN10.sd())throw gt=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return ot(new e(e.LN10),t)}function Yr(e){for(var t="";e--;)t+="0";return t}function Fo(e,t){var n,r,a,i,o,s,l,u,c,p=1,f=10,h=e,m=h.d,b=h.constructor,S=b.precision;if(h.s<1)throw Error(Ln+(h.s?"NaN":"-Infinity"));if(h.eq(Sn))return new b(0);if(t==null?(gt=!1,u=S):u=t,h.eq(10))return t==null&&(gt=!0),Rd(b,u);if(u+=f,b.precision=u,n=sr(m),r=n.charAt(0),i=kt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=sr(h.d),r=n.charAt(0),p++;i=kt(h),r>1?(h=new b("0."+n),i++):h=new b(r+"."+n.slice(1))}else return l=Rd(b,u+2,S).times(i+""),h=Fo(new b(r+"."+n.slice(1)),u-f).plus(l),b.precision=S,t==null?(gt=!0,ot(h,S)):h;for(s=o=h=Cr(h.minus(Sn),h.plus(Sn),u),c=ot(h.times(h),u),a=3;;){if(o=ot(o.times(c),u),l=s.plus(Cr(o,new b(a),u)),sr(l.d).slice(0,u)===sr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Rd(b,u+2,S).times(i+""))),s=Cr(s,new b(p),u),b.precision=S,t==null?(gt=!0,ot(s,S)):s;s=l,a+=2}}function o0(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Ni(n/ft),e.d=[],r=(n+1)%ft,n<0&&(r+=ft),riu||e.e<-iu))throw Error(Lv+n)}else e.s=0,e.e=0,e.d=[0];return e}function ot(e,t,n){var r,a,i,o,s,l,u,c,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=ft,a=t,u=p[c=0];else{if(c=Math.ceil((r+1)/ft),i=p.length,c>=i)return e;for(u=i=p[c],o=1;i>=10;i/=10)o++;r%=ft,a=r-ft+o}if(n!==void 0&&(i=ha(10,o-a-1),s=u/i%10|0,l=t<0||p[c+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?a>0?u/ha(10,o-a):0:p[c-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return l?(i=kt(e),p.length=1,t=t-i-1,p[0]=ha(10,(ft-t%ft)%ft),e.e=Ni(-t/ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=c,i=1,c--):(p.length=c+1,i=ha(10,ft-r),p[c]=a>0?(u/ha(10,o-a)%ha(10,a)|0)*i:0),l)for(;;)if(c==0){(p[0]+=i)==Mt&&(p[0]=1,++e.e);break}else{if(p[c]+=i,p[c]!=Mt)break;p[c--]=0,i=1}for(r=p.length;p[--r]===0;)p.pop();if(gt&&(e.e>iu||e.e<-iu))throw Error(Lv+kt(e));return e}function uN(e,t){var n,r,a,i,o,s,l,u,c,p,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),gt?ot(t,h):t;if(l=e.d,p=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(c=o<0,c?(n=l,o=-o,s=p.length):(n=p,r=u,s=l.length),a=Math.max(Math.ceil(h/ft),s)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=l.length,s=p.length,c=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+Yr(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Yr(-a-1)+i,n&&(r=n-o)>0&&(i+=Yr(r))):a>=o?(i+=Yr(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Yr(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=Yr(r))),e.s<0?"-"+i:i}function s0(e,t){if(e.length>t)return e.length=t,!0}function cN(e){var t,n,r;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(Ea+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 o0(o,i.toString())}else if(typeof i!="string")throw Error(Ea+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WX.test(i))o0(o,i);else throw Error(Ea+i)}if(a.prototype=be,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=cN,a.config=a.set=VX,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ea+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ea+n+": "+r);return this}var Mv=cN(HX);Sn=new Mv(1);const nt=Mv;function YX(e){return QX(e)||ZX(e)||XX(e)||KX()}function KX(){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 XX(e,t){if(e){if(typeof e=="string")return Fb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fb(e,t)}}function ZX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QX(e){if(Array.isArray(e))return Fb(e)}function Fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,a):e(t-o,l0(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function f7(e){if(Array.isArray(e))return e}function gN(e){var t=Bo(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function mN(e,t,n){if(e.lte(0))return new nt(0);var r=dc.getDigitCount(e.toNumber()),a=new nt(10).pow(r),i=e.div(a),o=r!==1?.05:.1,s=new nt(Math.ceil(i.div(o).toNumber())).add(n).mul(o),l=s.mul(a);return t?l:new nt(Math.ceil(l))}function h7(e,t,n){var r=1,a=new nt(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new nt(10).pow(dc.getDigitCount(e)-1),a=new nt(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new nt(Math.floor(e)))}else e===0?a=new nt(Math.floor((t-1)/2)):n||(a=new nt(Math.floor(e)));var o=Math.floor((t-1)/2),s=n7(t7(function(l){return a.add(new nt(l-o).mul(r)).toNumber()}),Bb);return s(0,t)}function bN(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new nt(0),tickMin:new nt(0),tickMax:new nt(0)};var i=mN(new nt(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new nt(0):(o=new nt(e).add(t).div(2),o=o.sub(new nt(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new nt(t).sub(o).div(i).toNumber()),u=s+l+1;return u>n?bN(e,t,n,r,a+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:i,tickMin:o.sub(new nt(s).mul(i)),tickMax:o.add(new nt(l).mul(i))})}function g7(e){var t=Bo(e,2),n=t[0],r=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=gN([n,r]),l=Bo(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var p=c===1/0?[u].concat(zb(Bb(0,a-1).map(function(){return 1/0}))):[].concat(zb(Bb(0,a-1).map(function(){return-1/0})),[c]);return n>r?Ub(p):p}if(u===c)return h7(u,a,i);var f=bN(u,c,o,i),h=f.step,m=f.tickMin,b=f.tickMax,S=dc.rangeStep(m,b.add(new nt(.1).mul(h)),h);return n>r?Ub(S):S}function m7(e,t){var n=Bo(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=gN([r,a]),s=Bo(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,a];if(l===u)return[l];var c=Math.max(t,2),p=mN(new nt(u).sub(l).div(c-1),i,0),f=[].concat(zb(dc.rangeStep(new nt(l),new nt(u).sub(new nt(.99).mul(p)),p)),[u]);return r>a?Ub(f):f}var b7=fN(g7),y7=fN(m7),v7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A7(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _s(e){var t=e.offset,n=e.layout,r=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=T7(e,v7),c=He(u),p=i.map(function(f){var h=o(f,a),m=h.x,b=h.y,S=h.value,T=h.errorVal;if(!T)return null;var _=[],E,A;if(Array.isArray(T)){var x=S7(T,2);E=x[0],A=x[1]}else E=A=T;if(n==="vertical"){var v=s.scale,O=b+t,R=O+r,C=O-r,$=v(S-E),N=v(S+A);_.push({x1:N,y1:R,x2:N,y2:C}),_.push({x1:$,y1:O,x2:N,y2:O}),_.push({x1:$,y1:R,x2:$,y2:C})}else if(n==="horizontal"){var P=l.scale,z=m+t,V=z-r,G=z+r,K=P(S-E),X=P(S+A);_.push({x1:V,y1:X,x2:G,y2:X}),_.push({x1:z,y1:K,x2:z,y2:X}),_.push({x1:V,y1:K,x2:G,y2:K})}return Y.createElement(yt,ou({className:"recharts-errorBar",key:"bar-".concat(_.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},c),_.map(function(W){return Y.createElement("line",ou({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return Y.createElement(yt,{className:"recharts-errorBars"},p)}_s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};_s.displayName="ErrorBar";function Uo(e){"@babel/helpers - typeof";return Uo=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},Uo(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u0?a[u-1].coordinate:a[s-1].coordinate,p=a[u].coordinate,f=u>=s-1?a[0].coordinate:a[u+1].coordinate,h=void 0;if(Zn(p-c)!==Zn(f-p)){var m=[];if(Zn(f-p)===Zn(l[1]-l[0])){h=f;var b=p+l[1]-l[0];m[0]=Math.min(b,(b+c)/2),m[1]=Math.max(b,(b+c)/2)}else{h=c;var S=f+l[1]-l[0];m[0]=Math.min(p,(S+p)/2),m[1]=Math.max(p,(S+p)/2)}var T=[Math.min(p,(h+p)/2),Math.max(p,(h+p)/2)];if(t>T[0]&&t<=T[1]||t>=m[0]&&t<=m[1]){o=a[u].index;break}}else{var _=Math.min(c,f),E=Math.max(c,f);if(t>(_+p)/2&&t<=(E+p)/2){o=a[u].index;break}}}else for(var A=0;A0&&A(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===s-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){o=r[A].index;break}return o},Pv=function(t){var n=t,r=n.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(r){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},$7=function(t){var n=t.barSize,r=t.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(S&&S.length){var T=S[0].props.barSize,_=S[0].props[b];i[_]||(i[_]=[]),i[_].push({item:S[0],stackList:S.slice(1),barSize:Be(T)?n:T})}}return i},j7=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ai(n,a,0,!0),c,p=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=a/l,m=o.reduce(function(A,x){return A+x.barSize||0},0);m+=(l-1)*u,m>=a&&(m-=(l-1)*u,u=0),m>=a&&h>0&&(f=!0,h*=.9,m=l*h);var b=(a-m)/2>>0,S={offset:b-u,size:0};c=o.reduce(function(A,x){var v={item:x.item,position:{offset:S.offset+S.size+u,size:f?h:x.barSize}},O=[].concat(p0(A),[v]);return S=O[O.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(R){O.push({item:R,position:S})}),O},p)}else{var T=ai(r,a,0,!0);a-2*T-(l-1)*u<=0&&(u=0);var _=(a-2*T-(l-1)*u)/l;_>1&&(_>>=0);var E=s===+s?Math.min(_,s):_;c=o.reduce(function(A,x,v){var O=[].concat(p0(A),[{item:x.item,position:{offset:T+(_+u)*v+(_-E)/2,size:E}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(R){O.push({item:R,position:O[O.length-1].position})}),O},p)}return c},F7=function(t,n,r,a){var i=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=yN({children:i,legendWidth:l});if(u){var c=a||{},p=c.width,f=c.height,h=u.align,m=u.verticalAlign,b=u.layout;if((b==="vertical"||b==="horizontal"&&m==="middle")&&h!=="center"&&fe(t[h]))return Cn(Cn({},t),{},ti({},h,t[h]+(p||0)));if((b==="horizontal"||b==="vertical"&&h==="center")&&m!=="middle"&&fe(t[m]))return Cn(Cn({},t),{},ti({},m,t[m]+(f||0)))}return t},B7=function(t,n,r){return Be(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},vN=function(t,n,r,a,i){var o=n.props.children,s=En(o,_s).filter(function(u){return B7(a,i,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var p=sn(c,r,0),f=Array.isArray(p)?[lc(p),sc(p)]:[p,p],h=l.reduce(function(m,b){var S=sn(c,b,0),T=f[0]-Math.abs(Array.isArray(S)?S[0]:S),_=f[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(T,m[0]),Math.max(_,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},U7=function(t,n,r,a,i){var o=n.map(function(s){return vN(t,s,r,i,a)}).filter(function(s){return!Be(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},SN=function(t,n,r,a,i){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&vN(t,l,u,a)||bo(t,u,r,i)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,p=u.length;c=2?Zn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(p){var f=i?i.indexOf(p):p;return{coordinate:a(f)+u,value:p,offset:u}});return c.filter(function(p){return!ys(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,f){return{coordinate:a(p)+u,value:p,index:f,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+u,value:p,offset:u}}):a.domain().map(function(p,f){return{coordinate:a(p)+u,value:i?i[p]:p,index:f,offset:u}})},Nd=new WeakMap,pl=function(t,n){if(typeof n!="function")return t;Nd.has(t)||Nd.set(t,new WeakMap);var r=Nd.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},z7=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Lo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:tu(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:mo(),realScaleType:"point"}:i==="category"?{scale:Lo(),realScaleType:"band"}:{scale:tu(),realScaleType:"linear"};if(fs(a)){var l="scale".concat(Yu(a));return{scale:(i0[l]||mo)(),realScaleType:i0[l]?l:"point"}}return Fe(a)?{scale:a}:{scale:mo(),realScaleType:"point"}},h0=1e-4,G7=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-h0,o=Math.max(a[0],a[1])+h0,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},q7=function(t,n){if(!t)return null;for(var r=0,a=t.length;ra)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},V7=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r=0?(t[o][r][0]=i,t[o][r][1]=i+s,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},Y7={sign:W7,expand:dV,none:ii,silhouette:pV,wiggle:fV,positive:V7},K7=function(t,n,r){var a=n.map(function(s){return s.props.dataKey}),i=Y7[r],o=cV().keys(a).value(function(s,l){return+sn(s,l,0)}).order(hb).offset(i);return o(t)},X7=function(t,n,r,a,i,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(p,f){var h=f.props,m=h.stackId,b=h.hide;if(b)return p;var S=f.props[r],T=p[S]||{hasStack:!1,stackGroups:{}};if(Nt(m)){var _=T.stackGroups[m]||{numericAxisId:r,cateAxisId:a,items:[]};_.items.push(f),T.hasStack=!0,T.stackGroups[m]=_}else T.stackGroups[vs("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[f]};return Cn(Cn({},p),{},ti({},S,T))},l),c={};return Object.keys(u).reduce(function(p,f){var h=u[f];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(b,S){var T=h.stackGroups[S];return Cn(Cn({},b),{},ti({},S,{numericAxisId:r,cateAxisId:a,items:T.items,stackedData:K7(t,T.items,i)}))},m)}return Cn(Cn({},p),{},ti({},f,h))},c)},Z7=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=b7(u,i,s);return t.domain([lc(c),sc(c)]),{niceTicks:c}}if(i&&a==="number"){var p=t.domain(),f=y7(p,i,s);return{niceTicks:f}}return null},g0=function(t){var n=t.axis,r=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Be(i[n.dataKey])){var l=Nl(r,"value",i[n.dataKey]);if(l)return l.coordinate+a/2}return r[o]?r[o].coordinate+a/2:null}var u=sn(i,Be(s)?n.dataKey:s);return Be(u)?null:n.scale(u)},m0=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+a:null;var l=sn(o,n.dataKey,n.domain[s]);return Be(l)?null:n.scale(l)-i/2+a},Q7=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},J7=function(t,n){var r=t.props.stackId;if(Nt(r)){var a=n[r];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},eZ=function(t){return t.reduce(function(n,r){return[lc(r.concat([n[0]]).filter(fe)),sc(r.concat([n[1]]).filter(fe))]},[1/0,-1/0])},EN=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(u,c){var p=eZ(c.slice(n,r+1));return[Math.min(u[0],p[0]),Math.max(u[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},b0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,y0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hb=function(t,n,r){if(Fe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(fe(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(b0.test(t[0])){var i=+b0.exec(t[0])[1];a[0]=n[0]-i}else Fe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(fe(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(y0.test(t[1])){var o=+y0.exec(t[1])[1];a[1]=n[1]+o}else Fe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},su=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=lv(n,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(u=2*Math.PI-u),{radius:s,angle:aZ(u),angleInRadian:u}},sZ=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},lZ=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},E0=function(t,n){var r=t.x,a=t.y,i=oZ({x:r,y:a},n),o=i.radius,s=i.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var c=sZ(n),p=c.startAngle,f=c.endAngle,h=s,m;if(p<=f){for(;h>f;)h-=360;for(;h=p&&h<=f}else{for(;h>p;)h-=360;for(;h=f&&h<=p}return m?x0(x0({},n),{},{radius:o,angle:lZ(h,n)}):null};function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}var uZ=["offset"];function cZ(e){return hZ(e)||fZ(e)||pZ(e)||dZ()}function dZ(){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 pZ(e,t){if(e){if(typeof e=="string")return Wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wb(e,t)}}function fZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hZ(e){if(Array.isArray(e))return Wb(e)}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t=0?1:-1,E,A;a==="insideStart"?(E=h+_*o,A=b):a==="insideEnd"?(E=m-_*o,A=!b):a==="end"&&(E=m+_*o,A=b),A=T<=0?A:!A;var x=Gt(u,c,S,E),v=Gt(u,c,S,E+(A?1:-1)*359),O="M".concat(x.x,",").concat(x.y,` A`).concat(S,",").concat(S,",0,1,").concat(A?0:1,`, - `).concat(v.x,",").concat(v.y),R=Be(t.id)?vs("recharts-radial-line-"):t.id;return Y.createElement("text",Ho({},r,{dominantBaseline:"central",className:rt("recharts-radial-bar-label",s)}),Y.createElement("defs",null,Y.createElement("path",{id:R,d:O})),Y.createElement("textPath",{xlinkHref:"#".concat(R)},n))},wZ=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,s=i.cy,l=i.innerRadius,u=i.outerRadius,c=i.startAngle,p=i.endAngle,f=(c+p)/2;if(a==="outside"){var h=Gt(o,s,u+r,f),m=h.x,b=h.y;return{x:m,y:b,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var S=(l+u)/2,T=Gt(o,s,S,f),_=T.x,x=T.y;return{x:_,y:x,textAnchor:"middle",verticalAnchor:"middle"}},_Z=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,s=o.x,l=o.y,u=o.width,c=o.height,p=c>=0?1:-1,f=p*a,h=p>0?"end":"start",m=p>0?"start":"end",b=u>=0?1:-1,S=b*a,T=b>0?"end":"start",_=b>0?"start":"end";if(i==="top"){var x={x:s+u/2,y:l-p*a,textAnchor:"middle",verticalAnchor:h};return Ct(Ct({},x),r?{height:Math.max(l-r.y,0),width:u}:{})}if(i==="bottom"){var A={x:s+u/2,y:l+c+f,textAnchor:"middle",verticalAnchor:m};return Ct(Ct({},A),r?{height:Math.max(r.y+r.height-(l+c),0),width:u}:{})}if(i==="left"){var E={x:s-S,y:l+c/2,textAnchor:T,verticalAnchor:"middle"};return Ct(Ct({},E),r?{width:Math.max(E.x-r.x,0),height:c}:{})}if(i==="right"){var v={x:s+u+S,y:l+c/2,textAnchor:_,verticalAnchor:"middle"};return Ct(Ct({},v),r?{width:Math.max(r.x+r.width-v.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return i==="insideLeft"?Ct({x:s+S,y:l+c/2,textAnchor:_,verticalAnchor:"middle"},O):i==="insideRight"?Ct({x:s+u-S,y:l+c/2,textAnchor:T,verticalAnchor:"middle"},O):i==="insideTop"?Ct({x:s+u/2,y:l+f,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Ct({x:s+u/2,y:l+c-f,textAnchor:"middle",verticalAnchor:h},O):i==="insideTopLeft"?Ct({x:s+S,y:l+f,textAnchor:_,verticalAnchor:m},O):i==="insideTopRight"?Ct({x:s+u-S,y:l+f,textAnchor:T,verticalAnchor:m},O):i==="insideBottomLeft"?Ct({x:s+S,y:l+c-f,textAnchor:_,verticalAnchor:h},O):i==="insideBottomRight"?Ct({x:s+u-S,y:l+c-f,textAnchor:T,verticalAnchor:h},O):Ti(i)&&(fe(i.x)||ma(i.x))&&(fe(i.y)||ma(i.y))?Ct({x:s+ai(i.x,u),y:l+ai(i.y,c),textAnchor:"end",verticalAnchor:"end"},O):Ct({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},TZ=function(t){return"cx"in t&&fe(t.cx)};function Yt(e){var t=e.offset,n=t===void 0?5:t,r=gZ(e,uZ),a=Ct({offset:n},r),i=a.viewBox,o=a.position,s=a.value,l=a.children,u=a.content,c=a.className,p=c===void 0?"":c,f=a.textBreakAll;if(!i||Be(s)&&Be(l)&&!F.isValidElement(u)&&!Fe(u))return null;if(F.isValidElement(u))return F.cloneElement(u,a);var h;if(Fe(u)){if(h=F.createElement(u,a),F.isValidElement(h))return h}else h=SZ(a);var m=TZ(i),b=He(a,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return EZ(a,h,b);var S=m?wZ(a):_Z(a);return Y.createElement(Yl,Ho({className:rt("recharts-label",p)},b,S,{breakAll:f}),h)}Yt.displayName="Label";var wN=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,p=t.x,f=t.y,h=t.top,m=t.left,b=t.width,S=t.height,T=t.clockWise,_=t.labelViewBox;if(_)return _;if(fe(b)&&fe(S)){if(fe(p)&&fe(f))return{x:p,y:f,width:b,height:S};if(fe(h)&&fe(m))return{x:h,y:m,width:b,height:S}}return fe(p)&&fe(f)?{x:p,y:f,width:0,height:0}:fe(n)&&fe(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:T}:t.viewBox?t.viewBox:{}},AZ=function(t,n){return t?t===!0?Y.createElement(Yt,{key:"label-implicit",viewBox:n}):Nt(t)?Y.createElement(Yt,{key:"label-implicit",viewBox:n,value:t}):F.isValidElement(t)?t.type===Yt?F.cloneElement(t,{key:"label-implicit",viewBox:n}):Y.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):Fe(t)?Y.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):Ti(t)?Y.createElement(Yt,Ho({viewBox:n},t,{key:"label-implicit"})):null:null},kZ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=wN(t),o=En(a,Yt).map(function(l,u){return F.cloneElement(l,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var s=AZ(t.label,n||i);return[s].concat(cZ(o))};Yt.parseViewBox=wN;Yt.renderCallByParent=kZ;function OZ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var IZ=OZ;const RZ=St(IZ);function Wo(e){"@babel/helpers - typeof";return Wo=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},Wo(e)}var CZ=["valueAccessor"],NZ=["data","dataKey","clockWise","id","textBreakAll"];function DZ(e){return $Z(e)||PZ(e)||MZ(e)||LZ()}function LZ(){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 MZ(e,t){if(e){if(typeof e=="string")return Vb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vb(e,t)}}function PZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Z(e){if(Array.isArray(e))return Vb(e)}function Vb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var zZ=function(t){return Array.isArray(t.value)?RZ(t.value):t.value};function Jr(e){var t=e.valueAccessor,n=t===void 0?zZ:t,r=A0(e,CZ),a=r.data,i=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=A0(r,NZ);return!a||!a.length?null:Y.createElement(yt,{className:"recharts-label-list"},a.map(function(c,p){var f=Be(i)?n(c,p):sn(c&&c.payload,i),h=Be(s)?{}:{id:"".concat(s,"-").concat(p)};return Y.createElement(Yt,uu({},He(c,!0),u,h,{parentViewBox:c.parentViewBox,value:f,textBreakAll:l,viewBox:Yt.parseViewBox(Be(o)?c:T0(T0({},c),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Jr.displayName="LabelList";function GZ(e,t){return e?e===!0?Y.createElement(Jr,{key:"labelList-implicit",data:t}):Y.isValidElement(e)||Fe(e)?Y.createElement(Jr,{key:"labelList-implicit",data:t,content:e}):Ti(e)?Y.createElement(Jr,uu({data:t},e,{key:"labelList-implicit"})):null:null}function qZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=En(r,Jr).map(function(o,s){return F.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return a;var i=GZ(e.label,t);return[i].concat(DZ(a))}Jr.renderCallByParent=qZ;function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var S=(l+u)/2,T=Gt(o,s,S,f),_=T.x,E=T.y;return{x:_,y:E,textAnchor:"middle",verticalAnchor:"middle"}},_Z=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,s=o.x,l=o.y,u=o.width,c=o.height,p=c>=0?1:-1,f=p*a,h=p>0?"end":"start",m=p>0?"start":"end",b=u>=0?1:-1,S=b*a,T=b>0?"end":"start",_=b>0?"start":"end";if(i==="top"){var E={x:s+u/2,y:l-p*a,textAnchor:"middle",verticalAnchor:h};return Ct(Ct({},E),r?{height:Math.max(l-r.y,0),width:u}:{})}if(i==="bottom"){var A={x:s+u/2,y:l+c+f,textAnchor:"middle",verticalAnchor:m};return Ct(Ct({},A),r?{height:Math.max(r.y+r.height-(l+c),0),width:u}:{})}if(i==="left"){var x={x:s-S,y:l+c/2,textAnchor:T,verticalAnchor:"middle"};return Ct(Ct({},x),r?{width:Math.max(x.x-r.x,0),height:c}:{})}if(i==="right"){var v={x:s+u+S,y:l+c/2,textAnchor:_,verticalAnchor:"middle"};return Ct(Ct({},v),r?{width:Math.max(r.x+r.width-v.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return i==="insideLeft"?Ct({x:s+S,y:l+c/2,textAnchor:_,verticalAnchor:"middle"},O):i==="insideRight"?Ct({x:s+u-S,y:l+c/2,textAnchor:T,verticalAnchor:"middle"},O):i==="insideTop"?Ct({x:s+u/2,y:l+f,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Ct({x:s+u/2,y:l+c-f,textAnchor:"middle",verticalAnchor:h},O):i==="insideTopLeft"?Ct({x:s+S,y:l+f,textAnchor:_,verticalAnchor:m},O):i==="insideTopRight"?Ct({x:s+u-S,y:l+f,textAnchor:T,verticalAnchor:m},O):i==="insideBottomLeft"?Ct({x:s+S,y:l+c-f,textAnchor:_,verticalAnchor:h},O):i==="insideBottomRight"?Ct({x:s+u-S,y:l+c-f,textAnchor:T,verticalAnchor:h},O):Ti(i)&&(fe(i.x)||ma(i.x))&&(fe(i.y)||ma(i.y))?Ct({x:s+ai(i.x,u),y:l+ai(i.y,c),textAnchor:"end",verticalAnchor:"end"},O):Ct({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},TZ=function(t){return"cx"in t&&fe(t.cx)};function Yt(e){var t=e.offset,n=t===void 0?5:t,r=gZ(e,uZ),a=Ct({offset:n},r),i=a.viewBox,o=a.position,s=a.value,l=a.children,u=a.content,c=a.className,p=c===void 0?"":c,f=a.textBreakAll;if(!i||Be(s)&&Be(l)&&!F.isValidElement(u)&&!Fe(u))return null;if(F.isValidElement(u))return F.cloneElement(u,a);var h;if(Fe(u)){if(h=F.createElement(u,a),F.isValidElement(h))return h}else h=SZ(a);var m=TZ(i),b=He(a,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return EZ(a,h,b);var S=m?wZ(a):_Z(a);return Y.createElement(Yl,Ho({className:rt("recharts-label",p)},b,S,{breakAll:f}),h)}Yt.displayName="Label";var _N=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,p=t.x,f=t.y,h=t.top,m=t.left,b=t.width,S=t.height,T=t.clockWise,_=t.labelViewBox;if(_)return _;if(fe(b)&&fe(S)){if(fe(p)&&fe(f))return{x:p,y:f,width:b,height:S};if(fe(h)&&fe(m))return{x:h,y:m,width:b,height:S}}return fe(p)&&fe(f)?{x:p,y:f,width:0,height:0}:fe(n)&&fe(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:T}:t.viewBox?t.viewBox:{}},AZ=function(t,n){return t?t===!0?Y.createElement(Yt,{key:"label-implicit",viewBox:n}):Nt(t)?Y.createElement(Yt,{key:"label-implicit",viewBox:n,value:t}):F.isValidElement(t)?t.type===Yt?F.cloneElement(t,{key:"label-implicit",viewBox:n}):Y.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):Fe(t)?Y.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):Ti(t)?Y.createElement(Yt,Ho({viewBox:n},t,{key:"label-implicit"})):null:null},kZ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=_N(t),o=En(a,Yt).map(function(l,u){return F.cloneElement(l,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var s=AZ(t.label,n||i);return[s].concat(cZ(o))};Yt.parseViewBox=_N;Yt.renderCallByParent=kZ;function OZ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var IZ=OZ;const RZ=St(IZ);function Wo(e){"@babel/helpers - typeof";return Wo=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},Wo(e)}var CZ=["valueAccessor"],NZ=["data","dataKey","clockWise","id","textBreakAll"];function DZ(e){return $Z(e)||PZ(e)||MZ(e)||LZ()}function LZ(){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 MZ(e,t){if(e){if(typeof e=="string")return Vb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vb(e,t)}}function PZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Z(e){if(Array.isArray(e))return Vb(e)}function Vb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var zZ=function(t){return Array.isArray(t.value)?RZ(t.value):t.value};function Jr(e){var t=e.valueAccessor,n=t===void 0?zZ:t,r=A0(e,CZ),a=r.data,i=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=A0(r,NZ);return!a||!a.length?null:Y.createElement(yt,{className:"recharts-label-list"},a.map(function(c,p){var f=Be(i)?n(c,p):sn(c&&c.payload,i),h=Be(s)?{}:{id:"".concat(s,"-").concat(p)};return Y.createElement(Yt,uu({},He(c,!0),u,h,{parentViewBox:c.parentViewBox,value:f,textBreakAll:l,viewBox:Yt.parseViewBox(Be(o)?c:T0(T0({},c),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Jr.displayName="LabelList";function GZ(e,t){return e?e===!0?Y.createElement(Jr,{key:"labelList-implicit",data:t}):Y.isValidElement(e)||Fe(e)?Y.createElement(Jr,{key:"labelList-implicit",data:t,content:e}):Ti(e)?Y.createElement(Jr,uu({data:t},e,{key:"labelList-implicit"})):null:null}function qZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=En(r,Jr).map(function(o,s){return F.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return a;var i=GZ(e.label,t);return[i].concat(DZ(a))}Jr.renderCallByParent=qZ;function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, `).concat(p.x,",").concat(p.y,` `);if(a>0){var h=Gt(n,r,a,o),m=Gt(n,r,a,u);f+="L ".concat(m.x,",").concat(m.y,` A `).concat(a,",").concat(a,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, - `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},KZ=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,p=Zn(c-u),f=fl({cx:n,cy:r,radius:i,angle:u,sign:p,cornerRadius:o,cornerIsExternal:l}),h=f.circleTangency,m=f.lineTangency,b=f.theta,S=fl({cx:n,cy:r,radius:i,angle:c,sign:-p,cornerRadius:o,cornerIsExternal:l}),T=S.circleTangency,_=S.lineTangency,x=S.theta,A=l?Math.abs(u-c):Math.abs(u-c)-b-x;if(A<0)return s?"M ".concat(m.x,",").concat(m.y,` + `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},KZ=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,p=Zn(c-u),f=fl({cx:n,cy:r,radius:i,angle:u,sign:p,cornerRadius:o,cornerIsExternal:l}),h=f.circleTangency,m=f.lineTangency,b=f.theta,S=fl({cx:n,cy:r,radius:i,angle:c,sign:-p,cornerRadius:o,cornerIsExternal:l}),T=S.circleTangency,_=S.lineTangency,E=S.theta,A=l?Math.abs(u-c):Math.abs(u-c)-b-E;if(A<0)return s?"M ".concat(m.x,",").concat(m.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):_N({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:c});var E="M ".concat(m.x,",").concat(m.y,` + `):TN({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:c});var x="M ".concat(m.x,",").concat(m.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(h.x,",").concat(h.y,` A`).concat(i,",").concat(i,",0,").concat(+(A>180),",").concat(+(p<0),",").concat(T.x,",").concat(T.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(_.x,",").concat(_.y,` - `);if(a>0){var v=fl({cx:n,cy:r,radius:a,angle:u,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),O=v.circleTangency,R=v.lineTangency,C=v.theta,$=fl({cx:n,cy:r,radius:a,angle:c,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),N=$.circleTangency,P=$.lineTangency,z=$.theta,V=l?Math.abs(u-c):Math.abs(u-c)-C-z;if(V<0&&o===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(P.x,",").concat(P.y,` + `);if(a>0){var v=fl({cx:n,cy:r,radius:a,angle:u,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),O=v.circleTangency,R=v.lineTangency,C=v.theta,$=fl({cx:n,cy:r,radius:a,angle:c,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),N=$.circleTangency,P=$.lineTangency,z=$.theta,V=l?Math.abs(u-c):Math.abs(u-c)-C-z;if(V<0&&o===0)return"".concat(x,"L").concat(n,",").concat(r,"Z");x+="L".concat(P.x,",").concat(P.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,` A`).concat(a,",").concat(a,",0,").concat(+(V>180),",").concat(+(p>0),",").concat(O.x,",").concat(O.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(R.x,",").concat(R.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},XZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TN=function(t){var n=O0(O0({},XZ),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,p=n.endAngle,f=n.className;if(o0&&Math.abs(c-p)<360?S=KZ({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(b,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:p}):S=_N({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:c,endAngle:p}),Y.createElement("path",Yb({},He(n,!0),{className:h,d:S,role:"img"}))};function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(c-p)<360?S=KZ({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(b,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:p}):S=TN({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:c,endAngle:p}),Y.createElement("path",Yb({},He(n,!0),{className:h,d:S,role:"img"}))};function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,c;if(o>0&&i instanceof Array){for(var p=[0,0,0,0],f=0,h=4;fo?o:i[f];c="M".concat(t,",").concat(n+s*p[0]),p[0]>0&&(c+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(u,",").concat(t+l*p[0],",").concat(n)),c+="L ".concat(t+r-l*p[1],",").concat(n),p[1]>0&&(c+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(u,`, `).concat(t+r,",").concat(n+s*p[1])),c+="L ".concat(t+r,",").concat(n+a-s*p[2]),p[2]>0&&(c+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(u,`, `).concat(t+r-l*p[2],",").concat(n+a)),c+="L ".concat(t+l*p[3],",").concat(n+a),p[3]>0&&(c+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(u,`, @@ -1400,19 +1400,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+r,",").concat(n+a-s*m,` A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r-l*m,",").concat(n+a,` L `).concat(t+l*m,",").concat(n+a,` - A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+a-s*m," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return c},cQ=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),p=Math.min(o,o+l),f=Math.max(o,o+l);return r>=u&&r<=c&&a>=p&&a<=f}return!1},dQ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$v=function(t){var n=L0(L0({},dQ),t),r=F.useRef(),a=F.useState(-1),i=nQ(a,2),o=i[0],s=i[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,c=n.width,p=n.height,f=n.radius,h=n.className,m=n.animationEasing,b=n.animationDuration,S=n.animationBegin,T=n.isAnimationActive,_=n.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||p!==+p||c===0||p===0)return null;var x=rt("recharts-rectangle",h);return _?Y.createElement(Nr,{canBegin:o>0,from:{width:c,height:p,x:l,y:u},to:{width:c,height:p,x:l,y:u},duration:b,animationEasing:m,isActive:_},function(A){var E=A.width,v=A.height,O=A.x,R=A.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,isActive:T,easing:m},Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(O,R,E,v,f),ref:r})))}):Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(l,u,c,p,f)}))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vQ=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},SQ=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,p=c===void 0?0:c,f=t.height,h=f===void 0?0:f,m=t.className,b=bQ(t,pQ),S=fQ({x:r,y:i,top:s,left:u,width:p,height:h},b);return!fe(r)||!fe(i)||!fe(p)||!fe(h)||!fe(s)||!fe(u)?null:Y.createElement("path",Qb({},He(S,!0),{className:rt("recharts-cross",m),d:vQ(r,i,p,h,s,u)}))},xQ=hI,EQ=gI,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||EQ(e)&&xQ(e)==wQ}var TQ=_Q;const AQ=St(TQ);function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:c,lowerWidth:p,height:f,x:l,y:u},duration:b,animationEasing:m,isActive:T},function(x){var A=x.upperWidth,E=x.lowerWidth,v=x.height,O=x.x,R=x.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,easing:m},Y.createElement("path",du({},He(n,!0),{className:_,d:B0(O,R,A,E,v),ref:r})))}):Y.createElement("g",null,Y.createElement("path",du({},He(n,!0),{className:_,d:B0(l,u,c,p,f)})))},$Q=["option","shapeType","propTransformer","activeClassName","isActive"];function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}function jQ(e,t){if(e==null)return{};var n=FQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pu(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 gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}function vn(e,t,n){return t=ON(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e){var t=wJ(e,"string");return gi(t)==="symbol"?t:String(t)}function wJ(e,t){if(gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _J=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=mo().domain(fu(0,l)).range([i,i+o-s]),c=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:c}},Y0=function(t){return t.changedTouches&&!!t.changedTouches.length},ts=function(e){vJ(n,e);var t=SJ(n);function n(r){var a;return bJ(this,n),a=t.call(this,r),vn(nr(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),vn(nr(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),vn(nr(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()}),vn(nr(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),vn(nr(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),vn(nr(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),vn(nr(a),"handleSlideDragStart",function(i){var o=Y0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(nr(a),"startX"),endX:a.handleTravellerDragStart.bind(nr(a),"endX")},a.state={},a}return yJ(n,[{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,u=l.gap,c=l.data,p=c.length-1,f=Math.min(i,o),h=Math.max(i,o),m=n.getIndexInRange(s,f),b=n.getIndexInRange(s,h);return{startIndex:m-m%u,endIndex:b===p?p:b-b%u}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=sn(o[a],l,a);return Fe(s)?s(u,a):u}},{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,u=this.props,c=u.x,p=u.width,f=u.travellerWidth,h=u.startIndex,m=u.endIndex,b=u.onChange,S=a.pageX-o;S>0?S=Math.min(S,c+p-f-l,c+p-f-s):S<0&&(S=Math.max(S,c-s,c-l));var T=this.getIndex({startX:s+S,endX:l+S});(T.startIndex!==h||T.endIndex!==m)&&b&&b(T),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=Y0(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,u=o.endX,c=o.startX,p=this.state[l],f=this.props,h=f.x,m=f.width,b=f.travellerWidth,S=f.onChange,T=f.gap,_=f.data,x={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,h+m-b-p):A<0&&(A=Math.max(A,h-p)),x[l]=p+A;var E=this.getIndex(x),v=E.startIndex,O=E.endIndex,R=function(){var $=_.length-1;return l==="startX"&&(u>c?v%T===0:O%T===0)||uc?O%T===0:v%T===0)||u>c&&O===$};this.setState((i={},vn(i,l,p+A),vn(i,"brushMoveStartX",a.pageX),i),function(){S&&R()&&S(E)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,c=s.endX,p=this.state[i],f=l.indexOf(p);if(f!==-1){var h=f+a;if(!(h===-1||h>=l.length)){var m=l[h];i==="startX"&&m>=c||i==="endX"&&m<=u||this.setState(vn({},i,m),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,u=a.fill,c=a.stroke;return Y.createElement("rect",{stroke:c,fill:u,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,u=a.data,c=a.children,p=a.padding,f=F.Children.only(c);return f?Y.cloneElement(f,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,u=s.travellerWidth,c=s.height,p=s.traveller,f=s.ariaLabel,h=s.data,m=s.startIndex,b=s.endIndex,S=Math.max(a,this.props.x),T=Ld(Ld({},He(this.props)),{},{x:S,y:l,width:u,height:c}),_=f||"Min value: ".concat(h[m].name,", Max value: ").concat(h[b].name);return Y.createElement(yt,{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"}},n.renderTraveller(p,T))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,c=o.travellerWidth,p=Math.min(a,i)+c,f=Math.max(Math.abs(i-a)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:p,y:s,width:f,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,u=a.travellerWidth,c=a.stroke,p=this.state,f=p.startX,h=p.endX,m=5,b={pointerEvents:"none",fill:c};return Y.createElement(yt,{className:"recharts-brush-texts"},Y.createElement(Yl,hu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:s+l/2},b),this.getTextOfTick(i)),Y.createElement(Yl,hu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+m,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,u=a.y,c=a.width,p=a.height,f=a.alwaysShowText,h=this.state,m=h.startX,b=h.endX,S=h.isTextActive,T=h.isSlideMoving,_=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!fe(l)||!fe(u)||!fe(c)||!fe(p)||c<=0||p<=0)return null;var A=rt("recharts-brush",o),E=Y.Children.count(s)===1,v=mJ("userSelect","none");return Y.createElement(yt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(S||T||_||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,u=a.stroke,c=Math.floor(o+l/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),Y.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return Y.isValidElement(a)?o=Y.cloneElement(a,i):Fe(a)?o=a(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,u=a.travellerWidth,c=a.updateId,p=a.startIndex,f=a.endIndex;if(o!==i.prevData||c!==i.prevUpdateId)return Ld({prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s},o&&o.length?_J({data:o,width:s,x:l,travellerWidth:u,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var h=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);a[u]>i?l=u:s=u}return i>=a[l]?l:s}}]),n}(F.PureComponent);vn(ts,"displayName","Brush");vn(ts,"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 TJ=RI;function AJ(e,t){var n;return TJ(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var kJ=AJ,OJ=aF,IJ=Ta,RJ=kJ,CJ=ku,NJ=ec;function DJ(e,t,n){var r=CJ(e)?OJ:RJ;return n&&NJ(e,t,n)&&(t=void 0),r(e,IJ(t))}var LJ=DJ;const MJ=St(LJ);var dr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},PJ=sj,$J=iF,jJ=Ta;function FJ(e,t){var n={};return t=jJ(t),$J(e,function(r,a,i){PJ(n,a,t(r,a,i))}),n}var BJ=FJ;const UJ=St(BJ);function zJ(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function oee(e,t){var n=e.x,r=e.y,a=aee(e,eee),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||a.height),c=parseInt(u,10),p="".concat(t.width||a.width),f=parseInt(p,10);return to(to(to(to(to({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function X0(e){return Y.createElement(Jb,ty({shapeType:"rectangle",propTransformer:oee,activeClassName:"recharts-active-bar"},e))}var see=["value","background"];function mi(e){"@babel/helpers - typeof";return mi=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},mi(e)}function lee(e,t){if(e==null)return{};var n=uee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function mu(){return mu=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 bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bu(e)}function Xr(e,t,n){return t=RN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e){var t=mee(e,"string");return mi(t)==="symbol"?t:String(t)}function mee(e,t){if(mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hc=function(e){pee(n,e);var t=fee(n);function n(){var r;cee(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(V)0&&Math.abs(z)0&&(z=Math.min((ye||0)-(V[re-1]||0),z))});var G=z/P,K=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(O=G*K/2),b.padding==="no-gap"){var X=ai(t.barCategoryGap,G*K),W=G*K/2;O=W-X-(W-X)/K*X}}a==="xAxis"?R=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?R=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:R=b.range,E&&(R=[R[1],R[0]]);var Z=z7(b,i,f),D=Z.scale,ie=Z.realScaleType;D.domain(T).range(R),G7(D);var ne=Z7(D,Vn(Vn({},b),{},{realScaleType:ie}));a==="xAxis"?(N=S==="top"&&!A||S==="bottom"&&A,C=r.left,$=p[v]-N*b.height):a==="yAxis"&&(N=S==="left"&&!A||S==="right"&&A,C=p[v]-N*b.width,$=r.top);var M=Vn(Vn(Vn({},b),ne),{},{realScaleType:ie,x:C,y:$,scale:D,width:a==="xAxis"?r.width:b.width,height:a==="yAxis"?r.height:b.height});return M.bandSize=su(M,ne),!b.hide&&a==="xAxis"?p[v]+=(N?-1:1)*M.height:b.hide||(p[v]+=(N?-1:1)*M.width),Vn(Vn({},h),{},gc({},m,M))},{})},NN=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},xee=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return NN({x:n,y:r},{x:a,y:i})},DN=function(){function e(t){bee(this,e),this.scale=t}return yee(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}]),e}();gc(DN,"EPS",1e-4);var Fv=function(t){var n=Object.keys(t).reduce(function(r,a){return Vn(Vn({},r),{},gc({},a,DN.create(t[a])))},{});return Vn(Vn({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return UJ(a,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return IN(a,function(i,o){return n[o].isInRange(i)})}})};function Eee(e){return(e%180+180)%180}var wee=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Eee(a),o=i*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function qee(e,t){return LN(e,t+1)}function Hee(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,p=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:LN(r,u)};var b=l,S,T=function(){return S===void 0&&(S=n(m,b)),S},_=m.coordinate,x=l===0||yu(e,_,T,c,s);x||(l=0,c=o,u+=1),x&&(c=_+e*(T()/2+a),l+=u)},f;u<=i.length;)if(f=p(),f)return f.v;return[]}function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0?h.coordinate-S*e:h.coordinate})}else i[f]=h=Vt(Vt({},h),{},{tickCoord:h.coordinate});var T=yu(e,h.tickCoord,b,s,l);T&&(l=h.tickCoord-e*(b()/2+a),i[f]=Vt(Vt({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function Xee(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(i){var c=r[s-1],p=n(c,s-1),f=e*(c.coordinate+e*p/2-u);o[s-1]=c=Vt(Vt({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate});var h=yu(e,c.tickCoord,function(){return p},l,u);h&&(u=c.tickCoord-e*(p/2+a),o[s-1]=Vt(Vt({},c),{},{isShow:!0}))}for(var m=i?s-1:s,b=function(_){var x=o[_],A,E=function(){return A===void 0&&(A=n(x,_)),A};if(_===0){var v=e*(x.coordinate-e*E()/2-l);o[_]=x=Vt(Vt({},x),{},{tickCoord:v<0?x.coordinate-v*e:x.coordinate})}else o[_]=x=Vt(Vt({},x),{},{tickCoord:x.coordinate});var O=yu(e,x.tickCoord,E,l,u);O&&(l=x.tickCoord+e*(E()/2+a),o[_]=Vt(Vt({},x),{},{isShow:!0}))},S=0;S=2?Zn(a[1].coordinate-a[0].coordinate):1,T=Gee(i,S,h);return l==="equidistantPreserveStart"?Hee(S,T,b,a,o):(l==="preserveStart"||l==="preserveStartEnd"?f=Xee(S,T,b,a,o,l==="preserveStartEnd"):f=Kee(S,T,b,a,o),f.filter(function(_){return _.isShow}))}var Zee=["viewBox"],Qee=["viewBox"],Jee=["ticks"];function bi(e){"@babel/helpers - typeof";return bi=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},bi(e)}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(e,t){for(var n=0;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 vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Uv(e,t,n){return t=MN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MN(e){var t=lte(e,"string");return bi(t)==="symbol"?t:String(t)}function lte(e,t){if(bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo=function(e){rte(n,e);var t=ate(n);function n(r){var a;return tte(this,n),a=t.call(this,r),a.state={fontSize:"",letterSpacing:""},a}return nte(n,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Md(a,Zee),l=this.props,u=l.viewBox,c=Md(l,Qee);return!Ja(o,u)||!Ja(s,c)||!Ja(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,u=i.height,c=i.orientation,p=i.tickSize,f=i.mirror,h=i.tickMargin,m,b,S,T,_,x,A=f?-1:1,E=a.tickSize||p,v=fe(a.tickCoord)?a.tickCoord:a.coordinate;switch(c){case"top":m=b=a.coordinate,T=s+ +!f*u,S=T-A*E,x=S-A*h,_=v;break;case"left":S=T=a.coordinate,b=o+ +!f*l,m=b-A*E,_=m-A*h,x=v;break;case"right":S=T=a.coordinate,b=o+ +f*l,m=b+A*E,_=m+A*h,x=v;break;default:m=b=a.coordinate,T=s+ +f*u,S=T+A*E,x=S+A*h,_=v;break}return{line:{x1:m,y1:S,x2:b,y2:T},tick:{x:_,y:x}}}},{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,u=a.orientation,c=a.mirror,p=a.axisLine,f=en(en(en({},He(this.props)),He(p)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!c||u==="bottom"&&c);f=en(en({},f),{},{x1:i,y1:o+h*l,x2:i+s,y2:o+h*l})}else{var m=+(u==="left"&&!c||u==="right"&&c);f=en(en({},f),{},{x1:i+m*s,y1:o,x2:i+m*s,y2:o+l})}return Y.createElement("line",Ya({},f,{className:rt("recharts-cartesian-axis-line",Dn(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,u=l.tickLine,c=l.stroke,p=l.tick,f=l.tickFormatter,h=l.unit,m=oy(en(en({},this.props),{},{ticks:a}),i,o),b=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),T=He(this.props),_=He(p),x=en(en({},T),{},{fill:"none"},He(u)),A=m.map(function(E,v){var O=s.getTickLineCoord(E),R=O.line,C=O.tick,$=en(en(en(en({textAnchor:b,verticalAnchor:S},T),{},{stroke:"none",fill:c},_),C),{},{index:v,payload:E,visibleTicksCount:m.length,tickFormatter:f});return Y.createElement(yt,Ya({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},wo(s.props,E,v)),u&&Y.createElement("line",Ya({},x,R,{className:rt("recharts-cartesian-axis-tick-line",Dn(u,"className"))})),p&&n.renderTickItem(p,$,"".concat(Fe(f)?f(E.value,v):E.value).concat(h||"")))});return Y.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,u=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var f=this.props,h=f.ticks,m=Md(f,Jee),b=h;return Fe(u)&&(b=h&&h.length>0?u(this.props):u(m)),s<=0||l<=0||!b||!b.length?null:Y.createElement(yt,{className:rt("recharts-cartesian-axis",c),ref:function(T){a.layerReference=T}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return Y.isValidElement(a)?s=Y.cloneElement(a,i):Fe(a)?s=a(i):s=Y.createElement(Yl,Ya({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(F.Component);Uv(yo,"displayName","CartesianAxis");Uv(yo,"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 ute=["x1","y1","x2","y2","key"],cte=["offset"];function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(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 Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function zv(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=vte(e,"string");return yi(t)==="symbol"?t:String(t)}function vte(e,t){if(yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gv=function(e){hte(n,e);var t=gte(n);function n(){return pte(this,n),t.apply(this,arguments)}return fte(n,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{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,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+l-l)}).sort(function(m,b){return m-b});l!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?l+c-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),x:m,y:u,width:T,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{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,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+u-u)}).sort(function(m,b){return m-b});u!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?u+p-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),y:m,x:l,height:T,width:c,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{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,u=i.width,c=i.height;return Y.createElement("rect",{x:s,y:l,width:u,height:c,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,u=a.horizontal,c=a.vertical,p=a.horizontalCoordinatesGenerator,f=a.verticalCoordinatesGenerator,h=a.xAxis,m=a.yAxis,b=a.offset,S=a.chartWidth,T=a.chartHeight,_=a.syncWithTicks,x=a.horizontalValues,A=a.verticalValues;if(!fe(s)||s<=0||!fe(l)||l<=0||!fe(i)||i!==+i||!fe(o)||o!==+o)return null;var E=this.props,v=E.horizontalPoints,O=E.verticalPoints;if((!v||!v.length)&&Fe(p)){var R=x&&x.length;v=p({yAxis:m?Hr(Hr({},m),{},{ticks:R?x:m.ticks}):void 0,width:S,height:T,offset:b},R?!0:_)}if((!O||!O.length)&&Fe(f)){var C=A&&A.length;O=f({xAxis:h?Hr(Hr({},h),{},{ticks:C?A:h.ticks}):void 0,width:S,height:T,offset:b},C?!0:_)}return Y.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(O),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(O))}}],[{key:"renderLineItem",value:function(a,i){var o;if(Y.isValidElement(a))o=Y.cloneElement(a,i);else if(Fe(a))o=a(i);else{var s=i.x1,l=i.y1,u=i.x2,c=i.y2,p=i.key,f=d_(i,ute),h=He(f);h.offset;var m=d_(h,cte);o=Y.createElement("line",ly({},m,{x1:s,y1:l,x2:u,y2:c,fill:"none",key:p}))}return o}}]),n}(F.PureComponent);zv(Gv,"displayName","CartesianGrid");zv(Gv,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var mc=function(){return null};mc.displayName="ZAxis";mc.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var Ste=["option","isActive"];function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function wte(e){var t=e.option,n=e.isActive,r=xte(e,Ste);return typeof t=="string"?Y.createElement(Jb,vo({option:Y.createElement(Qu,vo({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(Jb,vo({option:t,isActive:n,shapeType:"symbols"},r))}function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function So(){return So=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 xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xu(e)}function Zr(e,t,n){return t=$N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e){var t=Rte(e,"string");return vi(t)==="symbol"?t:String(t)}function Rte(e,t){if(vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ks=function(e){Ate(n,e);var t=kte(n);function n(){var r;_te(this,n);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var Mte=Lte,Pte=AN;function $te(e){var t=Pte(e),n=t%1;return t===t?n?t-n:t:0}var jte=$te,Fte=aC,Bte=Ta,Ute=jte,zte=Math.max;function Gte(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Ute(n);return a<0&&(a=zte(r+a,0)),Fte(e,Bte(t),a)}var qte=Gte,Hte=Mte,Wte=qte,Vte=Hte(Wte),Yte=Vte;const Kte=St(Yte);var Xte="Invariant failed";function Zte(e,t){if(!e)throw new Error(Xte)}function jN(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Gt(t,n,r,a),s=Gt(t,n,r,i);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function m_(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){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 Jte(e,t){if(e){if(typeof e=="string")return dy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dy(e,t)}}function ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tne(e){if(Array.isArray(e))return dy(e)}function dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_(e,t){for(var n=0;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 Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eu(e)}function xi(e){return Tne(e)||_ne(e)||UN(e)||wne()}function wne(){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 UN(e,t){if(e){if(typeof e=="string")return hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hy(e,t)}}function _ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tne(e){if(Array.isArray(e))return hy(e)}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&fe(a)&&fe(i)?t.slice(a,i+1):[]};function qN(e){return e==="number"?[0,"auto"]:void 0}var HN=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,s=vc(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,u){var c,p=u.props.hide;if(p)return l;var f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var m=f===void 0?s:f;h=Nl(m,o.dataKey,a)}else h=f&&f[r]||s[r];return h?[].concat(xi(l),[EN(u,h)]):l},[])},E_=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Ine(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=P7(o,s,u,l);if(c>=0&&u){var p=u[c]&&u[c].value,f=HN(t,n,c,p),h=Rne(r,s,c,i);return{activeTooltipIndex:c,activeLabel:p,activePayload:f,activeCoordinate:h}}return null},Cne=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=t.stackOffset,h=SN(c,i);return r.reduce(function(m,b){var S,T=b.props,_=T.type,x=T.dataKey,A=T.allowDataOverflow,E=T.allowDuplicatedCategory,v=T.scale,O=T.ticks,R=T.includeHidden,C=b.props[o];if(m[C])return m;var $=vc(t.data,{graphicalItems:a.filter(function(ne){return ne.props[o]===C}),dataStartIndex:l,dataEndIndex:u}),N=$.length,P,z,V;lne(b.props.domain,A,_)&&(P=Hb(b.props.domain,null,A),h&&(_==="number"||v!=="auto")&&(V=bo($,x,"category")));var G=qN(_);if(!P||P.length===0){var K,X=(K=b.props.domain)!==null&&K!==void 0?K:G;if(x){if(P=bo($,x,_),_==="category"&&h){var W=A3(P);E&&W?(z=P,P=fu(0,N)):E||(P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0?ne:[].concat(xi(ne),[M])},[]))}else if(_==="category")E?P=P.filter(function(ne){return ne!==""&&!Be(ne)}):P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0||M===""||Be(M)?ne:[].concat(xi(ne),[M])},[]);else if(_==="number"){var Z=U7($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),x,i,c);Z&&(P=Z)}h&&(_==="number"||v!=="auto")&&(V=bo($,x,"category"))}else h?P=fu(0,N):s&&s[C]&&s[C].hasStack&&_==="number"?P=f==="expand"?[0,1]:xN(s[C].stackGroups,l,u):P=vN($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),_,c,!0);if(_==="number")P=py(p,P,C,i,O),X&&(P=Hb(X,P,A));else if(_==="category"&&X){var D=X,ie=P.every(function(ne){return D.indexOf(ne)>=0});ie&&(P=D)}}return te(te({},m),{},Ee({},C,te(te({},b.props),{},{axisType:i,domain:P,categoricalDomain:V,duplicateDomain:z,originalDomain:(S=b.props.domain)!==null&&S!==void 0?S:G,isCategorical:h,layout:c})))},{})},Nne=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=vc(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=f.length,m=SN(c,i),b=-1;return r.reduce(function(S,T){var _=T.props[o],x=qN("number");if(!S[_]){b++;var A;return m?A=fu(0,h):s&&s[_]&&s[_].hasStack?(A=xN(s[_].stackGroups,l,u),A=py(p,A,_,i)):(A=Hb(x,vN(f,r.filter(function(E){return E.props[o]===_&&!E.props.hide}),"number",c),a.defaultProps.allowDataOverflow),A=py(p,A,_,i)),te(te({},S),{},Ee({},_,te(te({axisType:i},a.defaultProps),{},{hide:!0,orientation:Dn(kne,"".concat(i,".").concat(b%2),null),domain:A,originalDomain:x,isCategorical:m,layout:c})))}return S},{})},Dne=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.children,p="".concat(a,"Id"),f=En(c,i),h={};return f&&f.length?h=Cne(t,{axes:f,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Nne(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Lne=function(t){var n=Wr(t),r=Vr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:lv(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:su(n,r)}},w_=function(t){var n=t.children,r=t.defaultShowTooltip,a=Ar(n,ts),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Mne=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ir(n&&n.type);return r&&r.indexOf("Bar")>=0})},__=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Pne=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,c=r.height,p=r.children,f=r.margin||{},h=Ar(p,ts),m=Ar(p,Ao),b=Object.keys(l).reduce(function(E,v){var O=l[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},E),{},Ee({},R,E[R]+O.width)):E},{left:f.left||0,right:f.right||0}),S=Object.keys(o).reduce(function(E,v){var O=o[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},E),{},Ee({},R,Dn(E,"".concat(R))+O.height)):E},{top:f.top||0,bottom:f.bottom||0}),T=te(te({},S),b),_=T.bottom;h&&(T.bottom+=h.props.height||ts.defaultProps.height),m&&n&&(T=F7(T,a,r,n));var x=u-T.left-T.right,A=c-T.top-T.bottom;return te(te({brushBottom:_},T),{},{width:Math.max(x,0),height:Math.max(A,0)})},$ne=function(t){var n,r=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,p=t.formatAxisMap,f=t.defaultProps,h=function(S,T){var _=T.graphicalItems,x=T.stackGroups,A=T.offset,E=T.updateId,v=T.dataStartIndex,O=T.dataEndIndex,R=S.barSize,C=S.layout,$=S.barGap,N=S.barCategoryGap,P=S.maxBarSize,z=__(C),V=z.numericAxisName,G=z.cateAxisName,K=Mne(_),X=K&&$7({barSize:R,stackGroups:x}),W=[];return _.forEach(function(Z,D){var ie=vc(S.data,{graphicalItems:[Z],dataStartIndex:v,dataEndIndex:O}),ne=Z.props,M=ne.dataKey,ye=ne.maxBarSize,re=Z.props["".concat(V,"Id")],Se=Z.props["".concat(G,"Id")],je={},we=u.reduce(function(Ge,Xe){var Ft,Wt=T["".concat(Xe.axisType,"Map")],B=Z.props["".concat(Xe.axisType,"Id")];Wt&&Wt[B]||Xe.axisType==="zAxis"||Zte(!1);var Q=Wt[B];return te(te({},Ge),{},(Ft={},Ee(Ft,Xe.axisType,Q),Ee(Ft,"".concat(Xe.axisType,"Ticks"),Vr(Q)),Ft))},je),ae=we[G],de=we["".concat(G,"Ticks")],ce=x&&x[re]&&x[re].hasStack&&J7(Z,x[re].stackGroups),ee=Ir(Z.type).indexOf("Bar")>=0,_e=su(ae,de),me=[];if(ee){var ve,Ue,at=Be(ye)?P:ye,Je=(ve=(Ue=su(ae,de,!0))!==null&&Ue!==void 0?Ue:at)!==null&&ve!==void 0?ve:0;me=j7({barGap:$,barCategoryGap:N,bandSize:Je!==_e?Je:_e,sizeList:X[Se],maxBarSize:at}),Je!==_e&&(me=me.map(function(Ge){return te(te({},Ge),{},{position:te(te({},Ge.position),{},{offset:Ge.position.offset-Je/2})})}))}var Ht=Z&&Z.type&&Z.type.getComposedData;if(Ht){var ze;W.push({props:te(te({},Ht(te(te({},we),{},{displayedData:ie,props:S,dataKey:M,item:Z,bandSize:_e,barPosition:me,offset:A,stackedData:ce,layout:C,dataStartIndex:v,dataEndIndex:O}))),{},(ze={key:Z.key||"item-".concat(D)},Ee(ze,V,we[V]),Ee(ze,G,we[G]),Ee(ze,"animationId",E),ze)),childIndex:j3(Z,S.children),item:Z})}}),W},m=function(S,T){var _=S.props,x=S.dataStartIndex,A=S.dataEndIndex,E=S.updateId;if(!dE({props:_}))return null;var v=_.children,O=_.layout,R=_.stackOffset,C=_.data,$=_.reverseStackOrder,N=__(O),P=N.numericAxisName,z=N.cateAxisName,V=En(v,a),G=X7(C,V,"".concat(P,"Id"),"".concat(z,"Id"),R,$),K=u.reduce(function(ie,ne){var M="".concat(ne.axisType,"Map");return te(te({},ie),{},Ee({},M,Dne(_,te(te({},ne),{},{graphicalItems:V,stackGroups:ne.axisType===P&&G,dataStartIndex:x,dataEndIndex:A}))))},{}),X=Pne(te(te({},K),{},{props:_,graphicalItems:V}),T==null?void 0:T.legendBBox);Object.keys(K).forEach(function(ie){K[ie]=p(_,K[ie],X,ie.replace("Map",""),r)});var W=K["".concat(z,"Map")],Z=Lne(W),D=h(_,te(te({},K),{},{dataStartIndex:x,dataEndIndex:A,updateId:E,graphicalItems:V,stackGroups:G,offset:X}));return te(te({formattedGraphicalItems:D,graphicalItems:V,offset:X,stackGroups:G},Z),K)};return n=function(b){vne(T,b);var S=Sne(T);function T(_){var x,A,E;return bne(this,T),E=S.call(this,_),Ee(De(E),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ee(De(E),"accessibilityManager",new sne),Ee(De(E),"handleLegendBBoxUpdate",function(v){if(v){var O=E.state,R=O.dataStartIndex,C=O.dataEndIndex,$=O.updateId;E.setState(te({legendBBox:v},m({props:E.props,dataStartIndex:R,dataEndIndex:C,updateId:$},te(te({},E.state),{},{legendBBox:v}))))}}),Ee(De(E),"handleReceiveSyncEvent",function(v,O,R){if(E.props.syncId===v){if(R===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(O)}}),Ee(De(E),"handleBrushChange",function(v){var O=v.startIndex,R=v.endIndex;if(O!==E.state.dataStartIndex||R!==E.state.dataEndIndex){var C=E.state.updateId;E.setState(function(){return te({dataStartIndex:O,dataEndIndex:R},m({props:E.props,dataStartIndex:O,dataEndIndex:R,updateId:C},E.state))}),E.triggerSyncEvent({dataStartIndex:O,dataEndIndex:R})}}),Ee(De(E),"handleMouseEnter",function(v){var O=E.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});E.setState(R),E.triggerSyncEvent(R);var C=E.props.onMouseEnter;Fe(C)&&C(R,v)}}),Ee(De(E),"triggeredAfterMouseMove",function(v){var O=E.getMouseInfo(v),R=O?te(te({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(R),E.triggerSyncEvent(R);var C=E.props.onMouseMove;Fe(C)&&C(R,v)}),Ee(De(E),"handleItemMouseEnter",function(v){E.setState(function(){return{isTooltipActive:!0,activeItem:v,activePayload:v.tooltipPayload,activeCoordinate:v.tooltipPosition||{x:v.cx,y:v.cy}}})}),Ee(De(E),"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Ee(De(E),"handleMouseMove",function(v){v.persist(),E.throttleTriggeredAfterMouseMove(v)}),Ee(De(E),"handleMouseLeave",function(v){var O={isTooltipActive:!1};E.setState(O),E.triggerSyncEvent(O);var R=E.props.onMouseLeave;Fe(R)&&R(O,v)}),Ee(De(E),"handleOuterEvent",function(v){var O=$3(v),R=Dn(E.props,"".concat(O));if(O&&Fe(R)){var C,$;/.*touch.*/i.test(O)?$=E.getMouseInfo(v.changedTouches[0]):$=E.getMouseInfo(v),R((C=$)!==null&&C!==void 0?C:{},v)}}),Ee(De(E),"handleClick",function(v){var O=E.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});E.setState(R),E.triggerSyncEvent(R);var C=E.props.onClick;Fe(C)&&C(R,v)}}),Ee(De(E),"handleMouseDown",function(v){var O=E.props.onMouseDown;if(Fe(O)){var R=E.getMouseInfo(v);O(R,v)}}),Ee(De(E),"handleMouseUp",function(v){var O=E.props.onMouseUp;if(Fe(O)){var R=E.getMouseInfo(v);O(R,v)}}),Ee(De(E),"handleTouchMove",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(v.changedTouches[0])}),Ee(De(E),"handleTouchStart",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.handleMouseDown(v.changedTouches[0])}),Ee(De(E),"handleTouchEnd",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.handleMouseUp(v.changedTouches[0])}),Ee(De(E),"triggerSyncEvent",function(v){E.props.syncId!==void 0&&Pd.emit($d,E.props.syncId,v,E.eventEmitterSymbol)}),Ee(De(E),"applySyncEvent",function(v){var O=E.props,R=O.layout,C=O.syncMethod,$=E.state.updateId,N=v.dataStartIndex,P=v.dataEndIndex;if(v.dataStartIndex!==void 0||v.dataEndIndex!==void 0)E.setState(te({dataStartIndex:N,dataEndIndex:P},m({props:E.props,dataStartIndex:N,dataEndIndex:P,updateId:$},E.state)));else if(v.activeTooltipIndex!==void 0){var z=v.chartX,V=v.chartY,G=v.activeTooltipIndex,K=E.state,X=K.offset,W=K.tooltipTicks;if(!X)return;if(typeof C=="function")G=C(W,v);else if(C==="value"){G=-1;for(var Z=0;Z=0){var ce,ee;if(z.dataKey&&!z.allowDuplicatedCategory){var _e=typeof z.dataKey=="function"?de:"payload.".concat(z.dataKey.toString());ce=Nl(Z,_e,G),ee=D&&ie&&Nl(ie,_e,G)}else ce=Z==null?void 0:Z[V],ee=D&&ie&&ie[V];if(Se||re){var me=v.props.activeIndex!==void 0?v.props.activeIndex:V;return[F.cloneElement(v,te(te(te({},C.props),we),{},{activeIndex:me})),null,null]}if(!Be(ce))return[ae].concat(xi(E.renderActivePoints({item:C,activePoint:ce,basePoint:ee,childIndex:V,isRange:D})))}else{var ve,Ue=(ve=E.getItemByXY(E.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:ae},at=Ue.graphicalItem,Je=at.item,Ht=Je===void 0?v:Je,ze=at.childIndex,Ge=te(te(te({},C.props),we),{},{activeIndex:ze});return[F.cloneElement(Ht,Ge),null,null]}return D?[ae,null,null]:[ae,null]}),Ee(De(E),"renderCustomized",function(v,O,R){return F.cloneElement(v,te(te({key:"recharts-customized-".concat(R)},E.props),E.state))}),Ee(De(E),"renderMap",{CartesianGrid:{handler:E.renderGrid,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:E.renderReferenceElement},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:E.renderXAxis},YAxis:{handler:E.renderYAxis},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((x=_.id)!==null&&x!==void 0?x:vs("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=SC(E.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),E.state={},E}return yne(T,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var E,v;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(v=this.props.margin.top)!==null&&v!==void 0?v:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ar(this.props.children,ba);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,E=A.getBoundingClientRect(),v=E8(E),O={chartX:Math.round(x.pageX-v.left),chartY:Math.round(x.pageY-v.top)},R=E.width/A.offsetWidth||1,C=this.inRange(O.chartX,O.chartY,R);if(!C)return null;var $=this.state,N=$.xAxisMap,P=$.yAxisMap,z=this.getTooltipEventType();if(z!=="axis"&&N&&P){var V=Wr(N).scale,G=Wr(P).scale,K=V&&V.invert?V.invert(O.chartX):null,X=G&&G.invert?G.invert(O.chartY):null;return te(te({},O),{},{xValue:K,yValue:X})}var W=E_(this.state,this.props.data,this.props.layout,C);return W?te(te({},O),W):null}},{key:"inRange",value:function(x,A){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=this.props.layout,O=x/E,R=A/E;if(v==="horizontal"||v==="vertical"){var C=this.state.offset,$=O>=C.left&&O<=C.left+C.width&&R>=C.top&&R<=C.top+C.height;return $?{x:O,y:R}:null}var N=this.state,P=N.angleAxisMap,z=N.radiusAxisMap;if(P&&z){var V=Wr(P);return E0({x:O,y:R},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),E=Ar(x,ba),v={};E&&A==="axis"&&(E.props.trigger==="click"?v={onClick:this.handleClick}:v={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=Dl(this.props,this.handleOuterEvent);return te(te({},O),v)}},{key:"addListener",value:function(){Pd.on($d,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Pd.removeListener($d,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,E){for(var v=this.state.formattedGraphicalItems,O=0,R=v.length;Oy.jsx(jv,{cx:e,cy:t,fill:j.blueTextAccent,r:2}),Bne=()=>{const e=Kt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),n=t.map(a=>a.year).filter(a=>a),r=t.map(a=>a.rate).filter(a=>a);return y.jsx(Une,{direction:"column",px:24,py:16,children:y.jsx(g8,{height:"100%",width:"100%",children:y.jsxs(jne,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(Gv,{stroke:"#f5f5f5"}),y.jsx(bc,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:j.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(yc,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:j.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(ba,{cursor:{strokeDasharray:"3 3"}}),y.jsx(ks,{data:t,fill:j.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(Fne,{})})]})})})},Une=H(q)` + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+a-s*m," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return c},cQ=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),p=Math.min(o,o+l),f=Math.max(o,o+l);return r>=u&&r<=c&&a>=p&&a<=f}return!1},dQ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$v=function(t){var n=L0(L0({},dQ),t),r=F.useRef(),a=F.useState(-1),i=nQ(a,2),o=i[0],s=i[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,c=n.width,p=n.height,f=n.radius,h=n.className,m=n.animationEasing,b=n.animationDuration,S=n.animationBegin,T=n.isAnimationActive,_=n.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||p!==+p||c===0||p===0)return null;var E=rt("recharts-rectangle",h);return _?Y.createElement(Nr,{canBegin:o>0,from:{width:c,height:p,x:l,y:u},to:{width:c,height:p,x:l,y:u},duration:b,animationEasing:m,isActive:_},function(A){var x=A.width,v=A.height,O=A.x,R=A.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,isActive:T,easing:m},Y.createElement("path",cu({},He(n,!0),{className:E,d:M0(O,R,x,v,f),ref:r})))}):Y.createElement("path",cu({},He(n,!0),{className:E,d:M0(l,u,c,p,f)}))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vQ=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},SQ=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,p=c===void 0?0:c,f=t.height,h=f===void 0?0:f,m=t.className,b=bQ(t,pQ),S=fQ({x:r,y:i,top:s,left:u,width:p,height:h},b);return!fe(r)||!fe(i)||!fe(p)||!fe(h)||!fe(s)||!fe(u)?null:Y.createElement("path",Qb({},He(S,!0),{className:rt("recharts-cross",m),d:vQ(r,i,p,h,s,u)}))},xQ=hI,EQ=gI,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||EQ(e)&&xQ(e)==wQ}var TQ=_Q;const AQ=St(TQ);function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:c,lowerWidth:p,height:f,x:l,y:u},duration:b,animationEasing:m,isActive:T},function(E){var A=E.upperWidth,x=E.lowerWidth,v=E.height,O=E.x,R=E.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,easing:m},Y.createElement("path",du({},He(n,!0),{className:_,d:B0(O,R,A,x,v),ref:r})))}):Y.createElement("g",null,Y.createElement("path",du({},He(n,!0),{className:_,d:B0(l,u,c,p,f)})))},$Q=["option","shapeType","propTransformer","activeClassName","isActive"];function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}function jQ(e,t){if(e==null)return{};var n=FQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pu(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 gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}function vn(e,t,n){return t=IN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e){var t=wJ(e,"string");return gi(t)==="symbol"?t:String(t)}function wJ(e,t){if(gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _J=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=mo().domain(fu(0,l)).range([i,i+o-s]),c=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:c}},Y0=function(t){return t.changedTouches&&!!t.changedTouches.length},ts=function(e){vJ(n,e);var t=SJ(n);function n(r){var a;return bJ(this,n),a=t.call(this,r),vn(nr(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),vn(nr(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),vn(nr(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()}),vn(nr(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),vn(nr(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),vn(nr(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),vn(nr(a),"handleSlideDragStart",function(i){var o=Y0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(nr(a),"startX"),endX:a.handleTravellerDragStart.bind(nr(a),"endX")},a.state={},a}return yJ(n,[{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,u=l.gap,c=l.data,p=c.length-1,f=Math.min(i,o),h=Math.max(i,o),m=n.getIndexInRange(s,f),b=n.getIndexInRange(s,h);return{startIndex:m-m%u,endIndex:b===p?p:b-b%u}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=sn(o[a],l,a);return Fe(s)?s(u,a):u}},{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,u=this.props,c=u.x,p=u.width,f=u.travellerWidth,h=u.startIndex,m=u.endIndex,b=u.onChange,S=a.pageX-o;S>0?S=Math.min(S,c+p-f-l,c+p-f-s):S<0&&(S=Math.max(S,c-s,c-l));var T=this.getIndex({startX:s+S,endX:l+S});(T.startIndex!==h||T.endIndex!==m)&&b&&b(T),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=Y0(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,u=o.endX,c=o.startX,p=this.state[l],f=this.props,h=f.x,m=f.width,b=f.travellerWidth,S=f.onChange,T=f.gap,_=f.data,E={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,h+m-b-p):A<0&&(A=Math.max(A,h-p)),E[l]=p+A;var x=this.getIndex(E),v=x.startIndex,O=x.endIndex,R=function(){var $=_.length-1;return l==="startX"&&(u>c?v%T===0:O%T===0)||uc?O%T===0:v%T===0)||u>c&&O===$};this.setState((i={},vn(i,l,p+A),vn(i,"brushMoveStartX",a.pageX),i),function(){S&&R()&&S(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,c=s.endX,p=this.state[i],f=l.indexOf(p);if(f!==-1){var h=f+a;if(!(h===-1||h>=l.length)){var m=l[h];i==="startX"&&m>=c||i==="endX"&&m<=u||this.setState(vn({},i,m),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,u=a.fill,c=a.stroke;return Y.createElement("rect",{stroke:c,fill:u,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,u=a.data,c=a.children,p=a.padding,f=F.Children.only(c);return f?Y.cloneElement(f,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,u=s.travellerWidth,c=s.height,p=s.traveller,f=s.ariaLabel,h=s.data,m=s.startIndex,b=s.endIndex,S=Math.max(a,this.props.x),T=Ld(Ld({},He(this.props)),{},{x:S,y:l,width:u,height:c}),_=f||"Min value: ".concat(h[m].name,", Max value: ").concat(h[b].name);return Y.createElement(yt,{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"}},n.renderTraveller(p,T))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,c=o.travellerWidth,p=Math.min(a,i)+c,f=Math.max(Math.abs(i-a)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:p,y:s,width:f,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,u=a.travellerWidth,c=a.stroke,p=this.state,f=p.startX,h=p.endX,m=5,b={pointerEvents:"none",fill:c};return Y.createElement(yt,{className:"recharts-brush-texts"},Y.createElement(Yl,hu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:s+l/2},b),this.getTextOfTick(i)),Y.createElement(Yl,hu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+m,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,u=a.y,c=a.width,p=a.height,f=a.alwaysShowText,h=this.state,m=h.startX,b=h.endX,S=h.isTextActive,T=h.isSlideMoving,_=h.isTravellerMoving,E=h.isTravellerFocused;if(!i||!i.length||!fe(l)||!fe(u)||!fe(c)||!fe(p)||c<=0||p<=0)return null;var A=rt("recharts-brush",o),x=Y.Children.count(s)===1,v=mJ("userSelect","none");return Y.createElement(yt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(S||T||_||E||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,u=a.stroke,c=Math.floor(o+l/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),Y.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return Y.isValidElement(a)?o=Y.cloneElement(a,i):Fe(a)?o=a(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,u=a.travellerWidth,c=a.updateId,p=a.startIndex,f=a.endIndex;if(o!==i.prevData||c!==i.prevUpdateId)return Ld({prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s},o&&o.length?_J({data:o,width:s,x:l,travellerWidth:u,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var h=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);a[u]>i?l=u:s=u}return i>=a[l]?l:s}}]),n}(F.PureComponent);vn(ts,"displayName","Brush");vn(ts,"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 TJ=CI;function AJ(e,t){var n;return TJ(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var kJ=AJ,OJ=aF,IJ=Ta,RJ=kJ,CJ=ku,NJ=ec;function DJ(e,t,n){var r=CJ(e)?OJ:RJ;return n&&NJ(e,t,n)&&(t=void 0),r(e,IJ(t))}var LJ=DJ;const MJ=St(LJ);var dr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},PJ=lj,$J=iF,jJ=Ta;function FJ(e,t){var n={};return t=jJ(t),$J(e,function(r,a,i){PJ(n,a,t(r,a,i))}),n}var BJ=FJ;const UJ=St(BJ);function zJ(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function oee(e,t){var n=e.x,r=e.y,a=aee(e,eee),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||a.height),c=parseInt(u,10),p="".concat(t.width||a.width),f=parseInt(p,10);return to(to(to(to(to({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function X0(e){return Y.createElement(Jb,ty({shapeType:"rectangle",propTransformer:oee,activeClassName:"recharts-active-bar"},e))}var see=["value","background"];function mi(e){"@babel/helpers - typeof";return mi=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},mi(e)}function lee(e,t){if(e==null)return{};var n=uee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function mu(){return mu=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 bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bu(e)}function Xr(e,t,n){return t=CN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CN(e){var t=mee(e,"string");return mi(t)==="symbol"?t:String(t)}function mee(e,t){if(mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hc=function(e){pee(n,e);var t=fee(n);function n(){var r;cee(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(V)0&&Math.abs(z)0&&(z=Math.min((ye||0)-(V[re-1]||0),z))});var G=z/P,K=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(O=G*K/2),b.padding==="no-gap"){var X=ai(t.barCategoryGap,G*K),W=G*K/2;O=W-X-(W-X)/K*X}}a==="xAxis"?R=[r.left+(E.left||0)+(O||0),r.left+r.width-(E.right||0)-(O||0)]:a==="yAxis"?R=l==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(O||0),r.top+r.height-(E.bottom||0)-(O||0)]:R=b.range,x&&(R=[R[1],R[0]]);var Z=z7(b,i,f),D=Z.scale,ie=Z.realScaleType;D.domain(T).range(R),G7(D);var ne=Z7(D,Vn(Vn({},b),{},{realScaleType:ie}));a==="xAxis"?(N=S==="top"&&!A||S==="bottom"&&A,C=r.left,$=p[v]-N*b.height):a==="yAxis"&&(N=S==="left"&&!A||S==="right"&&A,C=p[v]-N*b.width,$=r.top);var M=Vn(Vn(Vn({},b),ne),{},{realScaleType:ie,x:C,y:$,scale:D,width:a==="xAxis"?r.width:b.width,height:a==="yAxis"?r.height:b.height});return M.bandSize=su(M,ne),!b.hide&&a==="xAxis"?p[v]+=(N?-1:1)*M.height:b.hide||(p[v]+=(N?-1:1)*M.width),Vn(Vn({},h),{},gc({},m,M))},{})},DN=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},xee=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return DN({x:n,y:r},{x:a,y:i})},LN=function(){function e(t){bee(this,e),this.scale=t}return yee(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}]),e}();gc(LN,"EPS",1e-4);var Fv=function(t){var n=Object.keys(t).reduce(function(r,a){return Vn(Vn({},r),{},gc({},a,LN.create(t[a])))},{});return Vn(Vn({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return UJ(a,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return RN(a,function(i,o){return n[o].isInRange(i)})}})};function Eee(e){return(e%180+180)%180}var wee=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Eee(a),o=i*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function qee(e,t){return MN(e,t+1)}function Hee(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,p=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:MN(r,u)};var b=l,S,T=function(){return S===void 0&&(S=n(m,b)),S},_=m.coordinate,E=l===0||yu(e,_,T,c,s);E||(l=0,c=o,u+=1),E&&(c=_+e*(T()/2+a),l+=u)},f;u<=i.length;)if(f=p(),f)return f.v;return[]}function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0?h.coordinate-S*e:h.coordinate})}else i[f]=h=Vt(Vt({},h),{},{tickCoord:h.coordinate});var T=yu(e,h.tickCoord,b,s,l);T&&(l=h.tickCoord-e*(b()/2+a),i[f]=Vt(Vt({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function Xee(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(i){var c=r[s-1],p=n(c,s-1),f=e*(c.coordinate+e*p/2-u);o[s-1]=c=Vt(Vt({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate});var h=yu(e,c.tickCoord,function(){return p},l,u);h&&(u=c.tickCoord-e*(p/2+a),o[s-1]=Vt(Vt({},c),{},{isShow:!0}))}for(var m=i?s-1:s,b=function(_){var E=o[_],A,x=function(){return A===void 0&&(A=n(E,_)),A};if(_===0){var v=e*(E.coordinate-e*x()/2-l);o[_]=E=Vt(Vt({},E),{},{tickCoord:v<0?E.coordinate-v*e:E.coordinate})}else o[_]=E=Vt(Vt({},E),{},{tickCoord:E.coordinate});var O=yu(e,E.tickCoord,x,l,u);O&&(l=E.tickCoord+e*(x()/2+a),o[_]=Vt(Vt({},E),{},{isShow:!0}))},S=0;S=2?Zn(a[1].coordinate-a[0].coordinate):1,T=Gee(i,S,h);return l==="equidistantPreserveStart"?Hee(S,T,b,a,o):(l==="preserveStart"||l==="preserveStartEnd"?f=Xee(S,T,b,a,o,l==="preserveStartEnd"):f=Kee(S,T,b,a,o),f.filter(function(_){return _.isShow}))}var Zee=["viewBox"],Qee=["viewBox"],Jee=["ticks"];function bi(e){"@babel/helpers - typeof";return bi=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},bi(e)}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(e,t){for(var n=0;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 vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Uv(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=lte(e,"string");return bi(t)==="symbol"?t:String(t)}function lte(e,t){if(bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo=function(e){rte(n,e);var t=ate(n);function n(r){var a;return tte(this,n),a=t.call(this,r),a.state={fontSize:"",letterSpacing:""},a}return nte(n,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Md(a,Zee),l=this.props,u=l.viewBox,c=Md(l,Qee);return!Ja(o,u)||!Ja(s,c)||!Ja(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,u=i.height,c=i.orientation,p=i.tickSize,f=i.mirror,h=i.tickMargin,m,b,S,T,_,E,A=f?-1:1,x=a.tickSize||p,v=fe(a.tickCoord)?a.tickCoord:a.coordinate;switch(c){case"top":m=b=a.coordinate,T=s+ +!f*u,S=T-A*x,E=S-A*h,_=v;break;case"left":S=T=a.coordinate,b=o+ +!f*l,m=b-A*x,_=m-A*h,E=v;break;case"right":S=T=a.coordinate,b=o+ +f*l,m=b+A*x,_=m+A*h,E=v;break;default:m=b=a.coordinate,T=s+ +f*u,S=T+A*x,E=S+A*h,_=v;break}return{line:{x1:m,y1:S,x2:b,y2:T},tick:{x:_,y:E}}}},{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,u=a.orientation,c=a.mirror,p=a.axisLine,f=en(en(en({},He(this.props)),He(p)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!c||u==="bottom"&&c);f=en(en({},f),{},{x1:i,y1:o+h*l,x2:i+s,y2:o+h*l})}else{var m=+(u==="left"&&!c||u==="right"&&c);f=en(en({},f),{},{x1:i+m*s,y1:o,x2:i+m*s,y2:o+l})}return Y.createElement("line",Ya({},f,{className:rt("recharts-cartesian-axis-line",Dn(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,u=l.tickLine,c=l.stroke,p=l.tick,f=l.tickFormatter,h=l.unit,m=oy(en(en({},this.props),{},{ticks:a}),i,o),b=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),T=He(this.props),_=He(p),E=en(en({},T),{},{fill:"none"},He(u)),A=m.map(function(x,v){var O=s.getTickLineCoord(x),R=O.line,C=O.tick,$=en(en(en(en({textAnchor:b,verticalAnchor:S},T),{},{stroke:"none",fill:c},_),C),{},{index:v,payload:x,visibleTicksCount:m.length,tickFormatter:f});return Y.createElement(yt,Ya({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},wo(s.props,x,v)),u&&Y.createElement("line",Ya({},E,R,{className:rt("recharts-cartesian-axis-tick-line",Dn(u,"className"))})),p&&n.renderTickItem(p,$,"".concat(Fe(f)?f(x.value,v):x.value).concat(h||"")))});return Y.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,u=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var f=this.props,h=f.ticks,m=Md(f,Jee),b=h;return Fe(u)&&(b=h&&h.length>0?u(this.props):u(m)),s<=0||l<=0||!b||!b.length?null:Y.createElement(yt,{className:rt("recharts-cartesian-axis",c),ref:function(T){a.layerReference=T}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return Y.isValidElement(a)?s=Y.cloneElement(a,i):Fe(a)?s=a(i):s=Y.createElement(Yl,Ya({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(F.Component);Uv(yo,"displayName","CartesianAxis");Uv(yo,"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 ute=["x1","y1","x2","y2","key"],cte=["offset"];function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(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 Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function zv(e,t,n){return t=$N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e){var t=vte(e,"string");return yi(t)==="symbol"?t:String(t)}function vte(e,t){if(yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gv=function(e){hte(n,e);var t=gte(n);function n(){return pte(this,n),t.apply(this,arguments)}return fte(n,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{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,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+l-l)}).sort(function(m,b){return m-b});l!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?l+c-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),x:m,y:u,width:T,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{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,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+u-u)}).sort(function(m,b){return m-b});u!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?u+p-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),y:m,x:l,height:T,width:c,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{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,u=i.width,c=i.height;return Y.createElement("rect",{x:s,y:l,width:u,height:c,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,u=a.horizontal,c=a.vertical,p=a.horizontalCoordinatesGenerator,f=a.verticalCoordinatesGenerator,h=a.xAxis,m=a.yAxis,b=a.offset,S=a.chartWidth,T=a.chartHeight,_=a.syncWithTicks,E=a.horizontalValues,A=a.verticalValues;if(!fe(s)||s<=0||!fe(l)||l<=0||!fe(i)||i!==+i||!fe(o)||o!==+o)return null;var x=this.props,v=x.horizontalPoints,O=x.verticalPoints;if((!v||!v.length)&&Fe(p)){var R=E&&E.length;v=p({yAxis:m?Hr(Hr({},m),{},{ticks:R?E:m.ticks}):void 0,width:S,height:T,offset:b},R?!0:_)}if((!O||!O.length)&&Fe(f)){var C=A&&A.length;O=f({xAxis:h?Hr(Hr({},h),{},{ticks:C?A:h.ticks}):void 0,width:S,height:T,offset:b},C?!0:_)}return Y.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(O),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(O))}}],[{key:"renderLineItem",value:function(a,i){var o;if(Y.isValidElement(a))o=Y.cloneElement(a,i);else if(Fe(a))o=a(i);else{var s=i.x1,l=i.y1,u=i.x2,c=i.y2,p=i.key,f=d_(i,ute),h=He(f);h.offset;var m=d_(h,cte);o=Y.createElement("line",ly({},m,{x1:s,y1:l,x2:u,y2:c,fill:"none",key:p}))}return o}}]),n}(F.PureComponent);zv(Gv,"displayName","CartesianGrid");zv(Gv,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var mc=function(){return null};mc.displayName="ZAxis";mc.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var Ste=["option","isActive"];function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function wte(e){var t=e.option,n=e.isActive,r=xte(e,Ste);return typeof t=="string"?Y.createElement(Jb,vo({option:Y.createElement(Qu,vo({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(Jb,vo({option:t,isActive:n,shapeType:"symbols"},r))}function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function So(){return So=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 xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xu(e)}function Zr(e,t,n){return t=jN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jN(e){var t=Rte(e,"string");return vi(t)==="symbol"?t:String(t)}function Rte(e,t){if(vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ks=function(e){Ate(n,e);var t=kte(n);function n(){var r;_te(this,n);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var Mte=Lte,Pte=kN;function $te(e){var t=Pte(e),n=t%1;return t===t?n?t-n:t:0}var jte=$te,Fte=iC,Bte=Ta,Ute=jte,zte=Math.max;function Gte(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Ute(n);return a<0&&(a=zte(r+a,0)),Fte(e,Bte(t),a)}var qte=Gte,Hte=Mte,Wte=qte,Vte=Hte(Wte),Yte=Vte;const Kte=St(Yte);var Xte="Invariant failed";function Zte(e,t){if(!e)throw new Error(Xte)}function FN(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Gt(t,n,r,a),s=Gt(t,n,r,i);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function m_(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){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 Jte(e,t){if(e){if(typeof e=="string")return dy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dy(e,t)}}function ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tne(e){if(Array.isArray(e))return dy(e)}function dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_(e,t){for(var n=0;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 Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eu(e)}function xi(e){return Tne(e)||_ne(e)||zN(e)||wne()}function wne(){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 zN(e,t){if(e){if(typeof e=="string")return hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hy(e,t)}}function _ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tne(e){if(Array.isArray(e))return hy(e)}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&fe(a)&&fe(i)?t.slice(a,i+1):[]};function HN(e){return e==="number"?[0,"auto"]:void 0}var WN=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,s=vc(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,u){var c,p=u.props.hide;if(p)return l;var f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var m=f===void 0?s:f;h=Nl(m,o.dataKey,a)}else h=f&&f[r]||s[r];return h?[].concat(xi(l),[wN(u,h)]):l},[])},E_=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Ine(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=P7(o,s,u,l);if(c>=0&&u){var p=u[c]&&u[c].value,f=WN(t,n,c,p),h=Rne(r,s,c,i);return{activeTooltipIndex:c,activeLabel:p,activePayload:f,activeCoordinate:h}}return null},Cne=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=t.stackOffset,h=xN(c,i);return r.reduce(function(m,b){var S,T=b.props,_=T.type,E=T.dataKey,A=T.allowDataOverflow,x=T.allowDuplicatedCategory,v=T.scale,O=T.ticks,R=T.includeHidden,C=b.props[o];if(m[C])return m;var $=vc(t.data,{graphicalItems:a.filter(function(ne){return ne.props[o]===C}),dataStartIndex:l,dataEndIndex:u}),N=$.length,P,z,V;lne(b.props.domain,A,_)&&(P=Hb(b.props.domain,null,A),h&&(_==="number"||v!=="auto")&&(V=bo($,E,"category")));var G=HN(_);if(!P||P.length===0){var K,X=(K=b.props.domain)!==null&&K!==void 0?K:G;if(E){if(P=bo($,E,_),_==="category"&&h){var W=A3(P);x&&W?(z=P,P=fu(0,N)):x||(P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0?ne:[].concat(xi(ne),[M])},[]))}else if(_==="category")x?P=P.filter(function(ne){return ne!==""&&!Be(ne)}):P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0||M===""||Be(M)?ne:[].concat(xi(ne),[M])},[]);else if(_==="number"){var Z=U7($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),E,i,c);Z&&(P=Z)}h&&(_==="number"||v!=="auto")&&(V=bo($,E,"category"))}else h?P=fu(0,N):s&&s[C]&&s[C].hasStack&&_==="number"?P=f==="expand"?[0,1]:EN(s[C].stackGroups,l,u):P=SN($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),_,c,!0);if(_==="number")P=py(p,P,C,i,O),X&&(P=Hb(X,P,A));else if(_==="category"&&X){var D=X,ie=P.every(function(ne){return D.indexOf(ne)>=0});ie&&(P=D)}}return te(te({},m),{},Ee({},C,te(te({},b.props),{},{axisType:i,domain:P,categoricalDomain:V,duplicateDomain:z,originalDomain:(S=b.props.domain)!==null&&S!==void 0?S:G,isCategorical:h,layout:c})))},{})},Nne=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=vc(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=f.length,m=xN(c,i),b=-1;return r.reduce(function(S,T){var _=T.props[o],E=HN("number");if(!S[_]){b++;var A;return m?A=fu(0,h):s&&s[_]&&s[_].hasStack?(A=EN(s[_].stackGroups,l,u),A=py(p,A,_,i)):(A=Hb(E,SN(f,r.filter(function(x){return x.props[o]===_&&!x.props.hide}),"number",c),a.defaultProps.allowDataOverflow),A=py(p,A,_,i)),te(te({},S),{},Ee({},_,te(te({axisType:i},a.defaultProps),{},{hide:!0,orientation:Dn(kne,"".concat(i,".").concat(b%2),null),domain:A,originalDomain:E,isCategorical:m,layout:c})))}return S},{})},Dne=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.children,p="".concat(a,"Id"),f=En(c,i),h={};return f&&f.length?h=Cne(t,{axes:f,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Nne(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Lne=function(t){var n=Wr(t),r=Vr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:lv(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:su(n,r)}},w_=function(t){var n=t.children,r=t.defaultShowTooltip,a=Ar(n,ts),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Mne=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ir(n&&n.type);return r&&r.indexOf("Bar")>=0})},__=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Pne=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,c=r.height,p=r.children,f=r.margin||{},h=Ar(p,ts),m=Ar(p,Ao),b=Object.keys(l).reduce(function(x,v){var O=l[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},x),{},Ee({},R,x[R]+O.width)):x},{left:f.left||0,right:f.right||0}),S=Object.keys(o).reduce(function(x,v){var O=o[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},x),{},Ee({},R,Dn(x,"".concat(R))+O.height)):x},{top:f.top||0,bottom:f.bottom||0}),T=te(te({},S),b),_=T.bottom;h&&(T.bottom+=h.props.height||ts.defaultProps.height),m&&n&&(T=F7(T,a,r,n));var E=u-T.left-T.right,A=c-T.top-T.bottom;return te(te({brushBottom:_},T),{},{width:Math.max(E,0),height:Math.max(A,0)})},$ne=function(t){var n,r=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,p=t.formatAxisMap,f=t.defaultProps,h=function(S,T){var _=T.graphicalItems,E=T.stackGroups,A=T.offset,x=T.updateId,v=T.dataStartIndex,O=T.dataEndIndex,R=S.barSize,C=S.layout,$=S.barGap,N=S.barCategoryGap,P=S.maxBarSize,z=__(C),V=z.numericAxisName,G=z.cateAxisName,K=Mne(_),X=K&&$7({barSize:R,stackGroups:E}),W=[];return _.forEach(function(Z,D){var ie=vc(S.data,{graphicalItems:[Z],dataStartIndex:v,dataEndIndex:O}),ne=Z.props,M=ne.dataKey,ye=ne.maxBarSize,re=Z.props["".concat(V,"Id")],Se=Z.props["".concat(G,"Id")],je={},we=u.reduce(function(Ge,Xe){var Ft,Wt=T["".concat(Xe.axisType,"Map")],B=Z.props["".concat(Xe.axisType,"Id")];Wt&&Wt[B]||Xe.axisType==="zAxis"||Zte(!1);var Q=Wt[B];return te(te({},Ge),{},(Ft={},Ee(Ft,Xe.axisType,Q),Ee(Ft,"".concat(Xe.axisType,"Ticks"),Vr(Q)),Ft))},je),ae=we[G],de=we["".concat(G,"Ticks")],ce=E&&E[re]&&E[re].hasStack&&J7(Z,E[re].stackGroups),ee=Ir(Z.type).indexOf("Bar")>=0,_e=su(ae,de),me=[];if(ee){var ve,Ue,at=Be(ye)?P:ye,Je=(ve=(Ue=su(ae,de,!0))!==null&&Ue!==void 0?Ue:at)!==null&&ve!==void 0?ve:0;me=j7({barGap:$,barCategoryGap:N,bandSize:Je!==_e?Je:_e,sizeList:X[Se],maxBarSize:at}),Je!==_e&&(me=me.map(function(Ge){return te(te({},Ge),{},{position:te(te({},Ge.position),{},{offset:Ge.position.offset-Je/2})})}))}var Ht=Z&&Z.type&&Z.type.getComposedData;if(Ht){var ze;W.push({props:te(te({},Ht(te(te({},we),{},{displayedData:ie,props:S,dataKey:M,item:Z,bandSize:_e,barPosition:me,offset:A,stackedData:ce,layout:C,dataStartIndex:v,dataEndIndex:O}))),{},(ze={key:Z.key||"item-".concat(D)},Ee(ze,V,we[V]),Ee(ze,G,we[G]),Ee(ze,"animationId",x),ze)),childIndex:j3(Z,S.children),item:Z})}}),W},m=function(S,T){var _=S.props,E=S.dataStartIndex,A=S.dataEndIndex,x=S.updateId;if(!dE({props:_}))return null;var v=_.children,O=_.layout,R=_.stackOffset,C=_.data,$=_.reverseStackOrder,N=__(O),P=N.numericAxisName,z=N.cateAxisName,V=En(v,a),G=X7(C,V,"".concat(P,"Id"),"".concat(z,"Id"),R,$),K=u.reduce(function(ie,ne){var M="".concat(ne.axisType,"Map");return te(te({},ie),{},Ee({},M,Dne(_,te(te({},ne),{},{graphicalItems:V,stackGroups:ne.axisType===P&&G,dataStartIndex:E,dataEndIndex:A}))))},{}),X=Pne(te(te({},K),{},{props:_,graphicalItems:V}),T==null?void 0:T.legendBBox);Object.keys(K).forEach(function(ie){K[ie]=p(_,K[ie],X,ie.replace("Map",""),r)});var W=K["".concat(z,"Map")],Z=Lne(W),D=h(_,te(te({},K),{},{dataStartIndex:E,dataEndIndex:A,updateId:x,graphicalItems:V,stackGroups:G,offset:X}));return te(te({formattedGraphicalItems:D,graphicalItems:V,offset:X,stackGroups:G},Z),K)};return n=function(b){vne(T,b);var S=Sne(T);function T(_){var E,A,x;return bne(this,T),x=S.call(this,_),Ee(De(x),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ee(De(x),"accessibilityManager",new sne),Ee(De(x),"handleLegendBBoxUpdate",function(v){if(v){var O=x.state,R=O.dataStartIndex,C=O.dataEndIndex,$=O.updateId;x.setState(te({legendBBox:v},m({props:x.props,dataStartIndex:R,dataEndIndex:C,updateId:$},te(te({},x.state),{},{legendBBox:v}))))}}),Ee(De(x),"handleReceiveSyncEvent",function(v,O,R){if(x.props.syncId===v){if(R===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(O)}}),Ee(De(x),"handleBrushChange",function(v){var O=v.startIndex,R=v.endIndex;if(O!==x.state.dataStartIndex||R!==x.state.dataEndIndex){var C=x.state.updateId;x.setState(function(){return te({dataStartIndex:O,dataEndIndex:R},m({props:x.props,dataStartIndex:O,dataEndIndex:R,updateId:C},x.state))}),x.triggerSyncEvent({dataStartIndex:O,dataEndIndex:R})}}),Ee(De(x),"handleMouseEnter",function(v){var O=x.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});x.setState(R),x.triggerSyncEvent(R);var C=x.props.onMouseEnter;Fe(C)&&C(R,v)}}),Ee(De(x),"triggeredAfterMouseMove",function(v){var O=x.getMouseInfo(v),R=O?te(te({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(R),x.triggerSyncEvent(R);var C=x.props.onMouseMove;Fe(C)&&C(R,v)}),Ee(De(x),"handleItemMouseEnter",function(v){x.setState(function(){return{isTooltipActive:!0,activeItem:v,activePayload:v.tooltipPayload,activeCoordinate:v.tooltipPosition||{x:v.cx,y:v.cy}}})}),Ee(De(x),"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),Ee(De(x),"handleMouseMove",function(v){v.persist(),x.throttleTriggeredAfterMouseMove(v)}),Ee(De(x),"handleMouseLeave",function(v){var O={isTooltipActive:!1};x.setState(O),x.triggerSyncEvent(O);var R=x.props.onMouseLeave;Fe(R)&&R(O,v)}),Ee(De(x),"handleOuterEvent",function(v){var O=$3(v),R=Dn(x.props,"".concat(O));if(O&&Fe(R)){var C,$;/.*touch.*/i.test(O)?$=x.getMouseInfo(v.changedTouches[0]):$=x.getMouseInfo(v),R((C=$)!==null&&C!==void 0?C:{},v)}}),Ee(De(x),"handleClick",function(v){var O=x.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});x.setState(R),x.triggerSyncEvent(R);var C=x.props.onClick;Fe(C)&&C(R,v)}}),Ee(De(x),"handleMouseDown",function(v){var O=x.props.onMouseDown;if(Fe(O)){var R=x.getMouseInfo(v);O(R,v)}}),Ee(De(x),"handleMouseUp",function(v){var O=x.props.onMouseUp;if(Fe(O)){var R=x.getMouseInfo(v);O(R,v)}}),Ee(De(x),"handleTouchMove",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(v.changedTouches[0])}),Ee(De(x),"handleTouchStart",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&x.handleMouseDown(v.changedTouches[0])}),Ee(De(x),"handleTouchEnd",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&x.handleMouseUp(v.changedTouches[0])}),Ee(De(x),"triggerSyncEvent",function(v){x.props.syncId!==void 0&&Pd.emit($d,x.props.syncId,v,x.eventEmitterSymbol)}),Ee(De(x),"applySyncEvent",function(v){var O=x.props,R=O.layout,C=O.syncMethod,$=x.state.updateId,N=v.dataStartIndex,P=v.dataEndIndex;if(v.dataStartIndex!==void 0||v.dataEndIndex!==void 0)x.setState(te({dataStartIndex:N,dataEndIndex:P},m({props:x.props,dataStartIndex:N,dataEndIndex:P,updateId:$},x.state)));else if(v.activeTooltipIndex!==void 0){var z=v.chartX,V=v.chartY,G=v.activeTooltipIndex,K=x.state,X=K.offset,W=K.tooltipTicks;if(!X)return;if(typeof C=="function")G=C(W,v);else if(C==="value"){G=-1;for(var Z=0;Z=0){var ce,ee;if(z.dataKey&&!z.allowDuplicatedCategory){var _e=typeof z.dataKey=="function"?de:"payload.".concat(z.dataKey.toString());ce=Nl(Z,_e,G),ee=D&&ie&&Nl(ie,_e,G)}else ce=Z==null?void 0:Z[V],ee=D&&ie&&ie[V];if(Se||re){var me=v.props.activeIndex!==void 0?v.props.activeIndex:V;return[F.cloneElement(v,te(te(te({},C.props),we),{},{activeIndex:me})),null,null]}if(!Be(ce))return[ae].concat(xi(x.renderActivePoints({item:C,activePoint:ce,basePoint:ee,childIndex:V,isRange:D})))}else{var ve,Ue=(ve=x.getItemByXY(x.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:ae},at=Ue.graphicalItem,Je=at.item,Ht=Je===void 0?v:Je,ze=at.childIndex,Ge=te(te(te({},C.props),we),{},{activeIndex:ze});return[F.cloneElement(Ht,Ge),null,null]}return D?[ae,null,null]:[ae,null]}),Ee(De(x),"renderCustomized",function(v,O,R){return F.cloneElement(v,te(te({key:"recharts-customized-".concat(R)},x.props),x.state))}),Ee(De(x),"renderMap",{CartesianGrid:{handler:x.renderGrid,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:x.renderReferenceElement},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:x.renderXAxis},YAxis:{handler:x.renderYAxis},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((E=_.id)!==null&&E!==void 0?E:vs("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=xC(x.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),x.state={},x}return yne(T,[{key:"componentDidMount",value:function(){var E,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(E,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var x,v;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(v=this.props.margin.top)!==null&&v!==void 0?v:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=Ar(this.props.children,ba);if(E&&typeof E.props.shared=="boolean"){var A=E.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var A=this.container,x=A.getBoundingClientRect(),v=E8(x),O={chartX:Math.round(E.pageX-v.left),chartY:Math.round(E.pageY-v.top)},R=x.width/A.offsetWidth||1,C=this.inRange(O.chartX,O.chartY,R);if(!C)return null;var $=this.state,N=$.xAxisMap,P=$.yAxisMap,z=this.getTooltipEventType();if(z!=="axis"&&N&&P){var V=Wr(N).scale,G=Wr(P).scale,K=V&&V.invert?V.invert(O.chartX):null,X=G&&G.invert?G.invert(O.chartY):null;return te(te({},O),{},{xValue:K,yValue:X})}var W=E_(this.state,this.props.data,this.props.layout,C);return W?te(te({},O),W):null}},{key:"inRange",value:function(E,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=this.props.layout,O=E/x,R=A/x;if(v==="horizontal"||v==="vertical"){var C=this.state.offset,$=O>=C.left&&O<=C.left+C.width&&R>=C.top&&R<=C.top+C.height;return $?{x:O,y:R}:null}var N=this.state,P=N.angleAxisMap,z=N.radiusAxisMap;if(P&&z){var V=Wr(P);return E0({x:O,y:R},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,A=this.getTooltipEventType(),x=Ar(E,ba),v={};x&&A==="axis"&&(x.props.trigger==="click"?v={onClick:this.handleClick}:v={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=Dl(this.props,this.handleOuterEvent);return te(te({},O),v)}},{key:"addListener",value:function(){Pd.on($d,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Pd.removeListener($d,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,A,x){for(var v=this.state.formattedGraphicalItems,O=0,R=v.length;Oy.jsx(jv,{cx:e,cy:t,fill:j.blueTextAccent,r:2}),Bne=()=>{const e=Kt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),n=t.map(a=>a.year).filter(a=>a),r=t.map(a=>a.rate).filter(a=>a);return y.jsx(Une,{direction:"column",px:24,py:16,children:y.jsx(g8,{height:"100%",width:"100%",children:y.jsxs(jne,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(Gv,{stroke:"#f5f5f5"}),y.jsx(bc,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:j.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(yc,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:j.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(ba,{cursor:{strokeDasharray:"3 3"}}),y.jsx(ks,{data:t,fill:j.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(Fne,{})})]})})})},Une=H(q)` width: 100%; height: 100%; -`;var WN={},Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.cssValue=Ei.parseLengthAndUnit=void 0;var zne={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 VN(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return zne[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"})}Ei.parseLengthAndUnit=VN;function Gne(e){var t=VN(e);return"".concat(t.value).concat(t.unit)}Ei.cssValue=Gne;var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createAnimation=void 0;var qne=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` +`;var VN={},Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.cssValue=Ei.parseLengthAndUnit=void 0;var zne={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 YN(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return zne[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"})}Ei.parseLengthAndUnit=YN;function Gne(e){var t=YN(e);return"".concat(t.value).concat(t.unit)}Ei.cssValue=Gne;var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createAnimation=void 0;var qne=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` @keyframes `.concat(r,` { `).concat(t,` } - `);return i&&i.insertRule(o,0),r};Sc.createAnimation=qne;var wu=At&&At.__assign||function(){return wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne&&sI` background: ${({selected:e})=>e?j.gray300:j.gray200}; } } -`,qv=({count:e=0,updateCount:t,content:n,readOnly:r,refId:a})=>{const[i,o]=F.useState(!1);F.useEffect(()=>{o(!1)},[a]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(i||!a)){o(!0);try{await sF(a,l),t&&t(e+l)}catch(c){console.error(c)}o(!1)}}return r?e?y.jsx(A_,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[y.jsx(uj,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(A_,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?y.jsx(Jne,{color:"#fff",loading:!0,size:10}):y.jsxs(q,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(vI,{style:{color:j.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Hv=H(q)` +`,qv=({count:e=0,updateCount:t,content:n,readOnly:r,refId:a})=>{const[i,o]=F.useState(!1);F.useEffect(()=>{o(!1)},[a]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(i||!a)){o(!0);try{await sF(a,l),t&&t(e+l)}catch(c){console.error(c)}o(!1)}}return r?e?y.jsx(A_,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[y.jsx(cj,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(A_,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?y.jsx(Jne,{color:"#fff",loading:!0,size:10}):y.jsxs(q,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(vI,{style:{color:j.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Hv=H(q)` background: ${j.divider2}; height: 1px; margin: auto 22px; -`,ere=({stateless:e,node:t,searchTerm:n})=>y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(nre,{children:e&&y.jsxs(tre,{children:[y.jsx("div",{className:"icon",children:y.jsx(_I,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(vt,{children:t!=null&&t.description?ur(t.description,n):"..."})]}),tre=H(q).attrs({direction:"row",align:"center"})` +`,ere=({stateless:e,node:t,searchTerm:n})=>y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(nre,{children:e&&y.jsxs(tre,{children:[y.jsx("div",{className:"icon",children:y.jsx(TI,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(vt,{children:t!=null&&t.description?ur(t.description,n):"..."})]}),tre=H(q).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${j.GRAY3}; @@ -1471,7 +1471,7 @@ ${({disabled:e})=>e&&sI` &:hover { color: ${j.GRAY3}; } -`,are=({stateless:e,node:t})=>{var m;const[n,r]=Pt(b=>[b.transcriptIsOpen,b.setTranscriptOpen]),[a,i]=F.useState(!1),[o,s]=F.useState(""),[l,u]=F.useState(!1);if(!e&&!n)return null;const c=async()=>{try{const b=await ix(t==null?void 0:t.ref_id);s(b.data.text)}catch(b){console.error("Error fetching full transcript",b)}},p=async()=>{if(o===""){const b=await ix(t==null?void 0:t.ref_id);h(b.data.text)}else h(o);setTimeout(()=>{i(!1)},2e3)},f=async()=>{l?u(!1):(await c(),u(!0))},h=b=>{b!==void 0&&(navigator.clipboard.writeText(b),i(!0))};return y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(ore,{children:[e&&y.jsxs(ire,{children:[y.jsx("div",{className:"icon",children:y.jsx(_I,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:a?y.jsxs(ure,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(wI,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(qt,{endIcon:y.jsx(Mj,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(sre,{onClick:()=>{r(!1)},children:y.jsx(cj,{fontSize:35})})]}),y.jsxs(lre,{children:[l?o:`${(m=t==null?void 0:t.text)==null?void 0:m.substring(0,100)}`,y.jsxs(rre,{onClick:f,children:["... ",l?"show less":"more"]})]})]})},ire=H(q).attrs({direction:"row",align:"center"})` +`,are=({stateless:e,node:t})=>{var m;const[n,r]=Pt(b=>[b.transcriptIsOpen,b.setTranscriptOpen]),[a,i]=F.useState(!1),[o,s]=F.useState(""),[l,u]=F.useState(!1);if(!e&&!n)return null;const c=async()=>{try{const b=await ix(t==null?void 0:t.ref_id);s(b.data.text)}catch(b){console.error("Error fetching full transcript",b)}},p=async()=>{if(o===""){const b=await ix(t==null?void 0:t.ref_id);h(b.data.text)}else h(o);setTimeout(()=>{i(!1)},2e3)},f=async()=>{l?u(!1):(await c(),u(!0))},h=b=>{b!==void 0&&(navigator.clipboard.writeText(b),i(!0))};return y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(ore,{children:[e&&y.jsxs(ire,{children:[y.jsx("div",{className:"icon",children:y.jsx(TI,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:a?y.jsxs(ure,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(_I,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(qt,{endIcon:y.jsx(Pj,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(sre,{onClick:()=>{r(!1)},children:y.jsx(dj,{fontSize:35})})]}),y.jsxs(lre,{children:[l?o:`${(m=t==null?void 0:t.text)==null?void 0:m.substring(0,100)}`,y.jsxs(rre,{onClick:f,children:["... ",l?"show less":"more"]})]})]})},ire=H(q).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${j.GRAY3}; @@ -1519,7 +1519,7 @@ ${({disabled:e})=>e&&sI` .icon { font-size: 12px; } -`,YN=({node:e})=>{const t=Kt(),n=Pt(h=>h.currentSearch),{image_url:r,date:a,boost:i,node_type:o,id:s,show_title:l,ref_id:u}=e||t||{},[c,p]=F.useState(i||0);if(F.useEffect(()=>{p(i??0)},[i]),!e&&!t)return null;const f=e||t;return y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(cre,{children:[f&&o?y.jsx(pre,{boostCount:c||0,date:a||0,imageUrl:r,node:f,onClick:()=>null,showTitle:l,type:o}):null,y.jsx(Fd,{}),y.jsxs(dre,{children:[y.jsx(Lu,{amt:c}),y.jsx(qv,{content:e||t,count:c,refId:u,updateCount:p})]}),y.jsx(Fd,{}),y.jsx(k_,{children:y.jsx(ere,{node:e||t,searchTerm:n,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&y.jsxs(y.Fragment,{children:[y.jsx(Fd,{}),y.jsx(k_,{children:y.jsx(are,{node:e||t,stateless:!0},s)})]})]})})},cre=H(q)` +`,KN=({node:e})=>{const t=Kt(),n=Pt(h=>h.currentSearch),{image_url:r,date:a,boost:i,node_type:o,id:s,show_title:l,ref_id:u}=e||t||{},[c,p]=F.useState(i||0);if(F.useEffect(()=>{p(i??0)},[i]),!e&&!t)return null;const f=e||t;return y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(cre,{children:[f&&o?y.jsx(pre,{boostCount:c||0,date:a||0,imageUrl:r,node:f,onClick:()=>null,showTitle:l,type:o}):null,y.jsx(Fd,{}),y.jsxs(dre,{children:[y.jsx(Lu,{amt:c}),y.jsx(qv,{content:e||t,count:c,refId:u,updateCount:p})]}),y.jsx(Fd,{}),y.jsx(k_,{children:y.jsx(ere,{node:e||t,searchTerm:n,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&y.jsxs(y.Fragment,{children:[y.jsx(Fd,{}),y.jsx(k_,{children:y.jsx(are,{node:e||t,stateless:!0},s)})]})]})})},cre=H(q)` flex: 1; min-height: 100%; flex-direction: column; @@ -1563,7 +1563,7 @@ ${({disabled:e})=>e&&sI` margin-left: 8px; } } -`,hre=({selectedNodeShow:e})=>{const t=Kt(),n=ps(),{type:r}=t||{},a=Pt(i=>i.currentSearch);return y.jsxs(fre,{p:20,children:[y.jsx(q,{align:"flex-start",children:r&&y.jsx(Ai,{type:r})}),y.jsx(q,{direction:"row",mb:22,mt:22,children:y.jsx(q,{grow:1,shrink:1,children:y.jsx(vt,{className:"episode-title",kind:"heading",children:ur((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?y.jsxs(q,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(Jn,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(vt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},gre="Flow 1",mre=0,bre=12,yre=15,vre={g:"LottieFiles Figma v45"},Sre=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],xre="5.7.0",Ere=60,wre=57.6,_re=0,Tre=[],Are={nm:gre,ddd:mre,h:bre,w:yre,meta:vre,layers:Sre,v:xre,fr:Ere,op:wre,ip:_re,assets:Tre},kre=()=>{const e=F.useRef(null);return F.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=dj.loadAnimation({container:t,animationData:Are,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Ore=H(q).attrs(()=>({direction:"row"}))` +`,hre=({selectedNodeShow:e})=>{const t=Kt(),n=ps(),{type:r}=t||{},a=Pt(i=>i.currentSearch);return y.jsxs(fre,{p:20,children:[y.jsx(q,{align:"flex-start",children:r&&y.jsx(Ai,{type:r})}),y.jsx(q,{direction:"row",mb:22,mt:22,children:y.jsx(q,{grow:1,shrink:1,children:y.jsx(vt,{className:"episode-title",kind:"heading",children:ur((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?y.jsxs(q,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(Jn,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(vt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},gre="Flow 1",mre=0,bre=12,yre=15,vre={g:"LottieFiles Figma v45"},Sre=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,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,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,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,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],xre="5.7.0",Ere=60,wre=57.6,_re=0,Tre=[],Are={nm:gre,ddd:mre,h:bre,w:yre,meta:vre,layers:Sre,v:xre,fr:Ere,op:wre,ip:_re,assets:Tre},kre=()=>{const e=F.useRef(null);return F.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=pj.loadAnimation({container:t,animationData:Are,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Ore=H(q).attrs(()=>({direction:"row"}))` cursor: pointer; color: ${j.primaryText1}; border-top: 1px solid ${j.black}; @@ -1587,7 +1587,7 @@ ${({disabled:e})=>e&&sI` color: ${j.white}; } } -`,Ire=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const a=n?"blueTextAccent":"placeholderText";return n?(pj,j[a]):(fj,j[a]),y.jsxs(Ore,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(TI,{className:"play-pause",children:n?y.jsx(kre,{}):y.jsx(Pj,{})}),!1]}),y.jsxs(Rre,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:lF(t.timestamp)}),y.jsx("span",{className:"title",children:Ry(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(q,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(hj,{})})})]})},Rre=H(q)` +`,Ire=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const a=n?"blueTextAccent":"placeholderText";return n?(fj,j[a]):(hj,j[a]),y.jsxs(Ore,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(AI,{className:"play-pause",children:n?y.jsx(kre,{}):y.jsx($j,{})}),!1]}),y.jsxs(Rre,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:lF(t.timestamp)}),y.jsx("span",{className:"title",children:Ry(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(q,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(gj,{})})})]})},Rre=H(q)` font-size: 13px; color: ${j.white}; font-family: 'Barlow'; @@ -1614,7 +1614,7 @@ ${({disabled:e})=>e&&sI` width: 1px; height: 4px; } -`,Nre=()=>{const e=Kt(),t=CI(),[n,r]=F.useState(null),[a,i]=F.useState(null),[o,s,l,u,c]=Cu(m=>[m.playingNode,m.setPlayingNodeLink,m.setPlayingTime,m.setIsSeeking,m.playingTime]),p=F.useMemo(()=>NI((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),f=F.useMemo(()=>t==null?void 0:t.nodes.find(m=>m.node_type==="show"&&m.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),h=F.useCallback(m=>{var S;const b=wa(((S=m==null?void 0:m.timestamp)==null?void 0:S.split("-")[0])||"00:00:01");(o&&m.link&&(o==null?void 0:o.link)!==m.link||(!o||(o==null?void 0:o.link)!==m.link)&&m.link!==void 0)&&(s(m.link),l(0),u(!0)),l(b),u(!0),i(m)},[o,s,u,i,l]);return F.useEffect(()=>{p!=null&&p.length&&!p.some(m=>m.ref_id===(a==null?void 0:a.ref_id))&&h(p[0])},[p,a,h]),F.useEffect(()=>{if(p!=null&&p.length){const m=p.find(b=>{if(!b.timestamp)return!1;const S=wa(b.timestamp.split("-")[0]);return Math.abs(S-c)<1});m&&m.ref_id!==(a==null?void 0:a.ref_id)&&i(m)}},[c,p,a]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(Lre,{children:[n&&y.jsx(Mre,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(Dre,{children:[y.jsx(q,{className:"close-info",onClick:()=>r(null),children:y.jsx(Iu,{})}),n&&y.jsx(YN,{node:n})]})}),y.jsx(hre,{selectedNodeShow:f}),!!(p!=null&&p.length)&&y.jsx(Cre,{children:y.jsx(q,{pb:20,children:p==null?void 0:p.map((m,b)=>y.jsx(Ire,{isSelected:(a==null?void 0:a.ref_id)===m.ref_id,onClick:()=>h(m),setOpenClip:r,timestamp:m},`${m.episode_title}_${b}`))})})]})}):null},Dre=H(q)` +`,Nre=()=>{const e=Kt(),t=NI(),[n,r]=F.useState(null),[a,i]=F.useState(null),[o,s,l,u,c]=Cu(m=>[m.playingNode,m.setPlayingNodeLink,m.setPlayingTime,m.setIsSeeking,m.playingTime]),p=F.useMemo(()=>DI((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),f=F.useMemo(()=>t==null?void 0:t.nodes.find(m=>m.node_type==="show"&&m.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),h=F.useCallback(m=>{var S;const b=wa(((S=m==null?void 0:m.timestamp)==null?void 0:S.split("-")[0])||"00:00:01");(o&&m.link&&(o==null?void 0:o.link)!==m.link||(!o||(o==null?void 0:o.link)!==m.link)&&m.link!==void 0)&&(s(m.link),l(0),u(!0)),l(b),u(!0),i(m)},[o,s,u,i,l]);return F.useEffect(()=>{p!=null&&p.length&&!p.some(m=>m.ref_id===(a==null?void 0:a.ref_id))&&h(p[0])},[p,a,h]),F.useEffect(()=>{if(p!=null&&p.length){const m=p.find(b=>{if(!b.timestamp)return!1;const S=wa(b.timestamp.split("-")[0]);return Math.abs(S-c)<1});m&&m.ref_id!==(a==null?void 0:a.ref_id)&&i(m)}},[c,p,a]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(Lre,{children:[n&&y.jsx(Mre,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(Dre,{children:[y.jsx(q,{className:"close-info",onClick:()=>r(null),children:y.jsx(Iu,{})}),n&&y.jsx(KN,{node:n})]})}),y.jsx(hre,{selectedNodeShow:f}),!!(p!=null&&p.length)&&y.jsx(Cre,{children:y.jsx(q,{pb:20,children:p==null?void 0:p.map((m,b)=>y.jsx(Ire,{isSelected:(a==null?void 0:a.ref_id)===m.ref_id,onClick:()=>h(m),setOpenClip:r,timestamp:m},`${m.episode_title}_${b}`))})})]})}):null},Dre=H(q)` border-radius: 20px; overflow: hidden; height: 100%; @@ -1763,7 +1763,7 @@ ${({disabled:e})=>e&&sI` `,Yre=H.div` max-height: calc(100vh - 340px); overflow-y: auto; -`,Kre=()=>{const e=Kt(),t=ps(),n=CI(),[r,a]=F.useState([]),i=F.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((c,p)=>{var m,b,S,T;const f=NI((n==null?void 0:n.nodes)||[],e)||[],h=n==null?void 0:n.nodes.find(_=>_.ref_id===c);if(h){h.timestamp=(m=f[0])==null?void 0:m.timestamp;const _=(T=(S=(b=f[p])==null?void 0:b.hosts)==null?void 0:S[0])==null?void 0:T.name;_&&o.add(_),s[c]=h,s[c]=h}});const u=Array.from(o);a(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,c)=>(c.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(Hre,{children:[y.jsx(Wre,{children:y.jsxs(q,{direction:"row",children:[y.jsx(q,{pr:24,children:y.jsx(Jn,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(q,{direction:"column",children:y.jsxs(q,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(Ai,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(Vre,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(q,{direction:"column",children:[y.jsx(q,{p:24,children:y.jsx(vt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(Yre,{children:i.map(o=>y.jsx(Gre,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},Xre=()=>{const e=Kt();return y.jsx(q,{align:"center",justify:"center",children:y.jsx(vt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},Zre=()=>{const e=Kt(),t=e?Py(e):null,{date:n,boost:r,text:a,name:i,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},c=(t==null?void 0:t.tweet_id)||"",[p,f]=F.useState(r||0),h=Pt(m=>m.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(q,{direction:"column",p:24,children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(Qre,{children:y.jsx(Jn,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(q,{children:[y.jsxs(Jre,{align:"center",direction:"row",children:[i,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(eae,{children:["@",l]})]})]}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(tae,{"data-testid":"episode-description",children:ur(a||"",h)}),y.jsx(q,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(Aa,{children:_i.unix(n).format("ll")})})]}),y.jsx(q,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${c}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx(rae,{endIcon:y.jsx(Pr,{}),children:"View Tweet"})})})]}),y.jsx(nae,{}),y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:p}),y.jsx(qv,{content:t,count:p,refId:u,updateCount:f})]})]})},Qre=H(q)` +`,Kre=()=>{const e=Kt(),t=ps(),n=NI(),[r,a]=F.useState([]),i=F.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((c,p)=>{var m,b,S,T;const f=DI((n==null?void 0:n.nodes)||[],e)||[],h=n==null?void 0:n.nodes.find(_=>_.ref_id===c);if(h){h.timestamp=(m=f[0])==null?void 0:m.timestamp;const _=(T=(S=(b=f[p])==null?void 0:b.hosts)==null?void 0:S[0])==null?void 0:T.name;_&&o.add(_),s[c]=h,s[c]=h}});const u=Array.from(o);a(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,c)=>(c.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(Hre,{children:[y.jsx(Wre,{children:y.jsxs(q,{direction:"row",children:[y.jsx(q,{pr:24,children:y.jsx(Jn,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(q,{direction:"column",children:y.jsxs(q,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(Ai,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(Vre,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(q,{direction:"column",children:[y.jsx(q,{p:24,children:y.jsx(vt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(Yre,{children:i.map(o=>y.jsx(Gre,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},Xre=()=>{const e=Kt();return y.jsx(q,{align:"center",justify:"center",children:y.jsx(vt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},Zre=()=>{const e=Kt(),t=e?Py(e):null,{date:n,boost:r,text:a,name:i,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},c=(t==null?void 0:t.tweet_id)||"",[p,f]=F.useState(r||0),h=Pt(m=>m.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(q,{direction:"column",p:24,children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(Qre,{children:y.jsx(Jn,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(q,{children:[y.jsxs(Jre,{align:"center",direction:"row",children:[i,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(eae,{children:["@",l]})]})]}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsx(tae,{"data-testid":"episode-description",children:ur(a||"",h)}),y.jsx(q,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(Aa,{children:_i.unix(n).format("ll")})})]}),y.jsx(q,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${c}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx(rae,{endIcon:y.jsx(Pr,{}),children:"View Tweet"})})})]}),y.jsx(nae,{}),y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:p}),y.jsx(qv,{content:t,count:p,refId:u,updateCount:f})]})]})},Qre=H(q)` img { width: 64px; height: 64px; @@ -1808,21 +1808,21 @@ ${({disabled:e})=>e&&sI` `,rae=H(qt)` width: 100%; `;function aae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function iae(e,t){if(e==null)return{};var n,r,a=aae(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Bd={};function hae(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Bd[t]||(Bd[t]=fae(e)),Bd[t]}function gae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=hae(r);return a.reduce(function(i,o){return Xa(Xa({},i),n[o])},t)}function I_(e){return e.join(" ")}function mae(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return XN({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function XN(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,u=t.tagName,c=t.value;if(l==="text")return c;if(u){var p=mae(n,i),f;if(!i)f=Xa(Xa({},s),{},{className:I_(s.className)});else{var h=Object.keys(n).reduce(function(T,_){return _.split(".").forEach(function(x){T.includes(x)||T.push(x)}),T},[]),m=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&m.concat(s.className.filter(function(T){return!h.includes(T)}));f=Xa(Xa({},s),{},{className:I_(b)||void 0,style:gae(s.className,Object.assign({},s.style,a),n)})}var S=p(t.children);return Y.createElement(u,my({key:o},f),S)}}const bae=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var yae=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Bd={};function hae(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Bd[t]||(Bd[t]=fae(e)),Bd[t]}function gae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=hae(r);return a.reduce(function(i,o){return Xa(Xa({},i),n[o])},t)}function I_(e){return e.join(" ")}function mae(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return ZN({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function ZN(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,u=t.tagName,c=t.value;if(l==="text")return c;if(u){var p=mae(n,i),f;if(!i)f=Xa(Xa({},s),{},{className:I_(s.className)});else{var h=Object.keys(n).reduce(function(T,_){return _.split(".").forEach(function(E){T.includes(E)||T.push(E)}),T},[]),m=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&m.concat(s.className.filter(function(T){return!h.includes(T)}));f=Xa(Xa({},s),{},{className:I_(b)||void 0,style:gae(s.className,Object.assign({},s.style,a),n)})}var S=p(t.children);return Y.createElement(u,my({key:o},f),S)}}const bae=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var yae=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return _l({children:E,lineNumber:v,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:O,showLineNumbers:r,wrapLongLines:l})}function b(E,v){if(r&&v&&a){var O=QN(s,v,o);E.unshift(ZN(v,O))}return E}function S(E,v){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||O.length>0?m(E,v,O):b(E,v)}for(var T=function(){var v=c[h],O=v.children[0].value,R=Sae(O);if(R){var C=O.split(` +`),style:o,startingLineNumber:s}))}function wae(e){return"".concat(e.toString().length,".25em")}function QN(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function JN(e,t,n){var r={display:"inline-block",minWidth:wae(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,i=ir(ir({},r),a);return i}function _l(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,u=l===void 0?[]:l,c=e.showLineNumbers,p=e.wrapLongLines,f=typeof s=="function"?s(n):s;if(f.className=u,n&&i){var h=JN(r,n,a);t.unshift(QN(n,h))}return p&c&&(f.style=ir(ir({},f.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:f,children:t}}function eD(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return _l({children:x,lineNumber:v,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:O,showLineNumbers:r,wrapLongLines:l})}function b(x,v){if(r&&v&&a){var O=JN(s,v,o);x.unshift(QN(v,O))}return x}function S(x,v){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||O.length>0?m(x,v,O):b(x,v)}for(var T=function(){var v=c[h],O=v.children[0].value,R=Sae(O);if(R){var C=O.split(` `);C.forEach(function($,N){var P=r&&p.length+i,z={type:"text",value:"".concat($,` -`)};if(N===0){var V=c.slice(f+1,h).concat(_l({children:[z],className:v.properties.className})),G=S(V,P);p.push(G)}else if(N===C.length-1){var K=c[h+1]&&c[h+1].children&&c[h+1].children[0],X={type:"text",value:"".concat($)};if(K){var W=_l({children:[X],className:v.properties.className});c.splice(h+1,0,W)}else{var Z=[X],D=S(Z,P,v.properties.className);p.push(D)}}else{var ie=[z],ne=S(ie,P,v.properties.className);p.push(ne)}}),f=h}h++};h4&&n.slice(0,4)===Xv&&yie.test(t)&&(t.charAt(4)==="-"?r=xie(t):t=Eie(t),a=gie),new a(r,t))}function xie(e){var t=e.slice(5).replace(uD,_ie);return Xv+t.charAt(0).toUpperCase()+t.slice(1)}function Eie(e){var t=e.slice(4);return uD.test(t)?e:(t=t.replace(vie,wie),t.charAt(0)!=="-"&&(t="-"+t),Xv+t)}function wie(e){return"-"+e.toLowerCase()}function _ie(e){return e.charAt(1).toUpperCase()}var Tie=Aie,M_=/[#.]/g;function Aie(e,t){for(var n=e||"",r=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var Yse=Kse;function Kse(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Xse=Zse;function Zse(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Qse=Xse,Jse=pD,ele=tle;function tle(e){return Qse(e)||Jse(e)}var ml,nle=59,rle=ale;function ale(e){var t="&"+e+";",n;return ml=ml||document.createElement("i"),ml.innerHTML=t,n=ml.textContent,n.charCodeAt(n.length-1)===nle&&e!=="semi"||n===t?!1:n}var z_=Hse,G_=Wse,ile=pD,ole=Yse,fD=ele,sle=rle,lle=xle,ule={}.hasOwnProperty,Ua=String.fromCharCode,cle=Function.prototype,q_={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},dle=9,H_=10,ple=12,fle=32,W_=38,hle=59,gle=60,mle=61,ble=35,yle=88,vle=120,Sle=65533,Ha="named",Jv="hexadecimal",eS="decimal",tS={};tS[Jv]=16;tS[eS]=10;var xc={};xc[Ha]=fD;xc[eS]=ile;xc[Jv]=ole;var hD=1,gD=2,mD=3,bD=4,yD=5,yy=6,vD=7,aa={};aa[hD]="Named character references must be terminated by a semicolon";aa[gD]="Numeric character references must be terminated by a semicolon";aa[mD]="Named character references cannot be empty";aa[bD]="Numeric character references cannot be empty";aa[yD]="Named character references must be known";aa[yy]="Numeric character references cannot be disallowed";aa[vD]="Numeric character references cannot be outside the permissible Unicode range";function xle(e,t){var n={},r,a;t||(t={});for(a in q_)r=t[a],n[a]=r??q_[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Ele(e,n)}function Ele(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,u=t.warningContext,c=t.position,p=t.indent||[],f=e.length,h=0,m=-1,b=c.column||1,S=c.line||1,T="",_=[],x,A,E,v,O,R,C,$,N,P,z,V,G,K,X,W,Z,D,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),W=ne(),$=o?M:cle,h--,f++;++h65535&&(R-=65536,P+=Ua(R>>>10|55296),R=56320|R&1023),R=P+Ua(R))):K!==Ha&&$(bD,D)),R?(ye(),W=ne(),h=ie-1,b+=ie-G+1,_.push(R),Z=ne(),Z.offset++,i&&i.call(l,R,{start:W,end:Z},e.slice(G-1,ie)),W=Z):(v=e.slice(G-1,ie),T+=v,b+=v.length,h=ie-1)}else O===10&&(S++,m++,b=0),O===O?(T+=Ua(O),b++):ye();return _.join("");function ne(){return{line:S,column:b,offset:h+(c.offset||0)}}function M(re,Se){var je=ne();je.column+=Se,je.offset+=Se,o.call(u,aa[re],je,re)}function ye(){T&&(_.push(T),a&&a.call(s,T,{start:W,end:ne()}),T="")}}function wle(e){return e>=55296&&e<=57343||e>1114111}function _le(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var SD={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if(N===0){var V=c.slice(f+1,h).concat(_l({children:[z],className:v.properties.className})),G=S(V,P);p.push(G)}else if(N===C.length-1){var K=c[h+1]&&c[h+1].children&&c[h+1].children[0],X={type:"text",value:"".concat($)};if(K){var W=_l({children:[X],className:v.properties.className});c.splice(h+1,0,W)}else{var Z=[X],D=S(Z,P,v.properties.className);p.push(D)}}else{var ie=[z],ne=S(ie,P,v.properties.className);p.push(ne)}}),f=h}h++};h4&&n.slice(0,4)===Xv&&yie.test(t)&&(t.charAt(4)==="-"?r=xie(t):t=Eie(t),a=gie),new a(r,t))}function xie(e){var t=e.slice(5).replace(cD,_ie);return Xv+t.charAt(0).toUpperCase()+t.slice(1)}function Eie(e){var t=e.slice(4);return cD.test(t)?e:(t=t.replace(vie,wie),t.charAt(0)!=="-"&&(t="-"+t),Xv+t)}function wie(e){return"-"+e.toLowerCase()}function _ie(e){return e.charAt(1).toUpperCase()}var Tie=Aie,M_=/[#.]/g;function Aie(e,t){for(var n=e||"",r=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var Yse=Kse;function Kse(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Xse=Zse;function Zse(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Qse=Xse,Jse=fD,ele=tle;function tle(e){return Qse(e)||Jse(e)}var ml,nle=59,rle=ale;function ale(e){var t="&"+e+";",n;return ml=ml||document.createElement("i"),ml.innerHTML=t,n=ml.textContent,n.charCodeAt(n.length-1)===nle&&e!=="semi"||n===t?!1:n}var z_=Hse,G_=Wse,ile=fD,ole=Yse,hD=ele,sle=rle,lle=xle,ule={}.hasOwnProperty,Ua=String.fromCharCode,cle=Function.prototype,q_={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},dle=9,H_=10,ple=12,fle=32,W_=38,hle=59,gle=60,mle=61,ble=35,yle=88,vle=120,Sle=65533,Ha="named",Jv="hexadecimal",eS="decimal",tS={};tS[Jv]=16;tS[eS]=10;var xc={};xc[Ha]=hD;xc[eS]=ile;xc[Jv]=ole;var gD=1,mD=2,bD=3,yD=4,vD=5,yy=6,SD=7,aa={};aa[gD]="Named character references must be terminated by a semicolon";aa[mD]="Numeric character references must be terminated by a semicolon";aa[bD]="Named character references cannot be empty";aa[yD]="Numeric character references cannot be empty";aa[vD]="Named character references must be known";aa[yy]="Numeric character references cannot be disallowed";aa[SD]="Numeric character references cannot be outside the permissible Unicode range";function xle(e,t){var n={},r,a;t||(t={});for(a in q_)r=t[a],n[a]=r??q_[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Ele(e,n)}function Ele(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,u=t.warningContext,c=t.position,p=t.indent||[],f=e.length,h=0,m=-1,b=c.column||1,S=c.line||1,T="",_=[],E,A,x,v,O,R,C,$,N,P,z,V,G,K,X,W,Z,D,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),W=ne(),$=o?M:cle,h--,f++;++h65535&&(R-=65536,P+=Ua(R>>>10|55296),R=56320|R&1023),R=P+Ua(R))):K!==Ha&&$(yD,D)),R?(ye(),W=ne(),h=ie-1,b+=ie-G+1,_.push(R),Z=ne(),Z.offset++,i&&i.call(l,R,{start:W,end:Z},e.slice(G-1,ie)),W=Z):(v=e.slice(G-1,ie),T+=v,b+=v.length,h=ie-1)}else O===10&&(S++,m++,b=0),O===O?(T+=Ua(O),b++):ye();return _.join("");function ne(){return{line:S,column:b,offset:h+(c.offset||0)}}function M(re,Se){var je=ne();je.column+=Se,je.offset+=Se,o.call(u,aa[re],je,re)}function ye(){T&&(_.push(T),a&&a.call(s,T,{start:W,end:ne()}),T="")}}function wle(e){return e>=55296&&e<=57343||e>1114111}function _le(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var xD={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function _(x){return x instanceof l?new l(x.type,_(x.content),x.alias):Array.isArray(x)?x.map(_):x.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(_){var x=document.getElementsByTagName("script");for(var A in x)if(x[A].src==_)return x[A]}return null}},isActive:function(_,x,A){for(var E="no-"+x;_;){var v=_.classList;if(v.contains(x))return!0;if(v.contains(E))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,x){var A=s.util.clone(s.languages[_]);for(var E in x)A[E]=x[E];return A},insertBefore:function(_,x,A,E){E=E||s.languages;var v=E[_],O={};for(var R in v)if(v.hasOwnProperty(R)){if(R==x)for(var C in A)A.hasOwnProperty(C)&&(O[C]=A[C]);A.hasOwnProperty(R)||(O[R]=v[R])}var $=E[_];return E[_]=O,s.languages.DFS(s.languages,function(N,P){P===$&&N!=_&&(this[N]=O)}),O},DFS:function _(x,A,E,v){v=v||{};var O=s.util.objId;for(var R in x)if(x.hasOwnProperty(R)){A.call(x,R,x[R],E||R);var C=x[R],$=s.util.type(C);$==="Object"&&!v[O(C)]?(v[O(C)]=!0,_(C,A,null,v)):$==="Array"&&!v[O(C)]&&(v[O(C)]=!0,_(C,A,R,v))}}},plugins:{},highlightAll:function(_,x){s.highlightAllUnder(document,_,x)},highlightAllUnder:function(_,x,A){var E={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),s.hooks.run("before-all-elements-highlight",E);for(var v=0,O;O=E.elements[v++];)s.highlightElement(O,x===!0,E.callback)},highlightElement:function(_,x,A){var E=s.util.getLanguage(_),v=s.languages[E];s.util.setLanguage(_,E);var O=_.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,E);var R=_.textContent,C={element:_,language:E,grammar:v,code:R};function $(P){C.highlightedCode=P,s.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,s.hooks.run("after-highlight",C),s.hooks.run("complete",C),A&&A.call(C.element)}if(s.hooks.run("before-sanity-check",C),O=C.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!C.code){s.hooks.run("complete",C),A&&A.call(C.element);return}if(s.hooks.run("before-highlight",C),!C.grammar){$(s.util.encode(C.code));return}if(x&&r.Worker){var N=new Worker(s.filename);N.onmessage=function(P){$(P.data)},N.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else $(s.highlight(C.code,C.grammar,C.language))},highlight:function(_,x,A){var E={code:_,grammar:x,language:A};if(s.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=s.tokenize(E.code,E.grammar),s.hooks.run("after-tokenize",E),l.stringify(s.util.encode(E.tokens),E.language)},tokenize:function(_,x){var A=x.rest;if(A){for(var E in A)x[E]=A[E];delete x.rest}var v=new p;return f(v,v.head,_),c(_,v,x,v.head,0),m(v)},hooks:{all:{},add:function(_,x){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(x)},run:function(_,x){var A=s.hooks.all[_];if(!(!A||!A.length))for(var E=0,v;v=A[E++];)v(x)}},Token:l};r.Prism=s;function l(_,x,A,E){this.type=_,this.content=x,this.alias=A,this.length=(E||"").length|0}l.stringify=function _(x,A){if(typeof x=="string")return x;if(Array.isArray(x)){var E="";return x.forEach(function($){E+=_($,A)}),E}var v={type:x.type,content:_(x.content,A),tag:"span",classes:["token",x.type],attributes:{},language:A},O=x.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(v.classes,O):v.classes.push(O)),s.hooks.run("wrap",v);var R="";for(var C in v.attributes)R+=" "+C+'="'+(v.attributes[C]||"").replace(/"/g,""")+'"';return"<"+v.tag+' class="'+v.classes.join(" ")+'"'+R+">"+v.content+""};function u(_,x,A,E){_.lastIndex=x;var v=_.exec(A);if(v&&E&&v[1]){var O=v[1].length;v.index+=O,v[0]=v[0].slice(O)}return v}function c(_,x,A,E,v,O){for(var R in A)if(!(!A.hasOwnProperty(R)||!A[R])){var C=A[R];C=Array.isArray(C)?C:[C];for(var $=0;$=O.reach);Z+=W.value.length,W=W.next){var D=W.value;if(x.length>_.length)return;if(!(D instanceof l)){var ie=1,ne;if(V){if(ne=u(X,Z,_,z),!ne||ne.index>=_.length)break;var Se=ne.index,M=ne.index+ne[0].length,ye=Z;for(ye+=W.value.length;Se>=ye;)W=W.next,ye+=W.value.length;if(ye-=W.value.length,Z=ye,W.value instanceof l)continue;for(var re=W;re!==x.tail&&(yeO.reach&&(O.reach=de);var ce=W.prev;we&&(ce=f(x,ce,we),Z+=we.length),h(x,ce,ie);var ee=new l(R,P?s.tokenize(je,P):je,G,je);if(W=f(x,ce,ee),ae&&f(x,W,ae),ie>1){var _e={cause:R+","+$,reach:de};c(_,x,A,W.prev,Z,_e),O&&_e.reach>O.reach&&(O.reach=_e.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},x={value:null,prev:_,next:null};_.next=x,this.head=_,this.tail=x,this.length=0}function f(_,x,A){var E=x.next,v={value:A,prev:x,next:E};return x.next=v,E.prev=v,_.length++,v}function h(_,x,A){for(var E=x.next,v=0;v/,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(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){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:[n,"language-"+n],inside:e.languages[n]},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 kle=rS;rS.displayName="css";rS.aliases=[];function rS(e){(function(t){var n=/(?:"(?:\\(?:\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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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 r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Ole=aS;aS.displayName="clike";aS.aliases=[];function aS(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 Ile=iS;iS.displayName="javascript";iS.aliases=["js"];function iS(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 uo=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof At=="object"?At:{},Rle=Wle();uo.Prism={manual:!0,disableWorkerMessageHandler:!0};var Cle=Wie,Nle=lle,xD=Tle,Dle=Ale,Lle=kle,Mle=Ole,Ple=Ile;Rle();var oS={}.hasOwnProperty;function ED(){}ED.prototype=xD;var Ot=new ED,$le=Ot;Ot.highlight=Fle;Ot.register=Is;Ot.alias=jle;Ot.registered=Ble;Ot.listLanguages=Ule;Is(Dle);Is(Lle);Is(Mle);Is(Ple);Ot.util.encode=qle;Ot.Token.stringify=zle;function Is(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Ot.languages[e.displayName]===void 0&&e(Ot)}function jle(e,t){var n=Ot.languages,r=e,a,i,o,s;t&&(r={},r[e]=t);for(a in r)for(i=r[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 Ud,V_;function Yle(){if(V_)return Ud;V_=1,Ud=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 Ud}var zd,Y_;function Kle(){if(Y_)return zd;Y_=1,zd=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.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-])"+r+"|<"+r+">)(?![\\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 zd}var Gd,K_;function Xle(){if(K_)return Gd;K_=1,Gd=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 Gd}var qd,X_;function Zle(){if(X_)return qd;X_=1,qd=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 qd}var Hd,Z_;function Qle(){if(Z_)return Hd;Z_=1,Hd=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.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 Hd}var Wd,Q_;function Jle(){if(Q_)return Wd;Q_=1,Wd=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 Wd}var Vd,J_;function eue(){if(J_)return Vd;J_=1,Vd=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 Vd}var Yd,eT;function tue(){if(eT)return Yd;eT=1,Yd=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 Yd}var Kd,tT;function sS(){if(tT)return Kd;tT=1,Kd=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 Kd}var Xd,nT;function nue(){if(nT)return Xd;nT=1;var e=sS();Xd=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){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:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.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:/[()\[\]{};,.]/}}(n)}return Xd}var Zd,rT;function rue(){if(rT)return Zd;rT=1,Zd=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 Zd}var Qd,aT;function aue(){if(aT)return Qd;aT=1,Qd=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 Qd}var Jd,iT;function iue(){if(iT)return Jd;iT=1,Jd=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 Jd}var ep,oT;function Ca(){if(oT)return ep;oT=1,ep=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 ep}var tp,sT;function lS(){if(sT)return tp;sT=1;var e=Ca();tp=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){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});r.languages.cpp=r.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/}),r.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}}),r.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:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return tp}var np,lT;function oue(){if(lT)return np;lT=1;var e=lS();np=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.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/}),n.languages.ino=n.languages.arduino}return np}var rp,uT;function sue(){if(uT)return rp;uT=1,rp=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 rp}var ap,cT;function lue(){if(cT)return ap;cT=1,ap=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={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=n.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:r,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:r.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:r,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,u=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return op}var sp,fT;function Ec(){if(fT)return sp;fT=1,sp=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(ie,ne){return ie.replace(/<<(\d+)>>/g,function(M,ye){return"(?:"+ne[+ye]+")"})}function a(ie,ne,M){return RegExp(r(ie,ne),M||"")}function i(ie,ne){for(var M=0;M>/g,function(){return"(?:"+ie+")"});return ie.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(ie){return"\\b(?:"+ie.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),u=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),c=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),S=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,_=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,T]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),E=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,T]),v={keyword:u,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,C=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,E]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,b]),lookbehind:!0,inside:v},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:v},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,m]),inside:v}],keyword:u,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:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:v},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,S]),inside:v,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:v,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:a(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:v}}},"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,b,m,E,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(E),greedy:!0,inside:v},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 $=R+"|"+O,N=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$]),P=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,K=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),X=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,G]),W=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[$]),2),Z=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,G]);function D(ie,ne){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ie]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ne,G]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:D(X,K)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:D(Z,W)}],char:{pattern:RegExp(O),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return sp}var lp,hT;function due(){if(hT)return lp;hT=1;var e=Ec();lp=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.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:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return lp}var up,gT;function pue(){if(gT)return up;gT=1,up=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 up}var cp,mT;function fue(){if(mT)return cp;mT=1,cp=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 cp}var dp,bT;function hue(){if(bT)return dp;bT=1,dp=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(c,p){return c.replace(/<<(\d+)>>/g,function(f,h){return p[+h]})}function a(c,p,f){return RegExp(r(c,p),f||"")}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("|"),u=[o,s,l].join("|");n.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,[u],"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:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return dp}var pp,yT;function gue(){if(yT)return pp;yT=1,pp=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 pp}var fp,vT;function wD(){if(vT)return fp;vT=1,fp=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\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("\\$"+r),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("(\\{)"+r),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})/};n.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;|&]|[<>]\\()"+r),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("\\$?"+r),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=n.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 hp}var gp,xT;function mue(){if(xT)return gp;xT=1,gp=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.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:r,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:r,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:[r,/\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:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gp}var mp,ET;function bue(){if(ET)return mp;ET=1,mp=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 mp}var bp,wT;function yue(){if(wT)return bp;wT=1,bp=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 bp}var yp,_T;function vue(){if(_T)return yp;_T=1,yp=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 yp}var vp,TT;function Sue(){if(TT)return vp;TT=1;var e=Ca();vp=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.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:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return vp}var Sp,AT;function xue(){if(AT)return Sp;AT=1,Sp=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 Sp}var xp,kT;function Eue(){if(kT)return xp;kT=1,xp=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 xp}var Ep,OT;function wue(){if(OT)return Ep;OT=1,Ep=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 Ep}var wp,IT;function _ue(){if(IT)return wp;IT=1,wp=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 wp}var _p,RT;function Tue(){if(RT)return _p;RT=1,_p=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 _p}var Tp,CT;function Aue(){if(CT)return Tp;CT=1,Tp=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 Tp}var Ap,NT;function kue(){if(NT)return Ap;NT=1;var e=lS();Ap=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.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:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.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:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Ap}var kp,DT;function Oue(){if(DT)return kp;DT=1,kp=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 kp}var Op,LT;function Iue(){if(LT)return Op;LT=1,Op=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 Op}var Ip,MT;function Rue(){if(MT)return Ip;MT=1,Ip=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 Ip}var Rp,PT;function Cue(){if(PT)return Rp;PT=1,Rp=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 Rp}var Cp,$T;function Nue(){if($T)return Cp;$T=1,Cp=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,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"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return Cp}var Np,jT;function Due(){if(jT)return Np;jT=1,Np=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 Np}var Dp,FT;function Lue(){if(FT)return Dp;FT=1,Dp=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),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 Dp}var Lp,BT;function wc(){if(BT)return Lp;BT=1,Lp=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.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:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.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;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,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:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,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:r,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:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.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)/}),n.languages.rb=n.languages.ruby})(t)}return Lp}var Mp,UT;function Mue(){if(UT)return Mp;UT=1;var e=wc();Mp=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.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:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.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:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.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}})}(n)}return Mp}var Pp,zT;function Pue(){if(zT)return Pp;zT=1;var e=Ec();Pp=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,T){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),u=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),c=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,f=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.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};n.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 jp}var Fp,HT;function Fue(){if(HT)return Fp;HT=1,Fp=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Fp}var Bp,WT;function Bue(){if(WT)return Bp;WT=1,Bp=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 Bp}var Up,VT;function Uue(){if(VT)return Up;VT=1,Up=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 Up}var zp,YT;function zue(){if(YT)return zp;YT=1,zp=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\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:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.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:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return zp}var Gp,KT;function Gue(){if(KT)return Gp;KT=1,Gp=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.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 Gp}var qp,XT;function que(){if(XT)return qp;XT=1,qp=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 qp}var Hp,ZT;function Hue(){if(ZT)return Hp;ZT=1,Hp=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 Hp}var Wp,QT;function Wue(){if(QT)return Wp;QT=1,Wp=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r + */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function _(E){return E instanceof l?new l(E.type,_(E.content),E.alias):Array.isArray(E)?E.map(_):E.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 E=document.getElementsByTagName("script");for(var A in E)if(E[A].src==_)return E[A]}return null}},isActive:function(_,E,A){for(var x="no-"+E;_;){var v=_.classList;if(v.contains(E))return!0;if(v.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,E){var A=s.util.clone(s.languages[_]);for(var x in E)A[x]=E[x];return A},insertBefore:function(_,E,A,x){x=x||s.languages;var v=x[_],O={};for(var R in v)if(v.hasOwnProperty(R)){if(R==E)for(var C in A)A.hasOwnProperty(C)&&(O[C]=A[C]);A.hasOwnProperty(R)||(O[R]=v[R])}var $=x[_];return x[_]=O,s.languages.DFS(s.languages,function(N,P){P===$&&N!=_&&(this[N]=O)}),O},DFS:function _(E,A,x,v){v=v||{};var O=s.util.objId;for(var R in E)if(E.hasOwnProperty(R)){A.call(E,R,E[R],x||R);var C=E[R],$=s.util.type(C);$==="Object"&&!v[O(C)]?(v[O(C)]=!0,_(C,A,null,v)):$==="Array"&&!v[O(C)]&&(v[O(C)]=!0,_(C,A,R,v))}}},plugins:{},highlightAll:function(_,E){s.highlightAllUnder(document,_,E)},highlightAllUnder:function(_,E,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 v=0,O;O=x.elements[v++];)s.highlightElement(O,E===!0,x.callback)},highlightElement:function(_,E,A){var x=s.util.getLanguage(_),v=s.languages[x];s.util.setLanguage(_,x);var O=_.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,x);var R=_.textContent,C={element:_,language:x,grammar:v,code:R};function $(P){C.highlightedCode=P,s.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,s.hooks.run("after-highlight",C),s.hooks.run("complete",C),A&&A.call(C.element)}if(s.hooks.run("before-sanity-check",C),O=C.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!C.code){s.hooks.run("complete",C),A&&A.call(C.element);return}if(s.hooks.run("before-highlight",C),!C.grammar){$(s.util.encode(C.code));return}if(E&&r.Worker){var N=new Worker(s.filename);N.onmessage=function(P){$(P.data)},N.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else $(s.highlight(C.code,C.grammar,C.language))},highlight:function(_,E,A){var x={code:_,grammar:E,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(_,E){var A=E.rest;if(A){for(var x in A)E[x]=A[x];delete E.rest}var v=new p;return f(v,v.head,_),c(_,v,E,v.head,0),m(v)},hooks:{all:{},add:function(_,E){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(E)},run:function(_,E){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,v;v=A[x++];)v(E)}},Token:l};r.Prism=s;function l(_,E,A,x){this.type=_,this.content=E,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(E,A){if(typeof E=="string")return E;if(Array.isArray(E)){var x="";return E.forEach(function($){x+=_($,A)}),x}var v={type:E.type,content:_(E.content,A),tag:"span",classes:["token",E.type],attributes:{},language:A},O=E.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(v.classes,O):v.classes.push(O)),s.hooks.run("wrap",v);var R="";for(var C in v.attributes)R+=" "+C+'="'+(v.attributes[C]||"").replace(/"/g,""")+'"';return"<"+v.tag+' class="'+v.classes.join(" ")+'"'+R+">"+v.content+""};function u(_,E,A,x){_.lastIndex=E;var v=_.exec(A);if(v&&x&&v[1]){var O=v[1].length;v.index+=O,v[0]=v[0].slice(O)}return v}function c(_,E,A,x,v,O){for(var R in A)if(!(!A.hasOwnProperty(R)||!A[R])){var C=A[R];C=Array.isArray(C)?C:[C];for(var $=0;$=O.reach);Z+=W.value.length,W=W.next){var D=W.value;if(E.length>_.length)return;if(!(D instanceof l)){var ie=1,ne;if(V){if(ne=u(X,Z,_,z),!ne||ne.index>=_.length)break;var Se=ne.index,M=ne.index+ne[0].length,ye=Z;for(ye+=W.value.length;Se>=ye;)W=W.next,ye+=W.value.length;if(ye-=W.value.length,Z=ye,W.value instanceof l)continue;for(var re=W;re!==E.tail&&(yeO.reach&&(O.reach=de);var ce=W.prev;we&&(ce=f(E,ce,we),Z+=we.length),h(E,ce,ie);var ee=new l(R,P?s.tokenize(je,P):je,G,je);if(W=f(E,ce,ee),ae&&f(E,W,ae),ie>1){var _e={cause:R+","+$,reach:de};c(_,E,A,W.prev,Z,_e),O&&_e.reach>O.reach&&(O.reach=_e.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},E={value:null,prev:_,next:null};_.next=E,this.head=_,this.tail=E,this.length=0}function f(_,E,A){var x=E.next,v={value:A,prev:E,next:x};return E.next=v,x.prev=v,_.length++,v}function h(_,E,A){for(var x=E.next,v=0;v/,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(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){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:[n,"language-"+n],inside:e.languages[n]},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 kle=rS;rS.displayName="css";rS.aliases=[];function rS(e){(function(t){var n=/(?:"(?:\\(?:\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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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 r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Ole=aS;aS.displayName="clike";aS.aliases=[];function aS(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 Ile=iS;iS.displayName="javascript";iS.aliases=["js"];function iS(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 uo=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof At=="object"?At:{},Rle=Wle();uo.Prism={manual:!0,disableWorkerMessageHandler:!0};var Cle=Wie,Nle=lle,ED=Tle,Dle=Ale,Lle=kle,Mle=Ole,Ple=Ile;Rle();var oS={}.hasOwnProperty;function wD(){}wD.prototype=ED;var Ot=new wD,$le=Ot;Ot.highlight=Fle;Ot.register=Is;Ot.alias=jle;Ot.registered=Ble;Ot.listLanguages=Ule;Is(Dle);Is(Lle);Is(Mle);Is(Ple);Ot.util.encode=qle;Ot.Token.stringify=zle;function Is(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Ot.languages[e.displayName]===void 0&&e(Ot)}function jle(e,t){var n=Ot.languages,r=e,a,i,o,s;t&&(r={},r[e]=t);for(a in r)for(i=r[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 Ud,V_;function Yle(){if(V_)return Ud;V_=1,Ud=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 Ud}var zd,Y_;function Kle(){if(Y_)return zd;Y_=1,zd=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.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-])"+r+"|<"+r+">)(?![\\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 zd}var Gd,K_;function Xle(){if(K_)return Gd;K_=1,Gd=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 Gd}var qd,X_;function Zle(){if(X_)return qd;X_=1,qd=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 qd}var Hd,Z_;function Qle(){if(Z_)return Hd;Z_=1,Hd=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.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 Hd}var Wd,Q_;function Jle(){if(Q_)return Wd;Q_=1,Wd=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 Wd}var Vd,J_;function eue(){if(J_)return Vd;J_=1,Vd=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 Vd}var Yd,eT;function tue(){if(eT)return Yd;eT=1,Yd=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 Yd}var Kd,tT;function sS(){if(tT)return Kd;tT=1,Kd=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 Kd}var Xd,nT;function nue(){if(nT)return Xd;nT=1;var e=sS();Xd=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){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:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.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:/[()\[\]{};,.]/}}(n)}return Xd}var Zd,rT;function rue(){if(rT)return Zd;rT=1,Zd=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 Zd}var Qd,aT;function aue(){if(aT)return Qd;aT=1,Qd=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 Qd}var Jd,iT;function iue(){if(iT)return Jd;iT=1,Jd=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 Jd}var ep,oT;function Ca(){if(oT)return ep;oT=1,ep=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 ep}var tp,sT;function lS(){if(sT)return tp;sT=1;var e=Ca();tp=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){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});r.languages.cpp=r.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/}),r.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}}),r.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:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return tp}var np,lT;function oue(){if(lT)return np;lT=1;var e=lS();np=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.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/}),n.languages.ino=n.languages.arduino}return np}var rp,uT;function sue(){if(uT)return rp;uT=1,rp=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 rp}var ap,cT;function lue(){if(cT)return ap;cT=1,ap=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={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=n.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:r,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:r.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:r,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,u=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return op}var sp,fT;function Ec(){if(fT)return sp;fT=1,sp=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(ie,ne){return ie.replace(/<<(\d+)>>/g,function(M,ye){return"(?:"+ne[+ye]+")"})}function a(ie,ne,M){return RegExp(r(ie,ne),M||"")}function i(ie,ne){for(var M=0;M>/g,function(){return"(?:"+ie+")"});return ie.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(ie){return"\\b(?:"+ie.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),u=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),c=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),S=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,_=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),E=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,T]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),x=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,T]),v={keyword:u,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,C=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,x]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,b]),lookbehind:!0,inside:v},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:v},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,m]),inside:v}],keyword:u,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:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:v},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,S]),inside:v,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:v,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:a(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:v}}},"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,b,m,x,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(x),greedy:!0,inside:v},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 $=R+"|"+O,N=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$]),P=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,K=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),X=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,G]),W=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[$]),2),Z=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,G]);function D(ie,ne){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ie]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ne,G]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:D(X,K)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:D(Z,W)}],char:{pattern:RegExp(O),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return sp}var lp,hT;function due(){if(hT)return lp;hT=1;var e=Ec();lp=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.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:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return lp}var up,gT;function pue(){if(gT)return up;gT=1,up=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 up}var cp,mT;function fue(){if(mT)return cp;mT=1,cp=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 cp}var dp,bT;function hue(){if(bT)return dp;bT=1,dp=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(c,p){return c.replace(/<<(\d+)>>/g,function(f,h){return p[+h]})}function a(c,p,f){return RegExp(r(c,p),f||"")}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("|"),u=[o,s,l].join("|");n.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,[u],"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:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return dp}var pp,yT;function gue(){if(yT)return pp;yT=1,pp=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 pp}var fp,vT;function _D(){if(vT)return fp;vT=1,fp=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\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("\\$"+r),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("(\\{)"+r),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})/};n.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;|&]|[<>]\\()"+r),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("\\$?"+r),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=n.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 hp}var gp,xT;function mue(){if(xT)return gp;xT=1,gp=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.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:r,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:r,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:[r,/\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:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gp}var mp,ET;function bue(){if(ET)return mp;ET=1,mp=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 mp}var bp,wT;function yue(){if(wT)return bp;wT=1,bp=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 bp}var yp,_T;function vue(){if(_T)return yp;_T=1,yp=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 yp}var vp,TT;function Sue(){if(TT)return vp;TT=1;var e=Ca();vp=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.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:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return vp}var Sp,AT;function xue(){if(AT)return Sp;AT=1,Sp=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 Sp}var xp,kT;function Eue(){if(kT)return xp;kT=1,xp=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 xp}var Ep,OT;function wue(){if(OT)return Ep;OT=1,Ep=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 Ep}var wp,IT;function _ue(){if(IT)return wp;IT=1,wp=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 wp}var _p,RT;function Tue(){if(RT)return _p;RT=1,_p=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 _p}var Tp,CT;function Aue(){if(CT)return Tp;CT=1,Tp=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 Tp}var Ap,NT;function kue(){if(NT)return Ap;NT=1;var e=lS();Ap=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.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:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.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:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Ap}var kp,DT;function Oue(){if(DT)return kp;DT=1,kp=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 kp}var Op,LT;function Iue(){if(LT)return Op;LT=1,Op=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 Op}var Ip,MT;function Rue(){if(MT)return Ip;MT=1,Ip=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 Ip}var Rp,PT;function Cue(){if(PT)return Rp;PT=1,Rp=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 Rp}var Cp,$T;function Nue(){if($T)return Cp;$T=1,Cp=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,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"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return Cp}var Np,jT;function Due(){if(jT)return Np;jT=1,Np=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 Np}var Dp,FT;function Lue(){if(FT)return Dp;FT=1,Dp=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),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 Dp}var Lp,BT;function wc(){if(BT)return Lp;BT=1,Lp=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.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:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.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;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,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:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,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:r,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:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.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)/}),n.languages.rb=n.languages.ruby})(t)}return Lp}var Mp,UT;function Mue(){if(UT)return Mp;UT=1;var e=wc();Mp=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.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:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.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:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.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}})}(n)}return Mp}var Pp,zT;function Pue(){if(zT)return Pp;zT=1;var e=Ec();Pp=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,T){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),u=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),c=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,f=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.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};n.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 jp}var Fp,HT;function Fue(){if(HT)return Fp;HT=1,Fp=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Fp}var Bp,WT;function Bue(){if(WT)return Bp;WT=1,Bp=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 Bp}var Up,VT;function Uue(){if(VT)return Up;VT=1,Up=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 Up}var zp,YT;function zue(){if(YT)return zp;YT=1,zp=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\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:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.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:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return zp}var Gp,KT;function Gue(){if(KT)return Gp;KT=1,Gp=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.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 Gp}var qp,XT;function que(){if(XT)return qp;XT=1,qp=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 qp}var Hp,ZT;function Hue(){if(ZT)return Hp;ZT=1,Hp=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 Hp}var Wp,QT;function Wue(){if(QT)return Wp;QT=1,Wp=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.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(n.languages.diff,"PREFIXES",{value:r})})(t)}return Wp}var Vp,JT;function hn(){if(JT)return Vp;JT=1,Vp=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.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(u){if(typeof s=="function"&&!s(u))return u;for(var c=l.length,p;a.code.indexOf(p=r(i,c))!==-1;)++c;return l[c]=u,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(u){for(var c=0;c=s.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=s[o],h=a.tokenStack[f],m=typeof p=="string"?p:p.content,b=r(i,f),S=m.indexOf(b);if(S>-1){++o;var T=m.substring(0,S),_=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),x=m.substring(S+b.length),A=[];T&&A.push.apply(A,l([T])),A.push(_),x&&A.push.apply(A,l([x])),typeof p=="string"?u.splice.apply(u,[c,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return u}l(a.tokens)}}})})(t)}return Vp}var Yp,eA;function Vue(){if(eA)return Yp;eA=1;var e=hn();Yp=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.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=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(n)}return Yp}var Kp,tA;function Yue(){if(tA)return Kp;tA=1,Kp=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 Kp}var Xp,nA;function Kue(){if(nA)return Xp;nA=1,Xp=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),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 u(c,p){return c=c.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(c,p)}n.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:u(/(^(?: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:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return Xp}var Zp,rA;function Xue(){if(rA)return Zp;rA=1,Zp=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[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:n.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return r}),s)}n.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:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return Zp}var Qp,aA;function Zue(){if(aA)return Qp;aA=1,Qp=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 Qp}var Jp,iA;function Que(){if(iA)return Jp;iA=1,Jp=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 Jp}var ef,oA;function Jue(){if(oA)return ef;oA=1,ef=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 ef}var tf,sA;function ece(){if(sA)return tf;sA=1;var e=hn();tf=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return tf}var nf,lA;function tce(){if(lA)return nf;lA=1,nf=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(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return nf}var rf,uA;function nce(){if(uA)return rf;uA=1,rf=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 rf}var af,cA;function rce(){if(cA)return af;cA=1;var e=wc(),t=hn();af=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return af}var of,dA;function ace(){if(dA)return of;dA=1,of=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 of}var sf,pA;function TD(){if(pA)return sf;pA=1,sf=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 sf}var lf,fA;function ice(){if(fA)return lf;fA=1;var e=TD(),t=hn();lf=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return lf}var uf,hA;function oce(){if(hA)return uf;hA=1,uf=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 uf}var cf,gA;function sce(){if(gA)return cf;gA=1,cf=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={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:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],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(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.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(c){i[c].pattern=s(l[c])});var u=["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(u),n.languages.factor=i})(t)}return cf}var df,mA;function lce(){if(mA)return df;mA=1,df=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.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 pf}var ff,yA;function cce(){if(yA)return ff;yA=1,ff=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.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 n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.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 ff}var hf,vA;function dce(){if(vA)return hf;vA=1,hf=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 hf}var gf,SA;function pce(){if(SA)return gf;SA=1,gf=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 gf}var mf,xA;function fce(){if(xA)return mf;xA=1;var e=hn();mf=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){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,r.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}}}},r.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return mf}var bf,EA;function hce(){if(EA)return bf;EA=1,bf=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 bf}var yf,wA;function gce(){if(wA)return yf;wA=1,yf=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 yf}var vf,_A;function mce(){if(_A)return vf;_A=1,vf=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 vf}var Sf,TA;function bce(){if(TA)return Sf;TA=1,Sf=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 Sf}var xf,AA;function yce(){if(AA)return xf;AA=1,xf=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.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("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),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 xf}var Ef,kA;function vce(){if(kA)return Ef;kA=1,Ef=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 Ef}var wf,OA;function Sce(){if(OA)return wf;OA=1;var e=Ca();wf=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.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 wf}var _f,IA;function xce(){if(IA)return _f;IA=1,_f=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 _f}var Tf,RA;function Ece(){if(RA)return Tf;RA=1,Tf=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 Tf}var Af,CA;function wce(){if(CA)return Af;CA=1,Af=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 Af}var kf,NA;function _ce(){if(NA)return kf;NA=1,kf=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 kf}var Of,DA;function Tce(){if(DA)return Of;DA=1,Of=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(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function o(T){return a[i+T]}function s(T,_){_=_||0;for(var x=0;x0)){var m=l(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=i;b=0&&u(S,"variable-input")}}}}})}return Of}var If,LA;function Ace(){if(LA)return If;LA=1,If=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(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return If}var Rf,MA;function kce(){if(MA)return Rf;MA=1;var e=wc();Rf=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.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:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.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:r.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:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.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]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Cf}var Nf,$A;function uS(){if($A)return Nf;$A=1,Nf=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 Nf}var Df,jA;function Ice(){if(jA)return Df;jA=1,Df=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 Df}var Lf,FA;function Rce(){if(FA)return Lf;FA=1,Lf=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 Lf}var Mf,BA;function Cce(){if(BA)return Mf;BA=1;var e=Ca();Mf=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.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 Mf}var Pf,UA;function Nce(){if(UA)return Pf;UA=1,Pf=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 Pf}var $f,zA;function Dce(){if(zA)return $f;zA=1,$f=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 $f}var jf,GA;function Lce(){if(GA)return jf;GA=1,jf=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 jf}var Ff,qA;function Mce(){if(qA)return Ff;qA=1,Ff=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.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:n.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:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.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 f=p.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+h+")"}var l;for(var u in i)if(i[u]){l=l||{};var c=o[u]?s(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(t)}return Ff}var Bf,HA;function Pce(){if(HA)return Bf;HA=1,Bf=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 Bf}var Uf,WA;function $ce(){if(WA)return Uf;WA=1,Uf=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 Uf}var zf,VA;function jce(){if(VA)return zf;VA=1,zf=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return r(u,c-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.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"}}};n.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+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return zf}var Gf,YA;function Fce(){if(YA)return Gf;YA=1;var e=uS();Gf=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.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}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Gf}var qf,KA;function Bce(){if(KA)return qf;KA=1,qf=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 qf}var Hf,XA;function Uce(){if(XA)return Hf;XA=1,Hf=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Hf}var Wf,ZA;function zce(){if(ZA)return Wf;ZA=1,Wf=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 Wf}var Vf,QA;function Gce(){if(QA)return Vf;QA=1,Vf=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 Vf}var Yf,JA;function qce(){if(JA)return Yf;JA=1,Yf=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 Kf}var Xf,tk;function cS(){if(tk)return Xf;tk=1,Xf=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\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:/\./}};n.languages.java=n.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:r,function:[n.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}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.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:r,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 r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Xf}var Zf,nk;function _c(){if(nk)return Zf;nk=1,Zf=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.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",u=n.languages[o];if(u){var c=u[l];if(!c){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(o,"comment",p),c=u[l]}if(c instanceof RegExp&&(c=u[l]={pattern:c}),Array.isArray(c))for(var f=0,h=c.length;f)?|/.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)}(r)}return Qf}var Jf,ak;function Vce(){if(ak)return Jf;ak=1,Jf=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 Jf}var eh,ik;function Yce(){if(ik)return eh;ik=1,eh=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 eh}var th,ok;function Kce(){if(ok)return th;ok=1,th=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 th}var nh,sk;function Xce(){if(sk)return nh;sk=1,nh=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.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 nh}var rh,lk;function Zce(){if(lk)return rh;lk=1,rh=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.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 r(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.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"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\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=O.length)return;var N=C[$];if(typeof N=="string"||typeof N.content=="string"){var P=O[x],z=typeof N=="string"?N:N.content,V=z.indexOf(P);if(V!==-1){++x;var G=z.substring(0,V),K=p(A[P]),X=z.substring(V+P.length),W=[];if(G&&W.push(G),W.push(K),X){var Z=[X];R(Z),W.push.apply(W,Z)}typeof N=="string"?(C.splice.apply(C,[$,1].concat(W)),$+=W.length-1):N.content=W}}else{var D=N.content;Array.isArray(D)?R(D):R([D])}}}return R(v),new n.Token(T,v,"language-"+T,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(T){for(var _=0,x=T.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.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 n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.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:r}}}}),n.languages.ts=n.languages.typescript})(t)}return ih}var oh,dk;function Jce(){if(dk)return oh;dk=1;var e=_c(),t=dS();oh=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.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)}(r)}return oh}var sh,pk;function pS(){if(pk)return sh;pk=1,sh=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 sh}var lh,fk;function ede(){if(fk)return lh;fk=1;var e=pS();lh=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.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)?/})}(n)}return lh}var uh,hk;function tde(){if(hk)return uh;hk=1;var e=pS();uh=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return uh}var ch,gk;function nde(){if(gk)return ch;gk=1,ch=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 ch}var dh,mk;function AD(){if(mk)return dh;mk=1,dh=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(c,p)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===l(h.content[0].content[1])&&p.pop():h.content[h.content.length-1].content==="/>"||p.push({tagName:l(h.content[0].content[1]),openedBraces:0}):p.length>0&&h.type==="punctuation"&&h.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?p[p.length-1].openedBraces--:m=!0),(m||typeof h=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=l(h);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=l(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new n.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&u(h.content)}};n.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(t)}return dh}var ph,bk;function rde(){if(bk)return ph;bk=1,ph=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 ph}var fh,yk;function ade(){if(yk)return fh;yk=1,fh=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 fh}var hh,vk;function ide(){if(vk)return hh;vk=1,hh=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 hh}var gh,Sk;function ode(){if(Sk)return gh;Sk=1,gh=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.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 n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return gh}var mh,xk;function sde(){if(xk)return mh;xk=1,mh=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.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"}},n.languages.kum=n.languages.kumir})(t)}return mh}var bh,Ek;function lde(){if(Ek)return bh;Ek=1,bh=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 bh}var yh,wk;function ude(){if(wk)return yh;wk=1,yh=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.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:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return yh}var vh,_k;function Tc(){if(_k)return vh;_k=1;var e=hn();vh=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){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=/[{}\[\](),:;]/;r.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 u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},c=[{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:u}},{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:u}}];r.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:c,"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"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var f=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",f)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return vh}var Sh,Tk;function cde(){if(Tk)return Sh;Tk=1;var e=hn(),t=Tc();Sh=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return Sh}var xh,Ak;function dde(){if(Ak)return xh;Ak=1,xh=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 xh}var Eh,kk;function fS(){if(kk)return Eh;kk=1,Eh=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.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(r({"":/\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 r(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 Eh}var wh,Ok;function pde(){if(Ok)return wh;Ok=1;var e=fS();wh=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){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=r.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:r.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,r.languages.ly=s}(n)}return wh}var _h,Ik;function fde(){if(Ik)return _h;Ik=1;var e=hn();_h=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.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"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"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})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return _h}var Th,Rk;function hde(){if(Rk)return Th;Rk=1,Th=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.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)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/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+c+/\)/.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}]},f={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},h="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(s+c+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=m,p.defun.inside.arguments=n.util.clone(m),p.defun.inside.arguments.inside.sublist=m,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return Th}var Ah,Ck;function gde(){if(Ck)return Ah;Ck=1,Ah=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 Ah}var kh,Nk;function mde(){if(Nk)return kh;Nk=1,kh=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.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 kh}var Oh,Dk;function bde(){if(Dk)return Oh;Dk=1,Oh=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 Oh}var Ih,Lk;function yde(){if(Lk)return Ih;Lk=1,Ih=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 Ih}var Rh,Mk;function vde(){if(Mk)return Rh;Mk=1,Rh=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 Rh}var Ch,Pk;function Sde(){if(Pk)return Ch;Pk=1,Ch=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 Ch}var Nh,$k;function xde(){if($k)return Nh;$k=1,Nh=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(f){return f=f.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}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;n.languages.markdown=n.languages.extend("markup",{}),n.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:n.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:n.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:n.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(f){["url","bold","italic","strike","code-snippet"].forEach(function(h){f!==h&&(n.languages.markdown[f].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(f){if(f.language!=="markdown"&&f.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var b=0,S=m.length;b",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function p(f){var h=f.replace(l,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,b){if(b=b.toLowerCase(),b[0]==="#"){var S;return b[1]==="x"?S=parseInt(b.slice(2),16):S=Number(b.slice(1)),c(S)}else{var T=u[b];return T||m}}),h}n.languages.md=n.languages.markdown})(t)}return Nh}var Dh,jk;function Ede(){if(jk)return Dh;jk=1,Dh=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 Dh}var Lh,Fk;function wde(){if(Fk)return Lh;Fk=1,Lh=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\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;n.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)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.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:r,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 Lh}var Mh,Bk;function _de(){if(Bk)return Mh;Bk=1,Mh=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 Mh}var Ph,Uk;function Tde(){if(Uk)return Ph;Uk=1,Ph=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 Ph}var $h,zk;function Ade(){if(zk)return $h;zk=1,$h=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 $h}var jh,Gk;function kde(){if(Gk)return jh;Gk=1,jh=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$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"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.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)?$")}}}),n.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}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return jh}var Fh,qk;function Ode(){if(qk)return Fh;qk=1,Fh=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 Fh}var Bh,Hk;function Ide(){if(Hk)return Bh;Hk=1,Bh=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 Bh}var Uh,Wk;function Rde(){if(Wk)return Uh;Wk=1,Uh=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 Uh}var zh,Vk;function Cde(){if(Vk)return zh;Vk=1,zh=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 zh}var Gh,Yk;function Nde(){if(Yk)return Gh;Yk=1,Gh=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 Gh}var qh,Kk;function Dde(){if(Kk)return qh;Kk=1,qh=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.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:r,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:r,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":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=o(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(s){for(var l="[]{}",u=[],c=0;c=&|$!]/}}return Hh}var Wh,Zk;function Mde(){if(Zk)return Wh;Zk=1,Wh=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 Wh}var Vh,Qk;function Pde(){if(Qk)return Vh;Qk=1,Vh=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 Vh}var Yh,Jk;function $de(){if(Jk)return Yh;Jk=1,Yh=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.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:r}},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:r}},punctuation:/[{};]/}})(t)}return Yh}var Kh,e1;function jde(){if(e1)return Kh;e1=1,Kh=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 Kh}var Xh,t1;function Fde(){if(t1)return Xh;t1=1,Xh=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 Xh}var Zh,n1;function Bde(){if(n1)return Zh;n1=1,Zh=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 Zh}var Qh,r1;function Ude(){if(r1)return Qh;r1=1;var e=Ca();Qh=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.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 n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return Qh}var Jh,a1;function zde(){if(a1)return Jh;a1=1,Jh=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 Jh}var eg,i1;function Gde(){if(i1)return eg;i1=1;var e=Ca();eg=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.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"}}),r.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"}};r.languages.insertBefore("c","keyword",a),r.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"},r.languages.insertBefore("cpp","keyword",a))}(n)}return eg}var tg,o1;function qde(){if(o1)return tg;o1=1,tg=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 tg}var ng,s1;function Hde(){if(s1)return ng;s1=1,ng=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 ng}var rg,l1;function Wde(){if(l1)return rg;l1=1,rg=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["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 n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\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 rg}var ag,u1;function Vde(){if(u1)return ag;u1=1,ag=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.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:/[\[\](){};]/});r=n.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:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return ag}var ig,c1;function Yde(){if(c1)return ig;c1=1,ig=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 ig}var og,d1;function Kde(){if(d1)return og;d1=1,og=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.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 og}var sg,p1;function Xde(){if(p1)return sg;p1=1,sg=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 sg}var lg,f1;function Zde(){if(f1)return lg;f1=1,lg=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 lg}var ug,h1;function Qde(){if(h1)return ug;h1=1,ug=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.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,r].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,r].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,r+/\s*/.source+r].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 ug}var cg,g1;function Jde(){if(g1)return cg;g1=1;var e=Tc();cg=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.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 cg}var dg,m1;function epe(){if(m1)return dg;m1=1;var e=Tc(),t=_c();dg=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.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)}(r)}return dg}var pg,b1;function tpe(){if(b1)return pg;b1=1;var e=sS();pg=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return pg}var fg,y1;function npe(){if(y1)return fg;y1=1,fg=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 fg}var hg,v1;function rpe(){if(v1)return hg;v1=1,hg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.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:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return hg}var gg,S1;function ape(){if(S1)return gg;S1=1,gg=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 gg}var mg,x1;function ipe(){if(x1)return mg;x1=1,mg=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 mg}var bg,E1;function ope(){if(E1)return bg;E1=1,bg=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["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=r.concat(a,i);n.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 bg}var yg,w1;function spe(){if(w1)return yg;w1=1,yg=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 yg}var vg,_1;function lpe(){if(_1)return vg;_1=1,vg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.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}),n.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:r}},builtin:r,"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 vg}var Sg,T1;function upe(){if(T1)return Sg;T1=1,Sg=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 Sg}var xg,A1;function cpe(){if(A1)return xg;A1=1,xg=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.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:n.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:n.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:n.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:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\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:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return xg}var Eg,k1;function dpe(){if(k1)return Eg;k1=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.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 r=[{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:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return Eg}var wg,O1;function ppe(){if(O1)return wg;O1=1,wg=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.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 r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return wg}var _g,I1;function fpe(){if(I1)return _g;I1=1,_g=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 _g}var Tg,R1;function hpe(){if(R1)return Tg;R1=1;var e=uS();Tg=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.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:[n.languages.haskell.operator[0],n.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]/]}),n.languages.purs=n.languages.purescript}return Tg}var Ag,C1;function gpe(){if(C1)return Ag;C1=1,Ag=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 Ag}var kg,N1;function mpe(){if(N1)return kg;N1=1,kg=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 kg}var Og,D1;function bpe(){if(D1)return Og;D1=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.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:n.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:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var Ig,L1;function ype(){if(L1)return Ig;L1=1,Ig=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 Ig}var Rg,M1;function vpe(){if(M1)return Rg;M1=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(m,b){return m.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+b[+T]+")"})}function a(m,b,S){return RegExp(r(m,b),S||"")}function i(m,b){for(var S=0;S>/g,function(){return"(?:"+m+")"});return m.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(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),u=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),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:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Cg,P1;function Spe(){if(P1)return Cg;P1=1,Cg=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 Cg}var Ng,$1;function xpe(){if($1)return Ng;$1=1;var e=fS();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return Ng}var Dg,j1;function Epe(){if(j1)return Dg;j1=1,Dg=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 Dg}var Lg,F1;function wpe(){if(F1)return Lg;F1=1,Lg=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={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),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.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":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Mg}var Pg,U1;function Tpe(){if(U1)return Pg;U1=1,Pg=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 Pg}var $g,z1;function Ape(){if(z1)return $g;z1=1,$g=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 $g}var jg,G1;function kpe(){if(G1)return jg;G1=1,jg=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 jg}var Fg,q1;function Ope(){if(q1)return Fg;q1=1,Fg=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 Fg}var Bg,H1;function Ipe(){if(H1)return Bg;H1=1,Bg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"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}};n.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:r},n.languages.robot=n.languages.robotframework})(t)}return Bg}var Ug,W1;function Rpe(){if(W1)return Ug;W1=1,Ug=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return Ug}var zg,V1;function Cpe(){if(V1)return zg;V1=1,zg=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[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},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"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:c},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={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"},T={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,x={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:u,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:p,string:c}},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};n.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 r}),"im"),alias:"language-sql",inside:n.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:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:l,keyword:A,function:f,format:m,altformat:b,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"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:u,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":x,comment:u,function:f,format:m,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,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 zg}var Gg,Y1;function Npe(){if(Y1)return Gg;Y1=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.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 Gg}var qg,K1;function Dpe(){if(K1)return qg;K1=1;var e=cS();qg=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.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*/}),n.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:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return qg}var Hg,X1;function Lpe(){if(X1)return Hg;X1=1,Hg=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 Hg}var Wg,Z1;function Mpe(){if(Z1)return Wg;Z1=1;var e=wD();Wg=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.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:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return Wg}var Vg,Q1;function Ppe(){if(Q1)return Vg;Q1=1,Vg=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 Vg}var Yg,J1;function $pe(){if(J1)return Yg;J1=1,Yg=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 Yg}var Kg,eO;function jpe(){if(eO)return Kg;eO=1;var e=hn();Kg=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.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:r.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/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.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");r.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(c){return c===l&&(u=!1),u?!1:(c===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return Kg}var Xg,tO;function Fpe(){if(tO)return Xg;tO=1,Xg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\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;n.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 r.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:r,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:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return Xg}var Zg,nO;function Bpe(){if(nO)return Zg;nO=1,Zg=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 Zg}var Qg,rO;function Upe(){if(rO)return Qg;rO=1,Qg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},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:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return Qg}var Jg,aO;function zpe(){if(aO)return Jg;aO=1;var e=hn();Jg=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.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:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===u&&(c=!1),c?!1:(p===l&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return Jg}var em,iO;function kD(){if(iO)return em;iO=1,em=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 em}var tm,oO;function Gpe(){if(oO)return tm;oO=1;var e=kD();tm=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.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]}),n.languages.rq=n.languages.sparql}return tm}var nm,sO;function qpe(){if(sO)return nm;sO=1,nm=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 nm}var rm,lO;function Hpe(){if(lO)return rm;lO=1,rm=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 rm}var am,uO;function Wpe(){if(uO)return am;uO=1,am=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 am}var im,cO;function Vpe(){if(cO)return im;cO=1,im=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\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/;n.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("("+r.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/,r],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:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return im}var om,dO;function Ype(){if(dO)return om;dO=1,om=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={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:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,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}},n.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 om}var sm,pO;function Kpe(){if(pO)return sm;pO=1,sm=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(n){n.inside.interpolation.inside=t.languages.swift})}return sm}var lm,fO;function Xpe(){if(fO)return lm;fO=1,lm=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,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:r,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 lm}var um,hO;function hS(){if(hO)return um;hO=1,um=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(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=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return um}var cm,gO;function Zpe(){if(gO)return cm;gO=1;var e=hS(),t=Ec();cm=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return cm}var dm,mO;function OD(){if(mO)return dm;mO=1;var e=_D();dm=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.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 dm}var pm,bO;function Qpe(){if(bO)return pm;bO=1;var e=hS(),t=OD();pm=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return pm}var fm,yO;function ID(){if(yO)return fm;yO=1,fm=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.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(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}n.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:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return fm}var hm,vO;function Jpe(){if(vO)return hm;vO=1;var e=ID();hm=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.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:n.languages.yaml,alias:"language-yaml"}}}return hm}var gm,SO;function efe(){if(SO)return gm;SO=1,gm=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 gm}var mm,xO;function tfe(){if(xO)return mm;xO=1,mm=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.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,u={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 c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return mm}var bm,EO;function nfe(){if(EO)return bm;EO=1,bm=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.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 bm}var ym,wO;function rfe(){if(wO)return ym;wO=1,ym=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.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 r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return ym}var vm,_O;function afe(){if(_O)return vm;_O=1;var e=AD(),t=dS();vm=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.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}(r)}return vm}var Sm,TO;function ife(){if(TO)return Sm;TO=1;var e=hn();Sm=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.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:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.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 r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return Sm}var xm,AO;function ofe(){if(AO)return xm;AO=1;var e=hn();xm=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.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:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return xm}var Em,kO;function sfe(){if(kO)return Em;kO=1,Em=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\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/;n.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:r}},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:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Em}var wm,OO;function lfe(){if(OO)return wm;OO=1,wm=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 wm}var _m,IO;function ufe(){if(IO)return _m;IO=1,_m=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 _m}var Tm,RO;function cfe(){if(RO)return Tm;RO=1,Tm=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 Tm}var Am,CO;function dfe(){if(CO)return Am;CO=1,Am=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.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":r}}}},"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/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.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+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return Am}var km,NO;function pfe(){if(NO)return km;NO=1,km=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 km}var Om,DO;function ffe(){if(DO)return Om;DO=1,Om=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={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:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.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:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return Om}var Im,LO;function hfe(){if(LO)return Im;LO=1,Im=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 Im}var Rm,MO;function gfe(){if(MO)return Rm;MO=1,Rm=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 Rm}var Cm,PO;function mfe(){if(PO)return Cm;PO=1,Cm=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 Cm}var Nm,$O;function bfe(){if($O)return Nm;$O=1,Nm=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 Nm}var Dm,jO;function yfe(){if(jO)return Dm;jO=1,Dm=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 Dm}var Lm,FO;function vfe(){if(FO)return Lm;FO=1,Lm=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 Lm}var Mm,BO;function Sfe(){if(BO)return Mm;BO=1,Mm=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\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+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),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+r+/\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+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\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 n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return Mm}var Pm,UO;function xfe(){if(UO)return Pm;UO=1,Pm=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 Pm}var $m,zO;function Efe(){if(zO)return $m;zO=1,$m=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 $m}var jm,GO;function wfe(){if(GO)return jm;GO=1,jm=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 jm}var Fm,qO;function _fe(){if(qO)return Fm;qO=1,Fm=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.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"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return Fm}var Bm,HO;function Tfe(){if(HO)return Bm;HO=1,Bm=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return Bm}var Um,WO;function Afe(){if(WO)return Um;WO=1,Um=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 Um}var zm,VO;function kfe(){if(VO)return zm;VO=1,zm=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.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:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(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"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var c=r(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=r(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return zm}var Gm,YO;function Ofe(){if(YO)return Gm;YO=1,Gm=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 Gm}var qm,KO;function Ife(){if(KO)return qm;KO=1,qm=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(c){return function(){return c}}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,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.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,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(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:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(t)}return qm}var L=$le,Rfe=L;L.register(Yle());L.register(Kle());L.register(Xle());L.register(Zle());L.register(Qle());L.register(Jle());L.register(eue());L.register(tue());L.register(nue());L.register(rue());L.register(aue());L.register(iue());L.register(oue());L.register(sue());L.register(lue());L.register(uue());L.register(cue());L.register(due());L.register(pue());L.register(fue());L.register(hue());L.register(gue());L.register(wD());L.register(_D());L.register(mue());L.register(bue());L.register(yue());L.register(vue());L.register(Sue());L.register(xue());L.register(Eue());L.register(wue());L.register(_ue());L.register(Tue());L.register(Ca());L.register(Aue());L.register(kue());L.register(Oue());L.register(Iue());L.register(Rue());L.register(Cue());L.register(Nue());L.register(Due());L.register(Lue());L.register(lS());L.register(Mue());L.register(Ec());L.register(Pue());L.register($ue());L.register(jue());L.register(Fue());L.register(Bue());L.register(Uue());L.register(zue());L.register(Gue());L.register(que());L.register(Hue());L.register(Wue());L.register(Vue());L.register(Yue());L.register(Kue());L.register(Xue());L.register(Zue());L.register(Que());L.register(Jue());L.register(ece());L.register(tce());L.register(nce());L.register(rce());L.register(ace());L.register(ice());L.register(oce());L.register(sce());L.register(lce());L.register(uce());L.register(cce());L.register(dce());L.register(pce());L.register(fce());L.register(hce());L.register(gce());L.register(mce());L.register(bce());L.register(yce());L.register(vce());L.register(Sce());L.register(xce());L.register(Ece());L.register(wce());L.register(_ce());L.register(Tce());L.register(Ace());L.register(kce());L.register(Oce());L.register(uS());L.register(Ice());L.register(Rce());L.register(Cce());L.register(Nce());L.register(Dce());L.register(Lce());L.register(Mce());L.register(Pce());L.register($ce());L.register(jce());L.register(Fce());L.register(Bce());L.register(Uce());L.register(zce());L.register(Gce());L.register(qce());L.register(Hce());L.register(cS());L.register(Wce());L.register(_c());L.register(Vce());L.register(Yce());L.register(Kce());L.register(Xce());L.register(Zce());L.register(Qce());L.register(Jce());L.register(pS());L.register(ede());L.register(tde());L.register(nde());L.register(AD());L.register(rde());L.register(ade());L.register(ide());L.register(ode());L.register(sde());L.register(lde());L.register(ude());L.register(cde());L.register(dde());L.register(pde());L.register(fde());L.register(hde());L.register(gde());L.register(mde());L.register(bde());L.register(yde());L.register(TD());L.register(vde());L.register(Sde());L.register(xde());L.register(hn());L.register(Ede());L.register(wde());L.register(_de());L.register(Tde());L.register(Ade());L.register(kde());L.register(Ode());L.register(Ide());L.register(Rde());L.register(Cde());L.register(Nde());L.register(Dde());L.register(Lde());L.register(Mde());L.register(Pde());L.register($de());L.register(jde());L.register(Fde());L.register(Bde());L.register(Ude());L.register(zde());L.register(Gde());L.register(qde());L.register(Hde());L.register(Wde());L.register(Vde());L.register(Yde());L.register(Kde());L.register(Xde());L.register(Zde());L.register(Qde());L.register(Jde());L.register(Tc());L.register(epe());L.register(tpe());L.register(npe());L.register(rpe());L.register(ape());L.register(ipe());L.register(ope());L.register(spe());L.register(lpe());L.register(upe());L.register(cpe());L.register(dpe());L.register(ppe());L.register(fpe());L.register(hpe());L.register(gpe());L.register(mpe());L.register(bpe());L.register(ype());L.register(vpe());L.register(Spe());L.register(xpe());L.register(Epe());L.register(wpe());L.register(_pe());L.register(Tpe());L.register(Ape());L.register(kpe());L.register(Ope());L.register(Ipe());L.register(wc());L.register(Rpe());L.register(Cpe());L.register(Npe());L.register(Dpe());L.register(fS());L.register(Lpe());L.register(Mpe());L.register(Ppe());L.register($pe());L.register(jpe());L.register(Fpe());L.register(Bpe());L.register(Upe());L.register(zpe());L.register(Gpe());L.register(qpe());L.register(Hpe());L.register(sS());L.register(Wpe());L.register(Vpe());L.register(Ype());L.register(Kpe());L.register(Xpe());L.register(Zpe());L.register(hS());L.register(Qpe());L.register(Jpe());L.register(efe());L.register(tfe());L.register(nfe());L.register(rfe());L.register(afe());L.register(ife());L.register(kD());L.register(ofe());L.register(dS());L.register(sfe());L.register(lfe());L.register(ufe());L.register(cfe());L.register(dfe());L.register(pfe());L.register(OD());L.register(ffe());L.register(hfe());L.register(gfe());L.register(mfe());L.register(bfe());L.register(yfe());L.register(vfe());L.register(Sfe());L.register(xfe());L.register(Efe());L.register(wfe());L.register(_fe());L.register(Tfe());L.register(Afe());L.register(kfe());L.register(ID());L.register(Ofe());L.register(Ife());const Cfe=St(Rfe);var RD=kae(Cfe,Vle);RD.supportedLanguages=Oae;const Nfe=RD,Dfe={'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"}},Lfe=()=>{var m,b,S,T,_,x,A;const e=Kt(),t=F.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=Pt(E=>E),[a,i]=F.useState(!1),[o,s]=F.useState(((m=e==null?void 0:e.properties)==null?void 0:m.boost)||0);F.useEffect(()=>{var E;s(((E=e==null?void 0:e.properties)==null?void 0:E.boost)||0)},[e]),F.useEffect(()=>{const E=t.current,v=()=>{r(null),i(!1)};return E&&E.addEventListener("ended",v),()=>{E&&E.removeEventListener("ended",v)}},[r,a]),F.useEffect(()=>{i(!1)},[e]);const l=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),i(!0)):(t.current.pause(),r(null),i(!1)))};if(!e)return null;const u=!!((b=e.properties)!=null&&b.image_url),c=!!((S=e.properties)!=null&&S.audio_EN),p=e.properties||{},f=(T=e.properties)==null?void 0:T.source_link,h=(_=e.properties)==null?void 0:_.pubkey;return y.jsxs(zfe,{children:[u?y.jsx(Ffe,{children:y.jsx("img",{alt:"img_a11y",onError:E=>{E.currentTarget.src="generic_placeholder_img.png",E.currentTarget.className="default-img"},src:(x=e.properties)==null?void 0:x.image_url})}):null,y.jsxs($fe,{grow:1,justify:"flex-start",pt:u?0:8,shrink:1,children:[y.jsxs(q,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[y.jsx(Ai,{type:e.node_type||""}),f&&y.jsx(Hfe,{href:`${f}${f.includes("?")?"&":"?"}open=system`,target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(jfe,{children:Object.entries(p).filter(([E])=>E!=="media_url"&&E!=="link"&&E!=="pubkey").map(([E,v])=>y.jsx(Pfe,{hasAudio:c,isPlaying:a,label:Mfe(E),togglePlay:l,value:E==="date"&&v?_i(v*1e3).format("MMMM Do YYYY"):v},E))}),h&&y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:o}),y.jsx(qv,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),c&&((A=e.properties)==null?void 0:A.audio_EN)&&y.jsx(qfe,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},Mfe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),Pfe=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:a})=>{const i=t.length>140,o=Pt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"?null:y.jsxs(y.Fragment,{children:[y.jsxs(Bfe,{className:lr("node-detail",{"node-detail__long":i}),children:[y.jsxs(vt,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(Gfe,{onClick:a,children:r?y.jsx(xI,{}):y.jsx(EI,{})})]}),e!=="Frame"&&e!=="Code"?y.jsx(vt,{className:"node-detail__value",children:ur(String(t),o)}):y.jsx(Nfe,{language:"javascript",style:Dfe,children:String(t)})]}),y.jsx(Ufe,{})]})},$fe=H(q)` +|(?![\\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(n.languages.diff,"PREFIXES",{value:r})})(t)}return Wp}var Vp,JT;function hn(){if(JT)return Vp;JT=1,Vp=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.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(u){if(typeof s=="function"&&!s(u))return u;for(var c=l.length,p;a.code.indexOf(p=r(i,c))!==-1;)++c;return l[c]=u,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(u){for(var c=0;c=s.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=s[o],h=a.tokenStack[f],m=typeof p=="string"?p:p.content,b=r(i,f),S=m.indexOf(b);if(S>-1){++o;var T=m.substring(0,S),_=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),E=m.substring(S+b.length),A=[];T&&A.push.apply(A,l([T])),A.push(_),E&&A.push.apply(A,l([E])),typeof p=="string"?u.splice.apply(u,[c,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return u}l(a.tokens)}}})})(t)}return Vp}var Yp,eA;function Vue(){if(eA)return Yp;eA=1;var e=hn();Yp=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.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=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(n)}return Yp}var Kp,tA;function Yue(){if(tA)return Kp;tA=1,Kp=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 Kp}var Xp,nA;function Kue(){if(nA)return Xp;nA=1,Xp=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),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 u(c,p){return c=c.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(c,p)}n.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:u(/(^(?: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:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return Xp}var Zp,rA;function Xue(){if(rA)return Zp;rA=1,Zp=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[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:n.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return r}),s)}n.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:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return Zp}var Qp,aA;function Zue(){if(aA)return Qp;aA=1,Qp=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 Qp}var Jp,iA;function Que(){if(iA)return Jp;iA=1,Jp=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 Jp}var ef,oA;function Jue(){if(oA)return ef;oA=1,ef=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 ef}var tf,sA;function ece(){if(sA)return tf;sA=1;var e=hn();tf=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return tf}var nf,lA;function tce(){if(lA)return nf;lA=1,nf=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(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return nf}var rf,uA;function nce(){if(uA)return rf;uA=1,rf=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 rf}var af,cA;function rce(){if(cA)return af;cA=1;var e=wc(),t=hn();af=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return af}var of,dA;function ace(){if(dA)return of;dA=1,of=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 of}var sf,pA;function AD(){if(pA)return sf;pA=1,sf=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 sf}var lf,fA;function ice(){if(fA)return lf;fA=1;var e=AD(),t=hn();lf=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return lf}var uf,hA;function oce(){if(hA)return uf;hA=1,uf=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 uf}var cf,gA;function sce(){if(gA)return cf;gA=1,cf=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={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:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],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(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.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(c){i[c].pattern=s(l[c])});var u=["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(u),n.languages.factor=i})(t)}return cf}var df,mA;function lce(){if(mA)return df;mA=1,df=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.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 pf}var ff,yA;function cce(){if(yA)return ff;yA=1,ff=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.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 n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.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 ff}var hf,vA;function dce(){if(vA)return hf;vA=1,hf=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 hf}var gf,SA;function pce(){if(SA)return gf;SA=1,gf=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 gf}var mf,xA;function fce(){if(xA)return mf;xA=1;var e=hn();mf=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){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,r.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}}}},r.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return mf}var bf,EA;function hce(){if(EA)return bf;EA=1,bf=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 bf}var yf,wA;function gce(){if(wA)return yf;wA=1,yf=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 yf}var vf,_A;function mce(){if(_A)return vf;_A=1,vf=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 vf}var Sf,TA;function bce(){if(TA)return Sf;TA=1,Sf=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 Sf}var xf,AA;function yce(){if(AA)return xf;AA=1,xf=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.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("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),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 xf}var Ef,kA;function vce(){if(kA)return Ef;kA=1,Ef=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 Ef}var wf,OA;function Sce(){if(OA)return wf;OA=1;var e=Ca();wf=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.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 wf}var _f,IA;function xce(){if(IA)return _f;IA=1,_f=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 _f}var Tf,RA;function Ece(){if(RA)return Tf;RA=1,Tf=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 Tf}var Af,CA;function wce(){if(CA)return Af;CA=1,Af=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 Af}var kf,NA;function _ce(){if(NA)return kf;NA=1,kf=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 kf}var Of,DA;function Tce(){if(DA)return Of;DA=1,Of=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(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function o(T){return a[i+T]}function s(T,_){_=_||0;for(var E=0;E0)){var m=l(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=i;b=0&&u(S,"variable-input")}}}}})}return Of}var If,LA;function Ace(){if(LA)return If;LA=1,If=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(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return If}var Rf,MA;function kce(){if(MA)return Rf;MA=1;var e=wc();Rf=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.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:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.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:r.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:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.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]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Cf}var Nf,$A;function uS(){if($A)return Nf;$A=1,Nf=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 Nf}var Df,jA;function Ice(){if(jA)return Df;jA=1,Df=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 Df}var Lf,FA;function Rce(){if(FA)return Lf;FA=1,Lf=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 Lf}var Mf,BA;function Cce(){if(BA)return Mf;BA=1;var e=Ca();Mf=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.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 Mf}var Pf,UA;function Nce(){if(UA)return Pf;UA=1,Pf=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 Pf}var $f,zA;function Dce(){if(zA)return $f;zA=1,$f=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 $f}var jf,GA;function Lce(){if(GA)return jf;GA=1,jf=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 jf}var Ff,qA;function Mce(){if(qA)return Ff;qA=1,Ff=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.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:n.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:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.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 f=p.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+h+")"}var l;for(var u in i)if(i[u]){l=l||{};var c=o[u]?s(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(t)}return Ff}var Bf,HA;function Pce(){if(HA)return Bf;HA=1,Bf=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 Bf}var Uf,WA;function $ce(){if(WA)return Uf;WA=1,Uf=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 Uf}var zf,VA;function jce(){if(VA)return zf;VA=1,zf=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return r(u,c-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.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"}}};n.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+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return zf}var Gf,YA;function Fce(){if(YA)return Gf;YA=1;var e=uS();Gf=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.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}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Gf}var qf,KA;function Bce(){if(KA)return qf;KA=1,qf=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 qf}var Hf,XA;function Uce(){if(XA)return Hf;XA=1,Hf=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Hf}var Wf,ZA;function zce(){if(ZA)return Wf;ZA=1,Wf=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 Wf}var Vf,QA;function Gce(){if(QA)return Vf;QA=1,Vf=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 Vf}var Yf,JA;function qce(){if(JA)return Yf;JA=1,Yf=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 Kf}var Xf,tk;function cS(){if(tk)return Xf;tk=1,Xf=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\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:/\./}};n.languages.java=n.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:r,function:[n.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}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.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:r,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 r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Xf}var Zf,nk;function _c(){if(nk)return Zf;nk=1,Zf=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.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",u=n.languages[o];if(u){var c=u[l];if(!c){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(o,"comment",p),c=u[l]}if(c instanceof RegExp&&(c=u[l]={pattern:c}),Array.isArray(c))for(var f=0,h=c.length;f)?|/.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)}(r)}return Qf}var Jf,ak;function Vce(){if(ak)return Jf;ak=1,Jf=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 Jf}var eh,ik;function Yce(){if(ik)return eh;ik=1,eh=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 eh}var th,ok;function Kce(){if(ok)return th;ok=1,th=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 th}var nh,sk;function Xce(){if(sk)return nh;sk=1,nh=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.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 nh}var rh,lk;function Zce(){if(lk)return rh;lk=1,rh=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.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 r(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.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"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\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=O.length)return;var N=C[$];if(typeof N=="string"||typeof N.content=="string"){var P=O[E],z=typeof N=="string"?N:N.content,V=z.indexOf(P);if(V!==-1){++E;var G=z.substring(0,V),K=p(A[P]),X=z.substring(V+P.length),W=[];if(G&&W.push(G),W.push(K),X){var Z=[X];R(Z),W.push.apply(W,Z)}typeof N=="string"?(C.splice.apply(C,[$,1].concat(W)),$+=W.length-1):N.content=W}}else{var D=N.content;Array.isArray(D)?R(D):R([D])}}}return R(v),new n.Token(T,v,"language-"+T,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(T){for(var _=0,E=T.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.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 n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.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:r}}}}),n.languages.ts=n.languages.typescript})(t)}return ih}var oh,dk;function Jce(){if(dk)return oh;dk=1;var e=_c(),t=dS();oh=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.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)}(r)}return oh}var sh,pk;function pS(){if(pk)return sh;pk=1,sh=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 sh}var lh,fk;function ede(){if(fk)return lh;fk=1;var e=pS();lh=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.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)?/})}(n)}return lh}var uh,hk;function tde(){if(hk)return uh;hk=1;var e=pS();uh=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return uh}var ch,gk;function nde(){if(gk)return ch;gk=1,ch=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 ch}var dh,mk;function kD(){if(mk)return dh;mk=1,dh=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(c,p)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===l(h.content[0].content[1])&&p.pop():h.content[h.content.length-1].content==="/>"||p.push({tagName:l(h.content[0].content[1]),openedBraces:0}):p.length>0&&h.type==="punctuation"&&h.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?p[p.length-1].openedBraces--:m=!0),(m||typeof h=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=l(h);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=l(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new n.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&u(h.content)}};n.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(t)}return dh}var ph,bk;function rde(){if(bk)return ph;bk=1,ph=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 ph}var fh,yk;function ade(){if(yk)return fh;yk=1,fh=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 fh}var hh,vk;function ide(){if(vk)return hh;vk=1,hh=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 hh}var gh,Sk;function ode(){if(Sk)return gh;Sk=1,gh=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.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 n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return gh}var mh,xk;function sde(){if(xk)return mh;xk=1,mh=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.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"}},n.languages.kum=n.languages.kumir})(t)}return mh}var bh,Ek;function lde(){if(Ek)return bh;Ek=1,bh=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 bh}var yh,wk;function ude(){if(wk)return yh;wk=1,yh=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.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:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return yh}var vh,_k;function Tc(){if(_k)return vh;_k=1;var e=hn();vh=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){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=/[{}\[\](),:;]/;r.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 u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},c=[{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:u}},{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:u}}];r.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:c,"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"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var f=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",f)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return vh}var Sh,Tk;function cde(){if(Tk)return Sh;Tk=1;var e=hn(),t=Tc();Sh=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.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")})}(r)}return Sh}var xh,Ak;function dde(){if(Ak)return xh;Ak=1,xh=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 xh}var Eh,kk;function fS(){if(kk)return Eh;kk=1,Eh=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.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(r({"":/\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 r(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 Eh}var wh,Ok;function pde(){if(Ok)return wh;Ok=1;var e=fS();wh=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){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=r.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:r.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,r.languages.ly=s}(n)}return wh}var _h,Ik;function fde(){if(Ik)return _h;Ik=1;var e=hn();_h=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.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"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"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})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return _h}var Th,Rk;function hde(){if(Rk)return Th;Rk=1,Th=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.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)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/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+c+/\)/.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}]},f={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},h="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(s+c+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=m,p.defun.inside.arguments=n.util.clone(m),p.defun.inside.arguments.inside.sublist=m,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return Th}var Ah,Ck;function gde(){if(Ck)return Ah;Ck=1,Ah=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 Ah}var kh,Nk;function mde(){if(Nk)return kh;Nk=1,kh=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.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 kh}var Oh,Dk;function bde(){if(Dk)return Oh;Dk=1,Oh=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 Oh}var Ih,Lk;function yde(){if(Lk)return Ih;Lk=1,Ih=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 Ih}var Rh,Mk;function vde(){if(Mk)return Rh;Mk=1,Rh=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 Rh}var Ch,Pk;function Sde(){if(Pk)return Ch;Pk=1,Ch=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 Ch}var Nh,$k;function xde(){if($k)return Nh;$k=1,Nh=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(f){return f=f.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}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;n.languages.markdown=n.languages.extend("markup",{}),n.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:n.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:n.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:n.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(f){["url","bold","italic","strike","code-snippet"].forEach(function(h){f!==h&&(n.languages.markdown[f].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(f){if(f.language!=="markdown"&&f.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var b=0,S=m.length;b",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function p(f){var h=f.replace(l,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,b){if(b=b.toLowerCase(),b[0]==="#"){var S;return b[1]==="x"?S=parseInt(b.slice(2),16):S=Number(b.slice(1)),c(S)}else{var T=u[b];return T||m}}),h}n.languages.md=n.languages.markdown})(t)}return Nh}var Dh,jk;function Ede(){if(jk)return Dh;jk=1,Dh=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 Dh}var Lh,Fk;function wde(){if(Fk)return Lh;Fk=1,Lh=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\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;n.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)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.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:r,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 Lh}var Mh,Bk;function _de(){if(Bk)return Mh;Bk=1,Mh=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 Mh}var Ph,Uk;function Tde(){if(Uk)return Ph;Uk=1,Ph=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 Ph}var $h,zk;function Ade(){if(zk)return $h;zk=1,$h=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 $h}var jh,Gk;function kde(){if(Gk)return jh;Gk=1,jh=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$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"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.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)?$")}}}),n.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}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return jh}var Fh,qk;function Ode(){if(qk)return Fh;qk=1,Fh=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 Fh}var Bh,Hk;function Ide(){if(Hk)return Bh;Hk=1,Bh=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 Bh}var Uh,Wk;function Rde(){if(Wk)return Uh;Wk=1,Uh=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 Uh}var zh,Vk;function Cde(){if(Vk)return zh;Vk=1,zh=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 zh}var Gh,Yk;function Nde(){if(Yk)return Gh;Yk=1,Gh=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 Gh}var qh,Kk;function Dde(){if(Kk)return qh;Kk=1,qh=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.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:r,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:r,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":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=o(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(s){for(var l="[]{}",u=[],c=0;c=&|$!]/}}return Hh}var Wh,Zk;function Mde(){if(Zk)return Wh;Zk=1,Wh=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 Wh}var Vh,Qk;function Pde(){if(Qk)return Vh;Qk=1,Vh=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 Vh}var Yh,Jk;function $de(){if(Jk)return Yh;Jk=1,Yh=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.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:r}},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:r}},punctuation:/[{};]/}})(t)}return Yh}var Kh,e1;function jde(){if(e1)return Kh;e1=1,Kh=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 Kh}var Xh,t1;function Fde(){if(t1)return Xh;t1=1,Xh=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 Xh}var Zh,n1;function Bde(){if(n1)return Zh;n1=1,Zh=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 Zh}var Qh,r1;function Ude(){if(r1)return Qh;r1=1;var e=Ca();Qh=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.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 n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return Qh}var Jh,a1;function zde(){if(a1)return Jh;a1=1,Jh=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 Jh}var eg,i1;function Gde(){if(i1)return eg;i1=1;var e=Ca();eg=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.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"}}),r.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"}};r.languages.insertBefore("c","keyword",a),r.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"},r.languages.insertBefore("cpp","keyword",a))}(n)}return eg}var tg,o1;function qde(){if(o1)return tg;o1=1,tg=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 tg}var ng,s1;function Hde(){if(s1)return ng;s1=1,ng=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 ng}var rg,l1;function Wde(){if(l1)return rg;l1=1,rg=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["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 n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\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 rg}var ag,u1;function Vde(){if(u1)return ag;u1=1,ag=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.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:/[\[\](){};]/});r=n.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:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return ag}var ig,c1;function Yde(){if(c1)return ig;c1=1,ig=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 ig}var og,d1;function Kde(){if(d1)return og;d1=1,og=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.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 og}var sg,p1;function Xde(){if(p1)return sg;p1=1,sg=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 sg}var lg,f1;function Zde(){if(f1)return lg;f1=1,lg=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 lg}var ug,h1;function Qde(){if(h1)return ug;h1=1,ug=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.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,r].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,r].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,r+/\s*/.source+r].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 ug}var cg,g1;function Jde(){if(g1)return cg;g1=1;var e=Tc();cg=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.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 cg}var dg,m1;function epe(){if(m1)return dg;m1=1;var e=Tc(),t=_c();dg=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.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)}(r)}return dg}var pg,b1;function tpe(){if(b1)return pg;b1=1;var e=sS();pg=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return pg}var fg,y1;function npe(){if(y1)return fg;y1=1,fg=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 fg}var hg,v1;function rpe(){if(v1)return hg;v1=1,hg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.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:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return hg}var gg,S1;function ape(){if(S1)return gg;S1=1,gg=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 gg}var mg,x1;function ipe(){if(x1)return mg;x1=1,mg=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 mg}var bg,E1;function ope(){if(E1)return bg;E1=1,bg=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["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=r.concat(a,i);n.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 bg}var yg,w1;function spe(){if(w1)return yg;w1=1,yg=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 yg}var vg,_1;function lpe(){if(_1)return vg;_1=1,vg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.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}),n.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:r}},builtin:r,"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 vg}var Sg,T1;function upe(){if(T1)return Sg;T1=1,Sg=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 Sg}var xg,A1;function cpe(){if(A1)return xg;A1=1,xg=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.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:n.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:n.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:n.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:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\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:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return xg}var Eg,k1;function dpe(){if(k1)return Eg;k1=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.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 r=[{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:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return Eg}var wg,O1;function ppe(){if(O1)return wg;O1=1,wg=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.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 r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return wg}var _g,I1;function fpe(){if(I1)return _g;I1=1,_g=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 _g}var Tg,R1;function hpe(){if(R1)return Tg;R1=1;var e=uS();Tg=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.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:[n.languages.haskell.operator[0],n.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]/]}),n.languages.purs=n.languages.purescript}return Tg}var Ag,C1;function gpe(){if(C1)return Ag;C1=1,Ag=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 Ag}var kg,N1;function mpe(){if(N1)return kg;N1=1,kg=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 kg}var Og,D1;function bpe(){if(D1)return Og;D1=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.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:n.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:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var Ig,L1;function ype(){if(L1)return Ig;L1=1,Ig=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 Ig}var Rg,M1;function vpe(){if(M1)return Rg;M1=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(m,b){return m.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+b[+T]+")"})}function a(m,b,S){return RegExp(r(m,b),S||"")}function i(m,b){for(var S=0;S>/g,function(){return"(?:"+m+")"});return m.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(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),u=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),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:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Cg,P1;function Spe(){if(P1)return Cg;P1=1,Cg=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 Cg}var Ng,$1;function xpe(){if($1)return Ng;$1=1;var e=fS();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return Ng}var Dg,j1;function Epe(){if(j1)return Dg;j1=1,Dg=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 Dg}var Lg,F1;function wpe(){if(F1)return Lg;F1=1,Lg=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={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),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.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":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Mg}var Pg,U1;function Tpe(){if(U1)return Pg;U1=1,Pg=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 Pg}var $g,z1;function Ape(){if(z1)return $g;z1=1,$g=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 $g}var jg,G1;function kpe(){if(G1)return jg;G1=1,jg=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 jg}var Fg,q1;function Ope(){if(q1)return Fg;q1=1,Fg=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 Fg}var Bg,H1;function Ipe(){if(H1)return Bg;H1=1,Bg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"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}};n.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:r},n.languages.robot=n.languages.robotframework})(t)}return Bg}var Ug,W1;function Rpe(){if(W1)return Ug;W1=1,Ug=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return Ug}var zg,V1;function Cpe(){if(V1)return zg;V1=1,zg=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[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},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"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:c},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={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"},T={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,E={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:u,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:p,string:c}},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};n.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 r}),"im"),alias:"language-sql",inside:n.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:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":E,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:l,keyword:A,function:f,format:m,altformat:b,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"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:u,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":E,comment:u,function:f,format:m,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,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 zg}var Gg,Y1;function Npe(){if(Y1)return Gg;Y1=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.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 Gg}var qg,K1;function Dpe(){if(K1)return qg;K1=1;var e=cS();qg=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.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*/}),n.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:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return qg}var Hg,X1;function Lpe(){if(X1)return Hg;X1=1,Hg=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 Hg}var Wg,Z1;function Mpe(){if(Z1)return Wg;Z1=1;var e=_D();Wg=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.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:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return Wg}var Vg,Q1;function Ppe(){if(Q1)return Vg;Q1=1,Vg=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 Vg}var Yg,J1;function $pe(){if(J1)return Yg;J1=1,Yg=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 Yg}var Kg,eO;function jpe(){if(eO)return Kg;eO=1;var e=hn();Kg=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.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:r.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/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.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");r.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(c){return c===l&&(u=!1),u?!1:(c===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return Kg}var Xg,tO;function Fpe(){if(tO)return Xg;tO=1,Xg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\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;n.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 r.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:r,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:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return Xg}var Zg,nO;function Bpe(){if(nO)return Zg;nO=1,Zg=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 Zg}var Qg,rO;function Upe(){if(rO)return Qg;rO=1,Qg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},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:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return Qg}var Jg,aO;function zpe(){if(aO)return Jg;aO=1;var e=hn();Jg=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.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:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===u&&(c=!1),c?!1:(p===l&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return Jg}var em,iO;function OD(){if(iO)return em;iO=1,em=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 em}var tm,oO;function Gpe(){if(oO)return tm;oO=1;var e=OD();tm=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.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]}),n.languages.rq=n.languages.sparql}return tm}var nm,sO;function qpe(){if(sO)return nm;sO=1,nm=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 nm}var rm,lO;function Hpe(){if(lO)return rm;lO=1,rm=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 rm}var am,uO;function Wpe(){if(uO)return am;uO=1,am=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 am}var im,cO;function Vpe(){if(cO)return im;cO=1,im=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\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/;n.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("("+r.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/,r],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:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return im}var om,dO;function Ype(){if(dO)return om;dO=1,om=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={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:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,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}},n.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 om}var sm,pO;function Kpe(){if(pO)return sm;pO=1,sm=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(n){n.inside.interpolation.inside=t.languages.swift})}return sm}var lm,fO;function Xpe(){if(fO)return lm;fO=1,lm=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,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:r,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 lm}var um,hO;function hS(){if(hO)return um;hO=1,um=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(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=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return um}var cm,gO;function Zpe(){if(gO)return cm;gO=1;var e=hS(),t=Ec();cm=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return cm}var dm,mO;function ID(){if(mO)return dm;mO=1;var e=TD();dm=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.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 dm}var pm,bO;function Qpe(){if(bO)return pm;bO=1;var e=hS(),t=ID();pm=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return pm}var fm,yO;function RD(){if(yO)return fm;yO=1,fm=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.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(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}n.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:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return fm}var hm,vO;function Jpe(){if(vO)return hm;vO=1;var e=RD();hm=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.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:n.languages.yaml,alias:"language-yaml"}}}return hm}var gm,SO;function efe(){if(SO)return gm;SO=1,gm=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 gm}var mm,xO;function tfe(){if(xO)return mm;xO=1,mm=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.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,u={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 c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return mm}var bm,EO;function nfe(){if(EO)return bm;EO=1,bm=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.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 bm}var ym,wO;function rfe(){if(wO)return ym;wO=1,ym=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.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 r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return ym}var vm,_O;function afe(){if(_O)return vm;_O=1;var e=kD(),t=dS();vm=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.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}(r)}return vm}var Sm,TO;function ife(){if(TO)return Sm;TO=1;var e=hn();Sm=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.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:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.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 r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return Sm}var xm,AO;function ofe(){if(AO)return xm;AO=1;var e=hn();xm=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.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:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return xm}var Em,kO;function sfe(){if(kO)return Em;kO=1,Em=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\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/;n.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:r}},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:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Em}var wm,OO;function lfe(){if(OO)return wm;OO=1,wm=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 wm}var _m,IO;function ufe(){if(IO)return _m;IO=1,_m=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 _m}var Tm,RO;function cfe(){if(RO)return Tm;RO=1,Tm=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 Tm}var Am,CO;function dfe(){if(CO)return Am;CO=1,Am=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.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":r}}}},"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/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.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+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return Am}var km,NO;function pfe(){if(NO)return km;NO=1,km=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 km}var Om,DO;function ffe(){if(DO)return Om;DO=1,Om=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={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:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.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:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return Om}var Im,LO;function hfe(){if(LO)return Im;LO=1,Im=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 Im}var Rm,MO;function gfe(){if(MO)return Rm;MO=1,Rm=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 Rm}var Cm,PO;function mfe(){if(PO)return Cm;PO=1,Cm=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 Cm}var Nm,$O;function bfe(){if($O)return Nm;$O=1,Nm=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 Nm}var Dm,jO;function yfe(){if(jO)return Dm;jO=1,Dm=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 Dm}var Lm,FO;function vfe(){if(FO)return Lm;FO=1,Lm=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 Lm}var Mm,BO;function Sfe(){if(BO)return Mm;BO=1,Mm=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\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+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),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+r+/\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+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\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 n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return Mm}var Pm,UO;function xfe(){if(UO)return Pm;UO=1,Pm=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 Pm}var $m,zO;function Efe(){if(zO)return $m;zO=1,$m=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 $m}var jm,GO;function wfe(){if(GO)return jm;GO=1,jm=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 jm}var Fm,qO;function _fe(){if(qO)return Fm;qO=1,Fm=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.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"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return Fm}var Bm,HO;function Tfe(){if(HO)return Bm;HO=1,Bm=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return Bm}var Um,WO;function Afe(){if(WO)return Um;WO=1,Um=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 Um}var zm,VO;function kfe(){if(VO)return zm;VO=1,zm=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.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:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(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"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var c=r(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=r(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return zm}var Gm,YO;function Ofe(){if(YO)return Gm;YO=1,Gm=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 Gm}var qm,KO;function Ife(){if(KO)return qm;KO=1,qm=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(c){return function(){return c}}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,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.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,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(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:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(t)}return qm}var L=$le,Rfe=L;L.register(Yle());L.register(Kle());L.register(Xle());L.register(Zle());L.register(Qle());L.register(Jle());L.register(eue());L.register(tue());L.register(nue());L.register(rue());L.register(aue());L.register(iue());L.register(oue());L.register(sue());L.register(lue());L.register(uue());L.register(cue());L.register(due());L.register(pue());L.register(fue());L.register(hue());L.register(gue());L.register(_D());L.register(TD());L.register(mue());L.register(bue());L.register(yue());L.register(vue());L.register(Sue());L.register(xue());L.register(Eue());L.register(wue());L.register(_ue());L.register(Tue());L.register(Ca());L.register(Aue());L.register(kue());L.register(Oue());L.register(Iue());L.register(Rue());L.register(Cue());L.register(Nue());L.register(Due());L.register(Lue());L.register(lS());L.register(Mue());L.register(Ec());L.register(Pue());L.register($ue());L.register(jue());L.register(Fue());L.register(Bue());L.register(Uue());L.register(zue());L.register(Gue());L.register(que());L.register(Hue());L.register(Wue());L.register(Vue());L.register(Yue());L.register(Kue());L.register(Xue());L.register(Zue());L.register(Que());L.register(Jue());L.register(ece());L.register(tce());L.register(nce());L.register(rce());L.register(ace());L.register(ice());L.register(oce());L.register(sce());L.register(lce());L.register(uce());L.register(cce());L.register(dce());L.register(pce());L.register(fce());L.register(hce());L.register(gce());L.register(mce());L.register(bce());L.register(yce());L.register(vce());L.register(Sce());L.register(xce());L.register(Ece());L.register(wce());L.register(_ce());L.register(Tce());L.register(Ace());L.register(kce());L.register(Oce());L.register(uS());L.register(Ice());L.register(Rce());L.register(Cce());L.register(Nce());L.register(Dce());L.register(Lce());L.register(Mce());L.register(Pce());L.register($ce());L.register(jce());L.register(Fce());L.register(Bce());L.register(Uce());L.register(zce());L.register(Gce());L.register(qce());L.register(Hce());L.register(cS());L.register(Wce());L.register(_c());L.register(Vce());L.register(Yce());L.register(Kce());L.register(Xce());L.register(Zce());L.register(Qce());L.register(Jce());L.register(pS());L.register(ede());L.register(tde());L.register(nde());L.register(kD());L.register(rde());L.register(ade());L.register(ide());L.register(ode());L.register(sde());L.register(lde());L.register(ude());L.register(cde());L.register(dde());L.register(pde());L.register(fde());L.register(hde());L.register(gde());L.register(mde());L.register(bde());L.register(yde());L.register(AD());L.register(vde());L.register(Sde());L.register(xde());L.register(hn());L.register(Ede());L.register(wde());L.register(_de());L.register(Tde());L.register(Ade());L.register(kde());L.register(Ode());L.register(Ide());L.register(Rde());L.register(Cde());L.register(Nde());L.register(Dde());L.register(Lde());L.register(Mde());L.register(Pde());L.register($de());L.register(jde());L.register(Fde());L.register(Bde());L.register(Ude());L.register(zde());L.register(Gde());L.register(qde());L.register(Hde());L.register(Wde());L.register(Vde());L.register(Yde());L.register(Kde());L.register(Xde());L.register(Zde());L.register(Qde());L.register(Jde());L.register(Tc());L.register(epe());L.register(tpe());L.register(npe());L.register(rpe());L.register(ape());L.register(ipe());L.register(ope());L.register(spe());L.register(lpe());L.register(upe());L.register(cpe());L.register(dpe());L.register(ppe());L.register(fpe());L.register(hpe());L.register(gpe());L.register(mpe());L.register(bpe());L.register(ype());L.register(vpe());L.register(Spe());L.register(xpe());L.register(Epe());L.register(wpe());L.register(_pe());L.register(Tpe());L.register(Ape());L.register(kpe());L.register(Ope());L.register(Ipe());L.register(wc());L.register(Rpe());L.register(Cpe());L.register(Npe());L.register(Dpe());L.register(fS());L.register(Lpe());L.register(Mpe());L.register(Ppe());L.register($pe());L.register(jpe());L.register(Fpe());L.register(Bpe());L.register(Upe());L.register(zpe());L.register(Gpe());L.register(qpe());L.register(Hpe());L.register(sS());L.register(Wpe());L.register(Vpe());L.register(Ype());L.register(Kpe());L.register(Xpe());L.register(Zpe());L.register(hS());L.register(Qpe());L.register(Jpe());L.register(efe());L.register(tfe());L.register(nfe());L.register(rfe());L.register(afe());L.register(ife());L.register(OD());L.register(ofe());L.register(dS());L.register(sfe());L.register(lfe());L.register(ufe());L.register(cfe());L.register(dfe());L.register(pfe());L.register(ID());L.register(ffe());L.register(hfe());L.register(gfe());L.register(mfe());L.register(bfe());L.register(yfe());L.register(vfe());L.register(Sfe());L.register(xfe());L.register(Efe());L.register(wfe());L.register(_fe());L.register(Tfe());L.register(Afe());L.register(kfe());L.register(RD());L.register(Ofe());L.register(Ife());const Cfe=St(Rfe);var CD=kae(Cfe,Vle);CD.supportedLanguages=Oae;const Nfe=CD,Dfe={'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"}},Lfe=()=>{var m,b,S,T,_,E,A;const e=Kt(),t=F.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=Pt(x=>x),[a,i]=F.useState(!1),[o,s]=F.useState(((m=e==null?void 0:e.properties)==null?void 0:m.boost)||0);F.useEffect(()=>{var x;s(((x=e==null?void 0:e.properties)==null?void 0:x.boost)||0)},[e]),F.useEffect(()=>{const x=t.current,v=()=>{r(null),i(!1)};return x&&x.addEventListener("ended",v),()=>{x&&x.removeEventListener("ended",v)}},[r,a]),F.useEffect(()=>{i(!1)},[e]);const l=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),i(!0)):(t.current.pause(),r(null),i(!1)))};if(!e)return null;const u=!!((b=e.properties)!=null&&b.image_url),c=!!((S=e.properties)!=null&&S.audio_EN),p=e.properties||{},f=(T=e.properties)==null?void 0:T.source_link,h=(_=e.properties)==null?void 0:_.pubkey;return y.jsxs(zfe,{children:[u?y.jsx(Ffe,{children:y.jsx("img",{alt:"img_a11y",onError:x=>{x.currentTarget.src="generic_placeholder_img.png",x.currentTarget.className="default-img"},src:(E=e.properties)==null?void 0:E.image_url})}):null,y.jsxs($fe,{grow:1,justify:"flex-start",pt:u?0:8,shrink:1,children:[y.jsxs(q,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[y.jsx(Ai,{type:e.node_type||""}),f&&y.jsx(Hfe,{href:`${f}${f.includes("?")?"&":"?"}open=system`,target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(jfe,{children:Object.entries(p).filter(([x])=>x!=="media_url"&&x!=="link"&&x!=="pubkey").map(([x,v])=>y.jsx(Pfe,{hasAudio:c,isPlaying:a,label:Mfe(x),togglePlay:l,value:x==="date"&&v?_i(v*1e3).format("MMMM Do YYYY"):v},x))}),h&&y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:o}),y.jsx(qv,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),c&&((A=e.properties)==null?void 0:A.audio_EN)&&y.jsx(qfe,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},Mfe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),Pfe=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:a})=>{const i=t.length>140,o=Pt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"?null:y.jsxs(y.Fragment,{children:[y.jsxs(Bfe,{className:lr("node-detail",{"node-detail__long":i}),children:[y.jsxs(vt,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(Gfe,{onClick:a,children:r?y.jsx(EI,{}):y.jsx(wI,{})})]}),e!=="Frame"&&e!=="Code"?y.jsx(vt,{className:"node-detail__value",children:ur(String(t),o)}):y.jsx(Nfe,{language:"javascript",style:Dfe,children:String(t)})]}),y.jsx(Ufe,{})]})},$fe=H(q)` overflow: auto; width: 100%; flex-grow: 1; @@ -1955,7 +1955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Zfe=H.audio` height: 0; width: 0; -`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.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 y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-8d639dcb.js").then(e=>e.Y),["assets/YouTube-8d639dcb.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-87105b88.js").then(e=>e.S),["assets/SoundCloud-87105b88.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-0612272f.js").then(e=>e.V),["assets/Vimeo-0612272f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-72db1bb1.js").then(e=>e.F),["assets/Facebook-72db1bb1.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-2865f475.js").then(e=>e.S),["assets/Streamable-2865f475.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-30b5d4b3.js").then(e=>e.W),["assets/Wistia-30b5d4b3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-7cd6ba27.js").then(e=>e.T),["assets/Twitch-7cd6ba27.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-6aad69b1.js").then(e=>e.D),["assets/DailyMotion-6aad69b1.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-df4ac210.js").then(e=>e.M),["assets/Mixcloud-df4ac210.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-6c124b56.js").then(e=>e.V),["assets/Vidyard-6c124b56.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-87b4078c.js").then(e=>e.K),["assets/Kaltura-87b4078c.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-55e9654a.js").then(e=>e.F),["assets/FilePlayer-55e9654a.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge($j);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),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},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(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)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&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,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="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,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-7d6901d8.js").then(e=>e.P),["assets/Preview-7d6901d8.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(jj,{})}):y.jsx(Fj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Uj,{}):y.jsx(Bj,{})})]})]})},fme=H(q)` +`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.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 y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(KN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function ND(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return ND(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(ND(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,DD=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},LD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},LD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>LD(Ac({},"__esModule",{value:!0}),e),MD={};xhe(MD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(MD),whe=gS(F),_he=gS(ehe),The=gS(DD);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function PD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return PD(e,khe)}function Nhe(e){return PD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),$D={};Hhe($D,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>XD,FLV_EXTENSIONS:()=>ZD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>WD,MATCH_URL_FACEBOOK:()=>BD,MATCH_URL_FACEBOOK_WATCH:()=>UD,MATCH_URL_KALTURA:()=>KD,MATCH_URL_MIXCLOUD:()=>VD,MATCH_URL_SOUNDCLOUD:()=>jD,MATCH_URL_STREAMABLE:()=>zD,MATCH_URL_TWITCH_CHANNEL:()=>HD,MATCH_URL_TWITCH_VIDEO:()=>qD,MATCH_URL_VIDYARD:()=>YD,MATCH_URL_VIMEO:()=>FD,MATCH_URL_WISTIA:()=>GD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe($D),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,jD=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,FD=/vimeo\.com\/(?!progressive_redirect).+/,BD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,UD=/^https?:\/\/fb\.watch\/.+$/,zD=/streamable\.com\/([a-z0-9]+)$/,GD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,qD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,HD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,WD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,VD=/mixcloud\.com\/([^/]+\/[^/]+)/,YD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,KD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,XD=/\.(mpd)($|\?)/i,ZD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||XD.test(e)||ZD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>jD.test(e)&&!bS.test(e),vimeo:e=>FD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>BD.test(e)||UD.test(e),streamable:e=>zD.test(e),wistia:e=>GD.test(e),twitch:e=>qD.test(e)||HD.test(e),dailymotion:e=>WD.test(e),mixcloud:e=>VD.test(e),vidyard:e=>YD.test(e),kaltura:e=>KD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),QD={};Jhe(QD,{default:()=>rge});var nge=tge(QD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-c3554acb.js").then(e=>e.Y),["assets/YouTube-c3554acb.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-46971a94.js").then(e=>e.S),["assets/SoundCloud-46971a94.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-89fe52c3.js").then(e=>e.V),["assets/Vimeo-89fe52c3.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-0eaa552b.js").then(e=>e.F),["assets/Facebook-0eaa552b.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-90db1f21.js").then(e=>e.S),["assets/Streamable-90db1f21.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-a7308b3f.js").then(e=>e.W),["assets/Wistia-a7308b3f.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-2b3c9b6a.js").then(e=>e.T),["assets/Twitch-2b3c9b6a.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-58525f0c.js").then(e=>e.D),["assets/DailyMotion-58525f0c.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-861653d1.js").then(e=>e.M),["assets/Mixcloud-861653d1.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-c0c0cf04.js").then(e=>e.V),["assets/Vidyard-c0c0cf04.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-224cb42f.js").then(e=>e.K),["assets/Kaltura-224cb42f.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-fc88a86a.js").then(e=>e.F),["assets/FilePlayer-fc88a86a.js","assets/index-10403053.js","assets/index-b4d03b7b.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},eL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},eL(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>eL(Oc({},"__esModule",{value:!0}),e),tL={};yge(tL,{defaultProps:()=>wge,propTypes:()=>Ege});var nL=Sge(tL),xge=vge(jj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),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},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},rL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},aL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},rL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>rL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),iL={};Rge(iL,{default:()=>Ic});var Nge=Cge(iL),tI=aL(F),Dge=aL(JD),oL=nL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(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)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&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,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="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,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",oL.propTypes);_t(Ic,"defaultProps",oL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},sL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},sL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>sL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),lL={};zge(lL,{createReactPlayer:()=>Qge});var qge=Gge(lL),Wa=Ns(F),Hge=Ns(DD),Vm=Ns(lge),nI=Ns(JD),co=nL,uL=kc,Wge=Ns(Nge);const Vge=(0,uL.lazy)(()=>bn(()=>import("./Preview-c02fc834.js").then(e=>e.P),["assets/Preview-c02fc834.js","assets/index-10403053.js","assets/index-b4d03b7b.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,uL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},cL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},cL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>cL(Rc({},"__esModule",{value:!0}),e),dL={};ame(dL,{default:()=>cme});var sme=ome(dL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const E=Array.isArray(_)?_[0]:_;c(E),o(T,E),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Fj,{})}):y.jsx(Bj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(zj,{}):y.jsx(Uj,{})})]})]})},fme=H(q)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -1972,7 +1972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } `,hme=H.span``,gme=H.span` color: gray; -`,mme=H(TI)` +`,mme=H(AI)` && { font-size: 36px; padding: 2px; @@ -2070,7 +2070,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .duration { color: ${j.GRAY6}; } -`,xme=({hidden:e})=>{var we,ae;const t=F.useRef(null),n=F.useRef(null),[r,a]=F.useState(!1),[i,o]=F.useState(!1),[s,l]=F.useState(!1),[u,c]=F.useState("ready"),[p,f]=F.useState(!1),[h,m]=F.useState(""),[b,S]=F.useState(!1),T=Kt();F.useEffect(()=>{const de=(T==null?void 0:T.properties)||{},ce=Object.entries(de).find(([me])=>me==="timestamp"),ee=ce?ce[1]:"",_e=ee==null?void 0:ee.split("-")[0];m(_e)},[T]);const{isPlaying:_,playingTime:x,duration:A,setIsPlaying:E,setPlayingTime:v,setDuration:O,playingNode:R,volume:C,setVolume:$,setHasError:N,resetPlayer:P,isSeeking:z,setIsSeeking:V}=Cu(de=>de),G=(R==null?void 0:R.media_url)||(R==null?void 0:R.link)||((we=R==null?void 0:R.properties)==null?void 0:we.link)||((ae=R==null?void 0:R.properties)==null?void 0:ae.media_url),K=(G==null?void 0:G.includes("youtube"))||(G==null?void 0:G.includes("youtu.be"));F.useEffect(()=>()=>P(),[P]),F.useEffect(()=>{R&&!p&&(v(0),O(0),f(!1),S(!1))},[R,v,O,f,p]),F.useEffect(()=>{z&&t.current&&(t.current.seekTo(x,"seconds"),V(!1))},[x,z,V]),F.useEffect(()=>{if(p&&h&&t.current&&!b){const de=wa(h);t.current.seekTo(de,"seconds"),v(de),S(!0)}},[p,h,v,b]);const X=()=>{E(!_)},W=()=>{E(!0)},Z=()=>{E(!1)},D=(de,ce)=>{const ee=Array.isArray(ce)?ce[0]:ce;v(ee),t.current&&!z&&t.current.seekTo(ee,"seconds")},ie=(de,ce)=>{const ee=Array.isArray(ce)?ce[0]:ce;$(ee)},ne=()=>{N(!0),c("error")},M=de=>{if(!z){const ce=de.playedSeconds;v(ce)}},ye=()=>{if(t.current){c("ready");const de=t.current.getDuration();if(O(de),h&&!b){const ce=wa(h);t.current.seekTo(ce,"seconds"),v(ce),S(!0)}}},re=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Se)}))},Se=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Se)};F.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Se)}),F.useEffect(()=>{const de=ce=>{if(i){const ee=window.screen.height,_e=ce.clientY,me=ee-_e;l(me<=50)}};return document.addEventListener("mousemove",de),()=>{document.removeEventListener("mousemove",de)}},[i,s]),F.useEffect(()=>{const de=ce=>{i&&ce.key==="Escape"?(ce.preventDefault(),ce.stopPropagation()):r&&ce.key===" "&&(ce.preventDefault(),X())};return document.addEventListener("fullscreenchange",Se),document.addEventListener("keydown",de),()=>{document.removeEventListener("fullscreenchange",Se),document.removeEventListener("keydown",de)}});const je=()=>{X()};return G?y.jsxs(Eme,{ref:n,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[y.jsx(wme,{isFullScreen:i,children:y.jsx(Jn,{size:120,src:(R==null?void 0:R.image_url)||"",type:"clip"})}),y.jsx(Ame,{isFullScreen:i,onClick:je,children:y.jsx(dme,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>c("buffering"),onBufferEnd:()=>c("ready"),onError:ne,onPause:Z,onPlay:W,onProgress:M,onReady:ye,playing:_,url:G||"",volume:C,width:"100%"})}),u==="error"?y.jsx(Tme,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(pme,{duration:A,handleProgressChange:D,handleVolumeChange:ie,isFullScreen:i,isPlaying:_,onFullScreenClick:re,playingTime:x,setIsPlaying:X,showToolbar:s&&i}):null,u==="buffering"&&!K?y.jsx(_me,{isFullScreen:i,children:y.jsx(Nu,{color:j.lightGray})}):null]}):null},Eme=H(q)` +`,xme=({hidden:e})=>{var we,ae;const t=F.useRef(null),n=F.useRef(null),[r,a]=F.useState(!1),[i,o]=F.useState(!1),[s,l]=F.useState(!1),[u,c]=F.useState("ready"),[p,f]=F.useState(!1),[h,m]=F.useState(""),[b,S]=F.useState(!1),T=Kt();F.useEffect(()=>{const de=(T==null?void 0:T.properties)||{},ce=Object.entries(de).find(([me])=>me==="timestamp"),ee=ce?ce[1]:"",_e=ee==null?void 0:ee.split("-")[0];m(_e)},[T]);const{isPlaying:_,playingTime:E,duration:A,setIsPlaying:x,setPlayingTime:v,setDuration:O,playingNode:R,volume:C,setVolume:$,setHasError:N,resetPlayer:P,isSeeking:z,setIsSeeking:V}=Cu(de=>de),G=(R==null?void 0:R.media_url)||(R==null?void 0:R.link)||((we=R==null?void 0:R.properties)==null?void 0:we.link)||((ae=R==null?void 0:R.properties)==null?void 0:ae.media_url),K=(G==null?void 0:G.includes("youtube"))||(G==null?void 0:G.includes("youtu.be"));F.useEffect(()=>()=>P(),[P]),F.useEffect(()=>{R&&!p&&(v(0),O(0),f(!1),S(!1))},[R,v,O,f,p]),F.useEffect(()=>{z&&t.current&&(t.current.seekTo(E,"seconds"),V(!1))},[E,z,V]),F.useEffect(()=>{if(p&&h&&t.current&&!b){const de=wa(h);t.current.seekTo(de,"seconds"),v(de),S(!0)}},[p,h,v,b]);const X=()=>{x(!_)},W=()=>{x(!0)},Z=()=>{x(!1)},D=(de,ce)=>{const ee=Array.isArray(ce)?ce[0]:ce;v(ee),t.current&&!z&&t.current.seekTo(ee,"seconds")},ie=(de,ce)=>{const ee=Array.isArray(ce)?ce[0]:ce;$(ee)},ne=()=>{N(!0),c("error")},M=de=>{if(!z){const ce=de.playedSeconds;v(ce)}},ye=()=>{if(t.current){c("ready");const de=t.current.getDuration();if(O(de),h&&!b){const ce=wa(h);t.current.seekTo(ce,"seconds"),v(ce),S(!0)}}},re=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Se)}))},Se=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Se)};F.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Se)}),F.useEffect(()=>{const de=ce=>{if(i){const ee=window.screen.height,_e=ce.clientY,me=ee-_e;l(me<=50)}};return document.addEventListener("mousemove",de),()=>{document.removeEventListener("mousemove",de)}},[i,s]),F.useEffect(()=>{const de=ce=>{i&&ce.key==="Escape"?(ce.preventDefault(),ce.stopPropagation()):r&&ce.key===" "&&(ce.preventDefault(),X())};return document.addEventListener("fullscreenchange",Se),document.addEventListener("keydown",de),()=>{document.removeEventListener("fullscreenchange",Se),document.removeEventListener("keydown",de)}});const je=()=>{X()};return G?y.jsxs(Eme,{ref:n,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[y.jsx(wme,{isFullScreen:i,children:y.jsx(Jn,{size:120,src:(R==null?void 0:R.image_url)||"",type:"clip"})}),y.jsx(Ame,{isFullScreen:i,onClick:je,children:y.jsx(dme,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>c("buffering"),onBufferEnd:()=>c("ready"),onError:ne,onPause:Z,onPlay:W,onProgress:M,onReady:ye,playing:_,url:G||"",volume:C,width:"100%"})}),u==="error"?y.jsx(Tme,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(pme,{duration:A,handleProgressChange:D,handleVolumeChange:ie,isFullScreen:i,isPlaying:_,onFullScreenClick:re,playingTime:E,setIsPlaying:X,showToolbar:s&&i}):null,u==="buffering"&&!K?y.jsx(_me,{isFullScreen:i,children:y.jsx(Nu,{color:j.lightGray})}):null]}):null},Eme=H(q)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -2101,7 +2101,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; -`,kme=F.memo(xme),Ome=({open:e})=>{const{setSelectedNode:t}=zj(i=>i),n=Kt(),{setSidebarOpen:r}=Pt(i=>i),{playingNode:a}=Cu(i=>i);return y.jsx(ni,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(Ime,{children:[y.jsx(kme,{hidden:(n==null?void 0:n.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),y.jsx(Cme,{children:y.jsx(Jfe,{})}),y.jsx(Rme,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(Gj,{})}),y.jsx(Nme,{onClick:()=>{r(!1)},children:y.jsx(AI,{})})]})})},Ime=H(q)(({theme:e})=>({position:"relative",background:j.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Rme=H(q)` +`,kme=F.memo(xme),Ome=({open:e})=>{const{setSelectedNode:t}=xI(i=>i),n=Kt(),{setSidebarOpen:r}=Pt(i=>i),{playingNode:a}=Cu(i=>i);return y.jsx(ni,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(Ime,{children:[y.jsx(kme,{hidden:(n==null?void 0:n.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),y.jsx(Cme,{children:y.jsx(Jfe,{})}),y.jsx(Rme,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(Gj,{})}),y.jsx(Nme,{onClick:()=>{r(!1)},children:y.jsx(kI,{})})]})})},Ime=H(q)(({theme:e})=>({position:"relative",background:j.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Rme=H(q)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -2119,7 +2119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(qj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),dL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=mj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(AI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},pL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:1,[e.breakpoints.up("sm")]:{width:dL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` +`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(qj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),pL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=bj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(kI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},fL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:1,[e.breakpoints.up("sm")]:{width:pL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.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:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` flex: 0 0 64px; background: ${j.BG2}; -`;pL.displayName="Sidebar";const Qme=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:dL,SideBar:pL},Symbol.toStringTag,{value:"Module"}));export{Qme as i,Yhe as p,kc as u}; +`;fL.displayName="Sidebar";const Qme=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:pL,SideBar:fL},Symbol.toStringTag,{value:"Module"}));export{Qme as i,Yhe as p,kc as u}; diff --git a/build/assets/index-4d73db1d.js b/build/assets/index-6a674a65.js similarity index 93% rename from build/assets/index-4d73db1d.js rename to build/assets/index-6a674a65.js index a22b727e7..d279b8789 100644 --- a/build/assets/index-4d73db1d.js +++ b/build/assets/index-6a674a65.js @@ -1,4 +1,4 @@ -import{ac as V,bV as C,bW as m,bX as F,w,H as k,F as d,al as M,r as x,E as z,j as n,aV as $,aW as R,z as S,M as E,a1 as _,a3 as W,aT as A,at as G}from"./index-bde6e5ef.js";import{u as I}from"./index-5c574277.js";import{A as K}from"./index-bf769610.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const U="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=H(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function H(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=M(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await O(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const B=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=v(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=w(k)` +import{ac as V,bV as C,bW as m,bX as F,w,H as k,F as d,al as M,r as x,E as z,j as n,aV as $,aW as R,z as S,M as E,a1 as _,a3 as W,aT as A,at as G}from"./index-10403053.js";import{u as I}from"./index-067fb061.js";import{A as K}from"./index-7a81ddcc.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";const U="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=H(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function H(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=M(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await O(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const B=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=v(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=w(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-bf769610.js b/build/assets/index-7a81ddcc.js similarity index 99% rename from build/assets/index-bf769610.js rename to build/assets/index-7a81ddcc.js index 8730f5c35..7be2cb52a 100644 --- a/build/assets/index-bf769610.js +++ b/build/assets/index-7a81ddcc.js @@ -1,4 +1,4 @@ -import{r as u,j as f,bY as kt,bZ as Rt,p as xo,n as Ot,e as a,c as ye,d as $e,s as L,k as w,u as Pe,a as ae,h as ne,i as Ie,f as Re,l as lo,B as Uo,b_ as wt,b$ as Lt,m as st,c0 as it,bu as ct,bv as dt,ag as Xe,c1 as To,q as Mt,aj as Ft,w as Tt,x as je,F as At}from"./index-bde6e5ef.js";import{Q as Ho,ap as ut,aG as pt,aY as Nt,y as Fo,v as zt,aZ as Dt,U as Vo,T as Et}from"./index-5c574277.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-06c1211e.js";import{c as zo}from"./createSvgIcon-016a2106.js";import{T as _t}from"./TextareaAutosize-f9a84af0.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 Lo(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 Qt(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:Q,onClose:G,onHighlightChange:se,onInputChange:J,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!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&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(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;Q&&Q(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=Lo(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(""),J&&J(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),J&&J(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)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&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:wo,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 Jt(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${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Jt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(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${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("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${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(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=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(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",Q=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(Q),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let J=null;R&&(J=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:Q},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Q,children:$}),J]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:wt,themeId:Lt}))}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${w(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${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,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=L("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=L("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:Q,placeholder:G,readOnly:se,renderSuffix:J,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{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=>{ft(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(Bt.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:Q,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,J?J(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Je=$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"])),we=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 wn=["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"],Ln=["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${w(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=L("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${w(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}},[`& .${Je.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Je.root}.${Oe.sizeSmall}`]:{[`& .${Je.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"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.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=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{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=L(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=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("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=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("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:Q=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:J,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=pt,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,wn),{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}=Qt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Q||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=J||(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)),wo=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 wo(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&&!Q&&!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,Le,{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,Qo,Jo,et;const Qe=44,Gn=ct(Zo||(Zo=So` +import{r as u,j as f,bY as kt,bZ as Rt,p as xo,n as Ot,e as a,c as ye,d as $e,s as L,k as w,u as Pe,a as ae,h as ne,i as Ie,f as Re,l as lo,B as Uo,b_ as wt,b$ as Lt,m as st,c0 as it,bu as ct,bv as dt,ag as Xe,c1 as To,q as Mt,aj as Ft,w as Tt,x as je,F as At}from"./index-10403053.js";import{Q as Ho,ap as ut,aG as pt,aY as Nt,y as Fo,v as zt,aZ as Dt,U as Vo,T as Et}from"./index-067fb061.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-522c22e1.js";import{c as zo}from"./createSvgIcon-6e5d30bd.js";import{T as _t}from"./TextareaAutosize-d45e3579.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 Lo(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 Qt(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:Q,onClose:G,onHighlightChange:se,onInputChange:J,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!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&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(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;Q&&Q(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=Lo(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(""),J&&J(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),J&&J(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)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&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:wo,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 Jt(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${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Jt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(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${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("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${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(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=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(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",Q=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(Q),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let J=null;R&&(J=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:Q},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Q,children:$}),J]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:wt,themeId:Lt}))}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${w(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${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,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=L("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=L("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:Q,placeholder:G,readOnly:se,renderSuffix:J,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{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=>{ft(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(Bt.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:Q,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,J?J(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Je=$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"])),we=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 wn=["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"],Ln=["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${w(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=L("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${w(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}},[`& .${Je.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Je.root}.${Oe.sizeSmall}`]:{[`& .${Je.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"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.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=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{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=L(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=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("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=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("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:Q=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:J,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=pt,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,wn),{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}=Qt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Q||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=J||(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)),wo=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 wo(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&&!Q&&!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,Le,{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,Qo,Jo,et;const Qe=44,Gn=ct(Zo||(Zo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-c99ee90f.js b/build/assets/index-85549638.js similarity index 98% rename from build/assets/index-c99ee90f.js rename to build/assets/index-85549638.js index eebedc69a..6aafa3bfa 100644 --- a/build/assets/index-c99ee90f.js +++ b/build/assets/index-85549638.js @@ -1,4 +1,4 @@ -import{aY as j,aZ as E,a_ as b,a$ as R,b0 as A,b1 as U,b2 as D,b3 as O,w as x,x as u,E as Z,r as f,j as e,F as r,z as C,aX as J,H as z,b4 as K,aV as X,aW as Q,M as ee,v as te,a1 as se,aT as ne,aU as m,at as oe,a3 as re,b5 as ae,ad as ie,b6 as ce,b7 as le,ac as de,a4 as ue,b8 as xe}from"./index-bde6e5ef.js";import{aD as pe,ab as he}from"./index-5c574277.js";import{C as fe}from"./ClipLoader-2c26140d.js";const B=/\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|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?A:ve.test(t)?E:B.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?B:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,p]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);p(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(Ae,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[pe(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(he,{})]}),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]})},Ae=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aY as j,aZ as E,a_ as b,a$ as R,b0 as A,b1 as U,b2 as D,b3 as O,w as x,x as u,E as Z,r as f,j as e,F as r,z as C,aX as J,H as z,b4 as K,aV as X,aW as Q,M as ee,v as te,a1 as se,aT as ne,aU as m,at as oe,a3 as re,b5 as ae,ad as ie,b6 as ce,b7 as le,ac as de,a4 as ue,b8 as xe}from"./index-10403053.js";import{aD as pe,ab as he}from"./index-067fb061.js";import{C as fe}from"./ClipLoader-1133ece3.js";const B=/\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|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?A:ve.test(t)?E:B.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?B:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,p]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);p(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(Ae,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[pe(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(he,{})]}),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]})},Ae=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; diff --git a/build/assets/index-738555e7.js b/build/assets/index-9c99377f.js similarity index 71% rename from build/assets/index-738555e7.js rename to build/assets/index-9c99377f.js index 36cbfe564..4459e2bc5 100644 --- a/build/assets/index-738555e7.js +++ b/build/assets/index-9c99377f.js @@ -1,4 +1,4 @@ -import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h as To,bx as En,by as gr,i as $o,k as gt,f as Zr,ah as Ci,ai as Si,w as O,x as j,a1 as br,bc as _i,bb as xr,H as Se,F as $,aV as hn,aW as gn,b9 as ji,z as Cn,bz as Oi,bA as Hn,a3 as Ao,bB as Pi,C as mr,bC as Ti,b as c,D as vr,ak as Qr,bD as $i,al as Ai,bE as Jr,bF as Mo,ba as ko,M as Ro,bG as Mi,aU as ht,ac as ar,G as yr,a2 as ki,ar as ea,at as Ri}from"./index-bde6e5ef.js";import{A as Dt}from"./index-bf769610.js";import{C as Ie}from"./ClipLoader-2c26140d.js";import{P as E,I as or,ap as Bi,D as Fi,s as Bo,aT as Ni,m as ta,l as na,k as ra,j as aa,i as Ii,aU as Di,aV as Hi}from"./index-5c574277.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-3259c6de.js";import{T as Xi,a as Ki}from"./Tabs-07181cd3.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-06c1211e.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-04235dc5.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";import"./Typography-0d19ae0d.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.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=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({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} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({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 vs({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 ys({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:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({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% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(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 Cs=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=Es(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})=>te({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}),vs,ys,ws,ms);function Ss(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 _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(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,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(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,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({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)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(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})=>te({"&: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}})),ks=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}`})),Rs=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%"})),Bs=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,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Fs}),{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(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ns=O(Dt)` +import{r as y,c as _o,d as jo,s as Wt,e as oe,u as Oo,q as Ei,a as Po,j as p,h as To,bx as En,by as gr,i as $o,k as gt,f as Zr,ah as Ci,ai as Si,w as O,x as j,a1 as br,bc as _i,bb as xr,H as Se,F as $,aV as hn,aW as gn,b9 as ji,z as Cn,bz as Oi,bA as Hn,a3 as Ao,bB as Pi,C as mr,bC as Ti,b as c,D as vr,ak as Qr,bD as $i,al as Ai,bE as Jr,bF as Mo,ba as ko,M as Ro,bG as Mi,aU as ht,ac as ar,G as yr,a2 as ki,ar as ea,at as Ri}from"./index-10403053.js";import{A as Dt}from"./index-7a81ddcc.js";import{C as Ie}from"./ClipLoader-1133ece3.js";import{P as E,I as or,ap as Bi,D as Fi,s as Bo,aT as Ni,m as ta,l as na,k as ra,j as aa,i as Ii,aU as Di,aV as Hi}from"./index-067fb061.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-5327e6bd.js";import{T as Xi,a as Ki}from"./Tabs-fb6d3947.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-522c22e1.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,l as ts,H as ns,i as oa,C as rs,j as as,k as os}from"./index-05851a42.js";import{R as is,u as ss,v as ls,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as cs,n as us,C as ps}from"./three.module-26d3b3c0.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";import"./Typography-efec7f9a.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 bt(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} + ${bt(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:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(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% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(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=Qi(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))})}),_e=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${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(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${gt(n.edge)}`],e[`size${gt(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(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(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,Ns={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Ns}),{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(Is,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Is=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; @@ -24,7 +24,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a && .MuiInput-input.MuiInputBase-input { padding-left: 0; } -`,Is=({selectedType:t,setSelectedFromNode:e,setSelectedToNode:n,edgeLinkData:r,selectedFromNode:a,selectedToNode:o})=>{const s=o==="all",i=a==="all";return p.jsxs($,{mt:8,children:[p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Source"})}),p.jsx(ca,{dataTestId:"from_node",edgeLink:r==null?void 0:r.source,hideSelectAll:s,onSelect:e,placeholder:"Source Name"})]}),p.jsxs($,{mb:10,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Edge Name"})}),p.jsx($,{mb:12,children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter Edge Name",rules:{...gn,pattern:{message:"No leading whitespace allowed",value:ji}},value:t})})]}),p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Destination"})}),p.jsx(ca,{dataTestId:"to_node",edgeLink:r==null?void 0:r.target,hideSelectAll:i,onSelect:n,placeholder:"Select Destination"})]})]})},zn=O(Se)` +`,Ds=({selectedType:t,setSelectedFromNode:e,setSelectedToNode:n,edgeLinkData:r,selectedFromNode:a,selectedToNode:o})=>{const s=o==="all",i=a==="all";return p.jsxs($,{mt:8,children:[p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Source"})}),p.jsx(ca,{dataTestId:"from_node",edgeLink:r==null?void 0:r.source,hideSelectAll:s,onSelect:e,placeholder:"Source Name"})]}),p.jsxs($,{mb:10,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Edge Name"})}),p.jsx($,{mb:12,children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter Edge Name",rules:{...gn,pattern:{message:"No leading whitespace allowed",value:ji}},value:t})})]}),p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Destination"})}),p.jsx(ca,{dataTestId:"to_node",edgeLink:r==null?void 0:r.target,hideSelectAll:i,onSelect:n,placeholder:"Select Destination"})]})]})},zn=O(Se)` font-family: Barlow; font-size: 12px; font-weight: 400; @@ -33,12 +33,12 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a text-align: left; margin-left: 1px; color: ${j.mainBottomIcons}; -`,Ds=({onCancel:t,edgeLinkData:e,setGraphLoading:n})=>{var M,L,H;const r=br({mode:"onChange"}),{setValue:a,getValues:o}=r,[s,i]=y.useState(!1),[l,u]=y.useState(!1),[d,f]=y.useState(""),[h,g]=y.useState(""),[x,m]=y.useState(""),v=r.watch("type");y.useEffect(()=>{a("type",e==null?void 0:e.edgeType)},[e==null?void 0:e.edgeType,a]),y.useEffect(()=>{f(v)},[v]);const w=r.handleSubmit(async V=>{i(!0),n(!0);const S={source:h,target:x,edge_type:V.type},D={ref_id:e==null?void 0:e.refId,edge_type:V.type};try{if(e!=null&&e.refId)await Oi(D);else if(x&&h)if(h==="all"||x==="all"){const I=(await xr()).schemas.filter(K=>!K.is_deleted&&K.type).map(K=>K.type);h==="all"?await Promise.all(I.map(K=>Hn({...S,source:K}))):x==="all"&&await Promise.all(I.map(K=>Hn({...S,target:K})))}else await Hn(S)}catch(X){console.warn("API Error:",X)}finally{i(!1),n(!1),g(""),m(""),t()}}),_=(L=(M=o())==null?void 0:M.type)==null?void 0:L.trim(),B=_&&((H=e==null?void 0:e.edgeType)==null?void 0:H.trim())!==_,P=e!=null&&e.refId?s||!B:s||!x.trim()||!h.trim()||!d.trim(),T=async()=>{u(!0),n(!0);try{e!=null&&e.refId&&await Pi(e==null?void 0:e.refId)}catch(V){console.warn("API Error:",V)}finally{u(!1),n(!1),g(""),m(""),t()}};return p.jsx(Ao,{...r,children:p.jsxs("form",{id:"add-type-form",onSubmit:w,children:[p.jsx(Is,{edgeLinkData:e,selectedFromNode:h,selectedToNode:x,selectedType:d,setSelectedFromNode:g,setSelectedToNode:m}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[(e==null?void 0:e.refId)&&p.jsx($,{direction:"column",children:p.jsxs(zs,{color:"secondary",disabled:l,onClick:T,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",l&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})}),p.jsxs(Hs,{color:"secondary",disabled:P,onClick:w,size:"large",variant:"contained",children:["Confirm",s&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})})},Hs=O(Cn)` +`,Hs=({onCancel:t,edgeLinkData:e,setGraphLoading:n})=>{var M,L,H;const r=br({mode:"onChange"}),{setValue:a,getValues:o}=r,[s,i]=y.useState(!1),[l,u]=y.useState(!1),[d,f]=y.useState(""),[h,g]=y.useState(""),[x,m]=y.useState(""),v=r.watch("type");y.useEffect(()=>{a("type",e==null?void 0:e.edgeType)},[e==null?void 0:e.edgeType,a]),y.useEffect(()=>{f(v)},[v]);const w=r.handleSubmit(async V=>{i(!0),n(!0);const S={source:h,target:x,edge_type:V.type},D={ref_id:e==null?void 0:e.refId,edge_type:V.type};try{if(e!=null&&e.refId)await Oi(D);else if(x&&h)if(h==="all"||x==="all"){const I=(await xr()).schemas.filter(K=>!K.is_deleted&&K.type).map(K=>K.type);h==="all"?await Promise.all(I.map(K=>Hn({...S,source:K}))):x==="all"&&await Promise.all(I.map(K=>Hn({...S,target:K})))}else await Hn(S)}catch(X){console.warn("API Error:",X)}finally{i(!1),n(!1),g(""),m(""),t()}}),_=(L=(M=o())==null?void 0:M.type)==null?void 0:L.trim(),B=_&&((H=e==null?void 0:e.edgeType)==null?void 0:H.trim())!==_,P=e!=null&&e.refId?s||!B:s||!x.trim()||!h.trim()||!d.trim(),T=async()=>{u(!0),n(!0);try{e!=null&&e.refId&&await Pi(e==null?void 0:e.refId)}catch(V){console.warn("API Error:",V)}finally{u(!1),n(!1),g(""),m(""),t()}};return p.jsx(Ao,{...r,children:p.jsxs("form",{id:"add-type-form",onSubmit:w,children:[p.jsx(Ds,{edgeLinkData:e,selectedFromNode:h,selectedToNode:x,selectedType:d,setSelectedFromNode:g,setSelectedToNode:m}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[(e==null?void 0:e.refId)&&p.jsx($,{direction:"column",children:p.jsxs(Ls,{color:"secondary",disabled:l,onClick:T,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",l&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})}),p.jsxs(zs,{color:"secondary",disabled:P,onClick:w,size:"large",variant:"contained",children:["Confirm",s&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})})},zs=O(Cn)` width: 400px !important; margin: 0 0 10px auto !important; `,ua=O.span` margin-top: 2px; -`,zs=O(Cn)` +`,Ls=O(Cn)` && { color: ${j.primaryRed}; background-color: rgba(237, 116, 116, 0.1); @@ -50,7 +50,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a background-color: rgba(237, 116, 116, 0.2); } } -`,Ls=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Ws,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Vs,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(Gs,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(mr,{})})]}),p.jsx(Us,{}),p.jsx(Ds,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},Gs=O($)` +`,Gs=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Us,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Ys,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(Ws,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(mr,{})})]}),p.jsx(Vs,{}),p.jsx(Hs,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},Ws=O($)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -64,14 +64,14 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a color: ${j.white}; } } -`,Ws=O($)` +`,Us=O($)` margin-bottom: 16px; -`,Us=O.div` +`,Vs=O.div` border-bottom: 1px solid ${j.black}; width: calc(100% + 32px); margin: 0 -16px 16px; opacity: 0.3; -`,Vs=O(Se)` +`,Ys=O(Se)` font-family: Barlow; font-size: 22px; font-weight: 600; @@ -80,9 +80,9 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a text-align: left; margin-left: 2px; color: ${j.white}; -`;var ce={},Ut={},Ys=Li;function Xs(t){return typeof t=="function"?t:Ys}var Ks=Xs,qs=Gi,Zs=Ks;function Qs(t,e){return t&&qs(t,Zs(e))}var wr=Qs;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.flattenNames=void 0;var Js=Wi,el=_n(Js),tl=wr,nl=_n(tl),rl=Ui,al=_n(rl),ol=Vi,il=_n(ol);function _n(t){return t&&t.__esModule?t:{default:t}}var sl=Ut.flattenNames=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,il.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,al.default)(r)?(0,nl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,el.default)(r)&&n.push(r)}),n};Ut.default=sl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var ll=wr,cl=Ho(ll),ul=Ti,pl=Ho(ul),dl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,pl.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,cl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=dl({},r[i],o[i])}),a}),r};Vt.default=fl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var hl=wr,pa=bl(hl),gl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Cl(a,r);function a(){var o,s,i,l;El(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Tl(a,r);function a(){var o,s,i,l;Pl(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=Al;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Ml=Ut,kl=xt(Ml),Rl=Vt,Bl=xt(Rl),Fl=Yt,Nl=xt(Fl),Il=Xt,zo=xt(Il),Dl=Kt,Hl=xt(Dl),zl=Er,Ll=xt(zl);function xt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Hl.default;ce.loop=Ll.default;var Gl=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={},Ul=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},Vl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ul(e,n,r,a);return Wn[o]=s,s},ha=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,sl.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,ol.default)(r)?(0,rl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,tl.default)(r)&&n.push(r)}),n};Ut.default=ll;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var cl=wr,ul=Ho(cl),pl=Ti,dl=Ho(pl),fl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,dl.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,ul.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=fl({},r[i],o[i])}),a}),r};Vt.default=hl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var gl=wr,pa=xl(gl),bl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Sl(a,r);function a(){var o,s,i,l;Cl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&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]:!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=Ml;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var kl=Ut,Rl=xt(kl),Bl=Vt,Fl=xt(Bl),Nl=Yt,Il=xt(Nl),Dl=Xt,zo=xt(Dl),Hl=Kt,zl=xt(Hl),Ll=Er,Gl=xt(Ll);function xt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=zl.default;ce.loop=Gl.default;var Wl=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={},Vl=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},Yl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Vl(e,n,r,a);return Wn[o]=s,s},ha=Object.assign||function(t){for(var e=1;e-1},ic=function(e){return Number(String(e).replace(/%/g,""))},sc=1,W=function(t){tc(e,t);function e(n){Jl(this,e);var r=ec(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=ic(a.target.value);if(!isNaN(o)&&oc(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-"+sc++,r}return Zl(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 Ql({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||nc}},{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),lc=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},cc=function(){function t(e,n){for(var r=0;r-1},sc=function(e){return Number(String(e).replace(/%/g,""))},lc=1,W=function(t){nc(e,t);function e(n){ec(this,e);var r=tc(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=sc(a.target.value);if(!isNaN(o)&&ic(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-"+lc++,r}return Ql(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 Jl({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||rc}},{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),cc=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},uc=function(){function t(e,n){for(var r=0;r-1}function mc(t,e){var n=this.__data__,r=jn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function je(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Iu}function yt(t){return t!=null&&Pr(t.length)&&!_r(t)}function Du(t){return ke(t)&&yt(t)}function Hu(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sa=qo&&typeof module=="object"&&module&&!module.nodeType&&module,zu=Sa&&Sa.exports===qo,_a=zu?be.Buffer:void 0,Lu=_a?_a.isBuffer:void 0,Gu=Lu||Hu;const vn=Gu;var Wu="[object Object]",Uu=Function.prototype,Vu=Object.prototype,Zo=Uu.toString,Yu=Vu.hasOwnProperty,Xu=Zo.call(Object);function Ku(t){if(!ke(t)||He(t)!=Wu)return!1;var e=Xo(t);if(e===null)return!0;var n=Yu.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Zo.call(n)==Xu}var qu="[object Arguments]",Zu="[object Array]",Qu="[object Boolean]",Ju="[object Date]",ep="[object Error]",tp="[object Function]",np="[object Map]",rp="[object Number]",ap="[object Object]",op="[object RegExp]",ip="[object Set]",sp="[object String]",lp="[object WeakMap]",cp="[object ArrayBuffer]",up="[object DataView]",pp="[object Float32Array]",dp="[object Float64Array]",fp="[object Int8Array]",hp="[object Int16Array]",gp="[object Int32Array]",bp="[object Uint8Array]",xp="[object Uint8ClampedArray]",mp="[object Uint16Array]",vp="[object Uint32Array]",Y={};Y[pp]=Y[dp]=Y[fp]=Y[hp]=Y[gp]=Y[bp]=Y[xp]=Y[mp]=Y[vp]=!0;Y[qu]=Y[Zu]=Y[cp]=Y[Qu]=Y[up]=Y[Ju]=Y[ep]=Y[tp]=Y[np]=Y[rp]=Y[ap]=Y[op]=Y[ip]=Y[sp]=Y[lp]=!1;function yp(t){return ke(t)&&Pr(t.length)&&!!Y[He(t)]}function wp(t){return function(e){return t(e)}}var Qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ht=Qo&&typeof module=="object"&&module&&!module.nodeType&&module,Ep=Ht&&Ht.exports===Qo,Vn=Ep&&Go.process,Cp=function(){try{var t=Ht&&Ht.require&&Ht.require("util").types;return t||Vn&&Vn.binding&&Vn.binding("util")}catch{}}();const ja=Cp;var Oa=ja&&ja.isTypedArray,Sp=Oa?wp(Oa):yp;const Tr=Sp;function cr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var _p=Object.prototype,jp=_p.hasOwnProperty;function Op(t,e,n){var r=t[e];(!(jp.call(t,e)&&qt(r,n))||n===void 0&&!(e in t))&&jr(t,e,n)}function Pp(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=Up)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Kp=Xp(Wp);const qp=Kp;function Zp(t,e){return qp(zp(t,e,Pn),t+"")}function Qp(t,e,n){if(!ue(n))return!1;var r=typeof e;return(r=="number"?yt(n)&&$r(e,n.length):r=="string"&&e in n)?qt(n[e],t):!1}function Jp(t){return Zp(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,s&&Qp(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r=e||L<0||f&&H>=o}function w(){var M=Yn();if(v(M))return _(M);i=setTimeout(w,m(M))}function _(M){return i=void 0,h&&r?g(M):(r=a=void 0,s)}function B(){i!==void 0&&clearTimeout(i),u=0,r=l=a=i=void 0}function P(){return i===void 0?s:_(Yn())}function T(){var M=Yn(),L=v(M);if(r=arguments,a=this,l=M,L){if(i===void 0)return x(l);if(f)return clearTimeout(i),i=setTimeout(w,e),g(l)}return i===void 0&&(i=setTimeout(w,e)),s}return T.cancel=B,T.flush=P,T}var hd="Expected a function";function gd(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(hd);return ue(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ni(t,e,{leading:r,maxWait:e,trailing:a})}var bd=function(e,n,r){var a=r.getBoundingClientRect(),o=a.width,s=a.height,i=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),d=l-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),d<0?d=0:d>s&&(d=s);var f=u/o,h=1-d/s;return{h:n.h,s:f,v:h,a:n.a,source:"hsv"}},xd=function(){function t(e,n){for(var r=0;r-1}function vc(t,e){var n=this.__data__,r=jn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function je(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Du}function yt(t){return t!=null&&Pr(t.length)&&!_r(t)}function Hu(t){return ke(t)&&yt(t)}function zu(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sa=qo&&typeof module=="object"&&module&&!module.nodeType&&module,Lu=Sa&&Sa.exports===qo,_a=Lu?be.Buffer:void 0,Gu=_a?_a.isBuffer:void 0,Wu=Gu||zu;const vn=Wu;var Uu="[object Object]",Vu=Function.prototype,Yu=Object.prototype,Zo=Vu.toString,Xu=Yu.hasOwnProperty,Ku=Zo.call(Object);function qu(t){if(!ke(t)||He(t)!=Uu)return!1;var e=Xo(t);if(e===null)return!0;var n=Xu.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Zo.call(n)==Ku}var Zu="[object Arguments]",Qu="[object Array]",Ju="[object Boolean]",ep="[object Date]",tp="[object Error]",np="[object Function]",rp="[object Map]",ap="[object Number]",op="[object Object]",ip="[object RegExp]",sp="[object Set]",lp="[object String]",cp="[object WeakMap]",up="[object ArrayBuffer]",pp="[object DataView]",dp="[object Float32Array]",fp="[object Float64Array]",hp="[object Int8Array]",gp="[object Int16Array]",bp="[object Int32Array]",xp="[object Uint8Array]",mp="[object Uint8ClampedArray]",vp="[object Uint16Array]",yp="[object Uint32Array]",Y={};Y[dp]=Y[fp]=Y[hp]=Y[gp]=Y[bp]=Y[xp]=Y[mp]=Y[vp]=Y[yp]=!0;Y[Zu]=Y[Qu]=Y[up]=Y[Ju]=Y[pp]=Y[ep]=Y[tp]=Y[np]=Y[rp]=Y[ap]=Y[op]=Y[ip]=Y[sp]=Y[lp]=Y[cp]=!1;function wp(t){return ke(t)&&Pr(t.length)&&!!Y[He(t)]}function Ep(t){return function(e){return t(e)}}var Qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ht=Qo&&typeof module=="object"&&module&&!module.nodeType&&module,Cp=Ht&&Ht.exports===Qo,Vn=Cp&&Go.process,Sp=function(){try{var t=Ht&&Ht.require&&Ht.require("util").types;return t||Vn&&Vn.binding&&Vn.binding("util")}catch{}}();const ja=Sp;var Oa=ja&&ja.isTypedArray,_p=Oa?Ep(Oa):wp;const Tr=_p;function cr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var jp=Object.prototype,Op=jp.hasOwnProperty;function Pp(t,e,n){var r=t[e];(!(Op.call(t,e)&&qt(r,n))||n===void 0&&!(e in t))&&jr(t,e,n)}function Tp(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=Vp)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var qp=Kp(Up);const Zp=qp;function Qp(t,e){return Zp(Lp(t,e,Pn),t+"")}function Jp(t,e,n){if(!ue(n))return!1;var r=typeof e;return(r=="number"?yt(n)&&$r(e,n.length):r=="string"&&e in n)?qt(n[e],t):!1}function ed(t){return Qp(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,s&&Jp(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r=e||L<0||f&&H>=o}function w(){var M=Yn();if(v(M))return _(M);i=setTimeout(w,m(M))}function _(M){return i=void 0,h&&r?g(M):(r=a=void 0,s)}function B(){i!==void 0&&clearTimeout(i),u=0,r=l=a=i=void 0}function P(){return i===void 0?s:_(Yn())}function T(){var M=Yn(),L=v(M);if(r=arguments,a=this,l=M,L){if(i===void 0)return x(l);if(f)return clearTimeout(i),i=setTimeout(w,e),g(l)}return i===void 0&&(i=setTimeout(w,e)),s}return T.cancel=B,T.flush=P,T}var gd="Expected a function";function bd(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(gd);return ue(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ni(t,e,{leading:r,maxWait:e,trailing:a})}var xd=function(e,n,r){var a=r.getBoundingClientRect(),o=a.width,s=a.height,i=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),d=l-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),d<0?d=0:d>s&&(d=s);var f=u/o,h=1-d/s;return{h:n.h,s:f,v:h,a:n.a,source:"hsv"}},md=function(){function t(e,n){for(var r=0;r=0,o=!n&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return A(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Ld,arguments)},brighten:function(){return this._applyModification(Gd,arguments)},darken:function(){return this._applyModification(Wd,arguments)},desaturate:function(){return this._applyModification(Dd,arguments)},saturate:function(){return this._applyModification(Hd,arguments)},greyscale:function(){return this._applyModification(zd,arguments)},spin:function(){return this._applyModification(Ud,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Xd,arguments)},complement:function(){return this._applyCombination(Vd,arguments)},monochromatic:function(){return this._applyCombination(Kd,arguments)},splitcomplement:function(){return this._applyCombination(Yd,arguments)},triad:function(){return this._applyCombination(Ba,[3])},tetrad:function(){return this._applyCombination(Ba,[4])}};A.fromRatio=function(t,e){if(yn(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Ft(t[r]));t=n}return A(t,e)};function Rd(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof t=="string"&&(t=ef(t)),yn(t)=="object"&&(Ce(t.r)&&Ce(t.g)&&Ce(t.b)?(e=Bd(t.r,t.g,t.b),s=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ce(t.h)&&Ce(t.s)&&Ce(t.v)?(r=Ft(t.s),a=Ft(t.v),e=Nd(t.h,r,a),s=!0,i="hsv"):Ce(t.h)&&Ce(t.s)&&Ce(t.l)&&(r=Ft(t.s),o=Ft(t.l),e=Fd(t.h,r,o),s=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=ai(n),{ok:s,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Bd(t,e,n){return{r:q(t,255)*255,g:q(e,255)*255,b:q(n,255)*255}}function Aa(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case t:o=(e-n)/l+(e1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(e===0)r=a=o=n;else{var i=n<.5?n*(1+e):n+e-n*e,l=2*n-i;r=s(l,i,t+1/3),a=s(l,i,t),o=s(l,i,t-1/3)}return{r:r*255,g:a*255,b:o*255}}function Ma(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case t:o=(e-n)/l+(e>1)+720)%360;--e;)r.h=(r.h+a)%360,o.push(A(r));return o}function Kd(t,e){e=e||6;for(var n=A(t).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/e;e--;)s.push(A({h:r,s:a,v:o})),o=(o+i)%1;return s}A.mix=function(t,e,n){n=n===0?0:n||50;var r=A(t).toRgb(),a=A(e).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return A(s)};A.readability=function(t,e){var n=A(t),r=A(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};A.isReadable=function(t,e,n){var r=A.readability(t,e),a,o;switch(o=!1,a=tf(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};A.mostReadable=function(t,e,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var u=0;ua&&(a=o,r=A(e[u]));return A.isReadable(t,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,A.mostReadable(t,["#fff","#000"],n))};var ur=A.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qd=A.hexNames=Zd(ur);function Zd(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function ai(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function q(t,e){Qd(t)&&(t="100%");var n=Jd(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function An(t){return Math.min(1,Math.max(0,t))}function oe(t){return parseInt(t,16)}function Qd(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Jd(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ge(t){return t.length==1?"0"+t:""+t}function Ft(t){return t<=1&&(t=t*100+"%"),t}function oi(t){return Math.round(parseFloat(t)*255).toString(16)}function Fa(t){return oe(t)/255}var fe=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ce(t){return!!fe.CSS_UNIT.exec(t)}function ef(t){t=t.replace(Md,"").replace(kd,"").toLowerCase();var e=!1;if(ur[t])t=ur[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=fe.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=fe.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fe.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=fe.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fe.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=fe.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fe.hex8.exec(t))?{r:oe(n[1]),g:oe(n[2]),b:oe(n[3]),a:Fa(n[4]),format:e?"name":"hex8"}:(n=fe.hex6.exec(t))?{r:oe(n[1]),g:oe(n[2]),b:oe(n[3]),format:e?"name":"hex"}:(n=fe.hex4.exec(t))?{r:oe(n[1]+""+n[1]),g:oe(n[2]+""+n[2]),b:oe(n[3]+""+n[3]),a:Fa(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=fe.hex3.exec(t))?{r:oe(n[1]+""+n[1]),g:oe(n[2]+""+n[2]),b:oe(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function tf(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}var Na=function(e){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return Ad(n,function(o){if(e[o]&&(r+=1,isNaN(e[o])||(a+=1),o==="s"||o==="l")){var s=/^\d+%$/;s.test(e[o])&&(a+=1)}}),r===a?e:!1},Nt=function(e,n){var r=e.hex?A(e.hex):A(e),a=r.toHsl(),o=r.toHsv(),s=r.toRgb(),i=r.toHex();a.s===0&&(a.h=n||0,o.h=n||0);var l=i==="000000"&&s.a===0;return{hsl:a,hex:l?"transparent":"#"+i,rgb:s,hsv:o,oldHue:e.h||n||a.h,source:e.source}},Re=function(e){if(e==="transparent")return!0;var n=String(e).charAt(0)==="#"?1:0;return e.length!==4+n&&e.length<7+n&&A(e).isValid()},Mr=function(e){if(!e)return"#fff";var n=Nt(e);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},Xn=function(e,n){var r=e.replace("°","");return A(n+" ("+r+")")._ok},Rt=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){uf(a,r);function a(){var o,s,i,l;cf(this,a);for(var u=arguments.length,d=Array(u),f=0;fi))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&Ef?new wn:void 0;for(o.set(t,e),o.set(e,t);++f=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var pn=24,Wh=gi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?pn:r,o=t.height,s=o===void 0?pn:o,i=t.style,l=i===void 0?{}:i,u=Gh(t,["fill","width","height","style"]);return no.default.createElement("svg",to({viewBox:"0 0 "+pn+" "+pn,style:to({fill:n,width:a,height:s},l)},u),no.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Uh=function(){function t(e,n){for(var r=0;r1&&(a.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},o)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),r.props.onChange({h:a.h||r.props.hsl.h,s:Number(eo(a.s)?r.props.hsl.s:a.s),l:Number(eo(a.l)?r.props.hsl.l:a.l),source:"hsl"},o))},r.showHighlight=function(a){a.currentTarget.style.background="#eee"},r.hideHighlight=function(a){a.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?r.state={view:"rgb"}:r.state={view:n.view},r}return Uh(e,[{key:"render",value:function(){var r=this,a=N({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),c.createElement("div",{style:a.alpha},c.createElement(W,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),c.createElement("div",{style:a.alpha},c.createElement(W,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),c.createElement("div",{style:a.wrap,className:"flexbox-fix"},o,c.createElement("div",{style:a.toggle},c.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(i){return r.icon=i}},c.createElement(Wh,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),e}(c.Component);bi.defaultProps={view:"hex"};var ro=function(){var e=N({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return c.createElement("div",{style:e.picker})},Kh=function(){var e=N({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return c.createElement("div",{style:e.picker})},Ir=function(e){var n=e.width,r=e.onChange,a=e.disableAlpha,o=e.rgb,s=e.hsl,i=e.hsv,l=e.hex,u=e.renderers,d=e.styles,f=d===void 0?{}:d,h=e.className,g=h===void 0?"":h,x=e.defaultView,m=N(ne({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:a});return c.createElement("div",{style:m.picker,className:"chrome-picker "+g},c.createElement("div",{style:m.saturation},c.createElement($n,{style:m.Saturation,hsl:s,hsv:i,pointer:Kh,onChange:r})),c.createElement("div",{style:m.body},c.createElement("div",{style:m.controls,className:"flexbox-fix"},c.createElement("div",{style:m.color},c.createElement("div",{style:m.swatch},c.createElement("div",{style:m.active}),c.createElement(mt,{renderers:u}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(vt,{style:m.Hue,hsl:s,pointer:ro,onChange:r})),c.createElement("div",{style:m.alpha},c.createElement(Sr,{style:m.Alpha,rgb:o,hsl:s,pointer:ro,renderers:u,onChange:r})))),c.createElement(bi,{rgb:o,hsl:s,hex:l,view:x,onChange:r,disableAlpha:a})))};Ir.propTypes={width:E.oneOfType([E.string,E.number]),disableAlpha:E.bool,styles:E.object,defaultView:E.oneOf(["hex","rgb","hsl"])};Ir.defaultProps={width:225,disableAlpha:!1,styles:{}};re(Ir);var qh=function(e){var n=e.color,r=e.onClick,a=r===void 0?function(){}:r,o=e.onSwatchHover,s=e.active,i=N({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Mr(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return c.createElement(Ge,{style:i.color,color:n,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},c.createElement("div",{style:i.dot}))},Zh=function(e){var n=e.hex,r=e.rgb,a=e.onChange,o=N({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(l,u){l.r||l.g||l.b?a({r:l.r||r.r,g:l.g||r.g,b:l.b||r.b,source:"rgb"},u):a({hex:l.hex,source:"hex"},u)};return c.createElement("div",{style:o.fields,className:"flexbox-fix"},c.createElement("div",{style:o.active}),c.createElement(W,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:n,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:r.r,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:r.g,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:r.b,onChange:s}))},Dr=function(e){var n=e.onChange,r=e.onSwatchHover,a=e.colors,o=e.hex,s=e.rgb,i=e.styles,l=i===void 0?{}:i,u=e.className,d=u===void 0?"":u,f=N(ne({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(x,m){x.hex?Re(x.hex)&&n({hex:x.hex,source:"hex"},m):n(x,m)};return c.createElement(Zt,{style:f.Compact,styles:l},c.createElement("div",{style:f.compact,className:"compact-picker "+d},c.createElement("div",null,We(a,function(g){return c.createElement(qh,{key:g,color:g,active:g.toLowerCase()===o,onClick:h,onSwatchHover:r})}),c.createElement("div",{style:f.clear})),c.createElement(Zh,{hex:o,rgb:s,onChange:h})))};Dr.propTypes={colors:E.arrayOf(E.string),styles:E.object};Dr.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};re(Dr);var Qh=function(e){var n=e.hover,r=e.color,a=e.onClick,o=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=N({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:n});return c.createElement("div",{style:i.swatch},c.createElement(Ge,{color:r,onClick:a,onHover:o,focusStyle:s}))};const Jh=Cr(Qh);var Hr=function(e){var n=e.width,r=e.colors,a=e.onChange,o=e.onSwatchHover,s=e.triangle,i=e.styles,l=i===void 0?{}:i,u=e.className,d=u===void 0?"":u,f=N(ne({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right","bottom-left-triangle":s==="bottom-left","bottom-right-triangle":s==="bottom-right"}),h=function(x,m){return a({hex:x,source:"hex"},m)};return c.createElement("div",{style:f.card,className:"github-picker "+d},c.createElement("div",{style:f.triangleShadow}),c.createElement("div",{style:f.triangle}),We(r,function(g){return c.createElement(Jh,{color:g,key:g,onClick:h,onSwatchHover:o})}))};Hr.propTypes={width:E.oneOfType([E.string,E.number]),colors:E.arrayOf(E.string),triangle:E.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:E.object};Hr.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};re(Hr);var e0=function(e){var n=e.direction,r=N({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return c.createElement("div",{style:r.picker})},t0=Object.assign||function(t){for(var e=1;e.5});return c.createElement("div",{style:r.picker})},i0=function(){var e=N({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return c.createElement("div",{style:e.pointer},c.createElement("div",{style:e.left},c.createElement("div",{style:e.leftInside})),c.createElement("div",{style:e.right},c.createElement("div",{style:e.rightInside})))},ao=function(e){var n=e.onClick,r=e.label,a=e.children,o=e.active,s=N({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return c.createElement("div",{style:s.button,onClick:n},r||a)},s0=function(e){var n=e.rgb,r=e.currentColor,a=N({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return c.createElement("div",null,c.createElement("div",{style:a.label},"new"),c.createElement("div",{style:a.swatches},c.createElement("div",{style:a.new}),c.createElement("div",{style:a.current})),c.createElement("div",{style:a.label},"current"))},l0=function(){function t(e,n){for(var r=0;r100&&(d.a=100),d.a/=100,n({h:a.h,s:a.s,l:a.l,a:d.a,source:"rgb"},f))};return c.createElement("div",{style:i.fields,className:"flexbox-fix"},c.createElement("div",{style:i.double},c.createElement(W,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:l})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"r",value:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"g",value:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"b",value:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.alpha},c.createElement(W,{style:{input:i.input,label:i.label},label:"a",value:Math.round(r.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},f0=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var dn=24,y0=mi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?dn:r,o=t.height,s=o===void 0?dn:o,i=t.style,l=i===void 0?{}:i,u=v0(t,["fill","width","height","style"]);return io.default.createElement("svg",oo({viewBox:"0 0 "+dn+" "+dn,style:oo({fill:n,width:a,height:s},l)},u),io.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},w0=function(e){var n=e.color,r=e.onClick,a=r===void 0?function(){}:r,o=e.onSwatchHover,s=e.first,i=e.last,l=e.active,u=N({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Mr(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:i,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return c.createElement(Ge,{color:n,style:u.color,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},c.createElement("div",{style:u.check},c.createElement(y0,null)))},E0=function(e){var n=e.onClick,r=e.onSwatchHover,a=e.group,o=e.active,s=N({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return c.createElement("div",{style:s.group},We(a,function(i,l){return c.createElement(w0,{key:i,color:i,active:i.toLowerCase()===o,first:l===0,last:l===a.length-1,onClick:n,onSwatchHover:r})}))},Ur=function(e){var n=e.width,r=e.height,a=e.onChange,o=e.onSwatchHover,s=e.colors,i=e.hex,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?"":d,h=N(ne({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),g=function(m,v){return a({hex:m,source:"hex"},v)};return c.createElement("div",{style:h.picker,className:"swatches-picker "+f},c.createElement(Zt,null,c.createElement("div",{style:h.overflow},c.createElement("div",{style:h.body},We(s,function(x){return c.createElement(E0,{key:x.toString(),group:x,active:i,onClick:g,onSwatchHover:o})}),c.createElement("div",{style:h.clear})))))};Ur.propTypes={width:E.oneOfType([E.string,E.number]),height:E.oneOfType([E.string,E.number]),colors:E.arrayOf(E.arrayOf(E.string)),styles:E.object};Ur.defaultProps={width:320,height:240,colors:[[Ze[900],Ze[700],Ze[500],Ze[300],Ze[100]],[Qe[900],Qe[700],Qe[500],Qe[300],Qe[100]],[Je[900],Je[700],Je[500],Je[300],Je[100]],[et[900],et[700],et[500],et[300],et[100]],[tt[900],tt[700],tt[500],tt[300],tt[100]],[nt[900],nt[700],nt[500],nt[300],nt[100]],[rt[900],rt[700],rt[500],rt[300],rt[100]],[at[900],at[700],at[500],at[300],at[100]],[ot[900],ot[700],ot[500],ot[300],ot[100]],["#194D33",It[700],It[500],It[300],It[100]],[it[900],it[700],it[500],it[300],it[100]],[st[900],st[700],st[500],st[300],st[100]],[lt[900],lt[700],lt[500],lt[300],lt[100]],[ct[900],ct[700],ct[500],ct[300],ct[100]],[ut[900],ut[700],ut[500],ut[300],ut[100]],[pt[900],pt[700],pt[500],pt[300],pt[100]],[dt[900],dt[700],dt[500],dt[300],dt[100]],[ft[900],ft[700],ft[500],ft[300],ft[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};re(Ur);var Vr=function(e){var n=e.onChange,r=e.onSwatchHover,a=e.hex,o=e.colors,s=e.width,i=e.triangle,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?"":d,h=N(ne({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right"}),g=function(m,v){Re(m)&&n({hex:m,source:"hex"},v)};return c.createElement("div",{style:h.card,className:"twitter-picker "+f},c.createElement("div",{style:h.triangleShadow}),c.createElement("div",{style:h.triangle}),c.createElement("div",{style:h.body},We(o,function(x,m){return c.createElement(Ge,{key:m,color:x,hex:x,style:h.swatch,onClick:g,onHover:r,focusStyle:{boxShadow:"0 0 4px "+x}})}),c.createElement("div",{style:h.hash},"#"),c.createElement(W,{label:null,style:{input:h.input},value:a.replace("#",""),onChange:g}),c.createElement("div",{style:h.clear})))};Vr.propTypes={width:E.oneOfType([E.string,E.number]),triangle:E.oneOf(["hide","top-left","top-right"]),colors:E.arrayOf(E.string),styles:E.object};Vr.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};re(Vr);var Yr=function(e){var n=N({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return c.createElement("div",{style:n.picker})};Yr.propTypes={hsl:E.shape({h:E.number,s:E.number,l:E.number,a:E.number})};Yr.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Xr=function(e){var n=N({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return c.createElement("div",{style:n.picker})};Xr.propTypes={hsl:E.shape({h:E.number,s:E.number,l:E.number,a:E.number})};Xr.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var C0=function(e){var n=e.onChange,r=e.rgb,a=e.hsl,o=e.hex,s=e.hsv,i=function(g,x){if(g.hex)Re(g.hex)&&n({hex:g.hex,source:"hex"},x);else if(g.rgb){var m=g.rgb.split(",");Xn(g.rgb,"rgb")&&n({r:m[0],g:m[1],b:m[2],a:1,source:"rgb"},x)}else if(g.hsv){var v=g.hsv.split(",");Xn(g.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),n({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},x))}else if(g.hsl){var w=g.hsl.split(",");Xn(g.hsl,"hsl")&&(w[2]=w[2].replace("%",""),w[1]=w[1].replace("%",""),w[0]=w[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),n({h:Number(w[0]),s:Number(w[1]),v:Number(w[2]),source:"hsl"},x))}},l=N({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=r.r+", "+r.g+", "+r.b,d=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",f=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return c.createElement("div",{style:l.wrap,className:"flexbox-fix"},c.createElement("div",{style:l.fields},c.createElement("div",{style:l.double},c.createElement(W,{style:{input:l.input,label:l.label},label:"hex",value:o,onChange:i})),c.createElement("div",{style:l.column},c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"rgb",value:u,onChange:i})),c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"hsv",value:f,onChange:i})),c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:i})))))},Kr=function(e){var n=e.width,r=e.onChange,a=e.rgb,o=e.hsl,s=e.hsv,i=e.hex,l=e.header,u=e.styles,d=u===void 0?{}:u,f=e.className,h=f===void 0?"":f,g=N(ne({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return c.createElement("div",{style:g.picker,className:"google-picker "+h},c.createElement("div",{style:g.head},l),c.createElement("div",{style:g.swatch}),c.createElement("div",{style:g.saturation},c.createElement($n,{hsl:o,hsv:s,pointer:Yr,onChange:r})),c.createElement("div",{style:g.body},c.createElement("div",{style:g.controls,className:"flexbox-fix"},c.createElement("div",{style:g.hue},c.createElement(vt,{style:g.Hue,hsl:o,radius:"4px",pointer:Xr,onChange:r}))),c.createElement(C0,{rgb:a,hsl:o,hex:i,hsv:s,onChange:r})))};Kr.propTypes={width:E.oneOfType([E.string,E.number]),styles:E.object,header:E.string};Kr.defaultProps={width:652,styles:{},header:"Color picker"};re(Kr);const qn=t=>{let e=0,n=0,r=0;t.length===4?(e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16)):t.length===7&&(e=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),r=parseInt(t[5]+t[6],16)),e/=255,n/=255,r/=255;const a=Math.max(e,n,r),o=Math.min(e,n,r);let s=0,i=0;const l=(a+o)/2;if(a!==o){const u=a-o;switch(i=l>.5?u/(2-a-o):u/(a+o),a){case e:s=(n-r)/u+(n{const r=e/100,a=n/100,o=h=>(h+t/30)%12,s=r*Math.min(a,1-a),i=h=>Math.round(255*(a-s*Math.max(-1,Math.min(o(h)-3,9-o(h),1)))),l=i(0),u=i(8),d=i(4);return`#${[l,u,d].map(h=>h.toString(16).padStart(2,"0")).join("").toUpperCase()}`},S0=O.div` + `),c.createElement("div",{style:d.white,className:"saturation-white"},c.createElement("div",{style:d.black,className:"saturation-black"}),c.createElement("div",{style:d.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:d.circle}))))}}]),e}(y.PureComponent||y.Component);function Ed(t,e){for(var n=-1,r=t==null?0:t.length;++n=0,o=!n&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return A(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Gd,arguments)},brighten:function(){return this._applyModification(Wd,arguments)},darken:function(){return this._applyModification(Ud,arguments)},desaturate:function(){return this._applyModification(Hd,arguments)},saturate:function(){return this._applyModification(zd,arguments)},greyscale:function(){return this._applyModification(Ld,arguments)},spin:function(){return this._applyModification(Vd,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Kd,arguments)},complement:function(){return this._applyCombination(Yd,arguments)},monochromatic:function(){return this._applyCombination(qd,arguments)},splitcomplement:function(){return this._applyCombination(Xd,arguments)},triad:function(){return this._applyCombination(Ba,[3])},tetrad:function(){return this._applyCombination(Ba,[4])}};A.fromRatio=function(t,e){if(yn(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Ft(t[r]));t=n}return A(t,e)};function Bd(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof t=="string"&&(t=tf(t)),yn(t)=="object"&&(Ce(t.r)&&Ce(t.g)&&Ce(t.b)?(e=Fd(t.r,t.g,t.b),s=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ce(t.h)&&Ce(t.s)&&Ce(t.v)?(r=Ft(t.s),a=Ft(t.v),e=Id(t.h,r,a),s=!0,i="hsv"):Ce(t.h)&&Ce(t.s)&&Ce(t.l)&&(r=Ft(t.s),o=Ft(t.l),e=Nd(t.h,r,o),s=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=ai(n),{ok:s,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Fd(t,e,n){return{r:q(t,255)*255,g:q(e,255)*255,b:q(n,255)*255}}function Aa(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case t:o=(e-n)/l+(e1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(e===0)r=a=o=n;else{var i=n<.5?n*(1+e):n+e-n*e,l=2*n-i;r=s(l,i,t+1/3),a=s(l,i,t),o=s(l,i,t-1/3)}return{r:r*255,g:a*255,b:o*255}}function Ma(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case t:o=(e-n)/l+(e>1)+720)%360;--e;)r.h=(r.h+a)%360,o.push(A(r));return o}function qd(t,e){e=e||6;for(var n=A(t).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/e;e--;)s.push(A({h:r,s:a,v:o})),o=(o+i)%1;return s}A.mix=function(t,e,n){n=n===0?0:n||50;var r=A(t).toRgb(),a=A(e).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return A(s)};A.readability=function(t,e){var n=A(t),r=A(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};A.isReadable=function(t,e,n){var r=A.readability(t,e),a,o;switch(o=!1,a=nf(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};A.mostReadable=function(t,e,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var u=0;ua&&(a=o,r=A(e[u]));return A.isReadable(t,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,A.mostReadable(t,["#fff","#000"],n))};var ur=A.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Zd=A.hexNames=Qd(ur);function Qd(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function ai(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function q(t,e){Jd(t)&&(t="100%");var n=ef(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function An(t){return Math.min(1,Math.max(0,t))}function ae(t){return parseInt(t,16)}function Jd(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function ef(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ge(t){return t.length==1?"0"+t:""+t}function Ft(t){return t<=1&&(t=t*100+"%"),t}function oi(t){return Math.round(parseFloat(t)*255).toString(16)}function Fa(t){return ae(t)/255}var fe=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ce(t){return!!fe.CSS_UNIT.exec(t)}function tf(t){t=t.replace(kd,"").replace(Rd,"").toLowerCase();var e=!1;if(ur[t])t=ur[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=fe.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=fe.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fe.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=fe.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fe.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=fe.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fe.hex8.exec(t))?{r:ae(n[1]),g:ae(n[2]),b:ae(n[3]),a:Fa(n[4]),format:e?"name":"hex8"}:(n=fe.hex6.exec(t))?{r:ae(n[1]),g:ae(n[2]),b:ae(n[3]),format:e?"name":"hex"}:(n=fe.hex4.exec(t))?{r:ae(n[1]+""+n[1]),g:ae(n[2]+""+n[2]),b:ae(n[3]+""+n[3]),a:Fa(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=fe.hex3.exec(t))?{r:ae(n[1]+""+n[1]),g:ae(n[2]+""+n[2]),b:ae(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function nf(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}var Na=function(e){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return Md(n,function(o){if(e[o]&&(r+=1,isNaN(e[o])||(a+=1),o==="s"||o==="l")){var s=/^\d+%$/;s.test(e[o])&&(a+=1)}}),r===a?e:!1},Nt=function(e,n){var r=e.hex?A(e.hex):A(e),a=r.toHsl(),o=r.toHsv(),s=r.toRgb(),i=r.toHex();a.s===0&&(a.h=n||0,o.h=n||0);var l=i==="000000"&&s.a===0;return{hsl:a,hex:l?"transparent":"#"+i,rgb:s,hsv:o,oldHue:e.h||n||a.h,source:e.source}},Re=function(e){if(e==="transparent")return!0;var n=String(e).charAt(0)==="#"?1:0;return e.length!==4+n&&e.length<7+n&&A(e).isValid()},Mr=function(e){if(!e)return"#fff";var n=Nt(e);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},Xn=function(e,n){var r=e.replace("°","");return A(n+" ("+r+")")._ok},Rt=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){pf(a,r);function a(){var o,s,i,l;uf(this,a);for(var u=arguments.length,d=Array(u),f=0;fi))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&Cf?new wn:void 0;for(o.set(t,e),o.set(e,t);++f=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var pn=24,Uh=gi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?pn:r,o=t.height,s=o===void 0?pn:o,i=t.style,l=i===void 0?{}:i,u=Wh(t,["fill","width","height","style"]);return no.default.createElement("svg",to({viewBox:"0 0 "+pn+" "+pn,style:to({fill:n,width:a,height:s},l)},u),no.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Vh=function(){function t(e,n){for(var r=0;r1&&(a.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},o)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),r.props.onChange({h:a.h||r.props.hsl.h,s:Number(eo(a.s)?r.props.hsl.s:a.s),l:Number(eo(a.l)?r.props.hsl.l:a.l),source:"hsl"},o))},r.showHighlight=function(a){a.currentTarget.style.background="#eee"},r.hideHighlight=function(a){a.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?r.state={view:"rgb"}:r.state={view:n.view},r}return Vh(e,[{key:"render",value:function(){var r=this,a=N({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),c.createElement("div",{style:a.alpha},c.createElement(W,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),c.createElement("div",{style:a.field},c.createElement(W,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),c.createElement("div",{style:a.alpha},c.createElement(W,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),c.createElement("div",{style:a.wrap,className:"flexbox-fix"},o,c.createElement("div",{style:a.toggle},c.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(i){return r.icon=i}},c.createElement(Uh,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),e}(c.Component);bi.defaultProps={view:"hex"};var ro=function(){var e=N({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return c.createElement("div",{style:e.picker})},qh=function(){var e=N({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return c.createElement("div",{style:e.picker})},Ir=function(e){var n=e.width,r=e.onChange,a=e.disableAlpha,o=e.rgb,s=e.hsl,i=e.hsv,l=e.hex,u=e.renderers,d=e.styles,f=d===void 0?{}:d,h=e.className,g=h===void 0?"":h,x=e.defaultView,m=N(te({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:a});return c.createElement("div",{style:m.picker,className:"chrome-picker "+g},c.createElement("div",{style:m.saturation},c.createElement($n,{style:m.Saturation,hsl:s,hsv:i,pointer:qh,onChange:r})),c.createElement("div",{style:m.body},c.createElement("div",{style:m.controls,className:"flexbox-fix"},c.createElement("div",{style:m.color},c.createElement("div",{style:m.swatch},c.createElement("div",{style:m.active}),c.createElement(mt,{renderers:u}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(vt,{style:m.Hue,hsl:s,pointer:ro,onChange:r})),c.createElement("div",{style:m.alpha},c.createElement(Sr,{style:m.Alpha,rgb:o,hsl:s,pointer:ro,renderers:u,onChange:r})))),c.createElement(bi,{rgb:o,hsl:s,hex:l,view:x,onChange:r,disableAlpha:a})))};Ir.propTypes={width:E.oneOfType([E.string,E.number]),disableAlpha:E.bool,styles:E.object,defaultView:E.oneOf(["hex","rgb","hsl"])};Ir.defaultProps={width:225,disableAlpha:!1,styles:{}};ne(Ir);var Zh=function(e){var n=e.color,r=e.onClick,a=r===void 0?function(){}:r,o=e.onSwatchHover,s=e.active,i=N({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Mr(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return c.createElement(Ge,{style:i.color,color:n,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},c.createElement("div",{style:i.dot}))},Qh=function(e){var n=e.hex,r=e.rgb,a=e.onChange,o=N({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(l,u){l.r||l.g||l.b?a({r:l.r||r.r,g:l.g||r.g,b:l.b||r.b,source:"rgb"},u):a({hex:l.hex,source:"hex"},u)};return c.createElement("div",{style:o.fields,className:"flexbox-fix"},c.createElement("div",{style:o.active}),c.createElement(W,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:n,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:r.r,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:r.g,onChange:s}),c.createElement(W,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:r.b,onChange:s}))},Dr=function(e){var n=e.onChange,r=e.onSwatchHover,a=e.colors,o=e.hex,s=e.rgb,i=e.styles,l=i===void 0?{}:i,u=e.className,d=u===void 0?"":u,f=N(te({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(x,m){x.hex?Re(x.hex)&&n({hex:x.hex,source:"hex"},m):n(x,m)};return c.createElement(Zt,{style:f.Compact,styles:l},c.createElement("div",{style:f.compact,className:"compact-picker "+d},c.createElement("div",null,We(a,function(g){return c.createElement(Zh,{key:g,color:g,active:g.toLowerCase()===o,onClick:h,onSwatchHover:r})}),c.createElement("div",{style:f.clear})),c.createElement(Qh,{hex:o,rgb:s,onChange:h})))};Dr.propTypes={colors:E.arrayOf(E.string),styles:E.object};Dr.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ne(Dr);var Jh=function(e){var n=e.hover,r=e.color,a=e.onClick,o=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=N({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:n});return c.createElement("div",{style:i.swatch},c.createElement(Ge,{color:r,onClick:a,onHover:o,focusStyle:s}))};const e0=Cr(Jh);var Hr=function(e){var n=e.width,r=e.colors,a=e.onChange,o=e.onSwatchHover,s=e.triangle,i=e.styles,l=i===void 0?{}:i,u=e.className,d=u===void 0?"":u,f=N(te({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right","bottom-left-triangle":s==="bottom-left","bottom-right-triangle":s==="bottom-right"}),h=function(x,m){return a({hex:x,source:"hex"},m)};return c.createElement("div",{style:f.card,className:"github-picker "+d},c.createElement("div",{style:f.triangleShadow}),c.createElement("div",{style:f.triangle}),We(r,function(g){return c.createElement(e0,{color:g,key:g,onClick:h,onSwatchHover:o})}))};Hr.propTypes={width:E.oneOfType([E.string,E.number]),colors:E.arrayOf(E.string),triangle:E.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:E.object};Hr.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ne(Hr);var t0=function(e){var n=e.direction,r=N({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return c.createElement("div",{style:r.picker})},n0=Object.assign||function(t){for(var e=1;e.5});return c.createElement("div",{style:r.picker})},s0=function(){var e=N({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return c.createElement("div",{style:e.pointer},c.createElement("div",{style:e.left},c.createElement("div",{style:e.leftInside})),c.createElement("div",{style:e.right},c.createElement("div",{style:e.rightInside})))},ao=function(e){var n=e.onClick,r=e.label,a=e.children,o=e.active,s=N({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return c.createElement("div",{style:s.button,onClick:n},r||a)},l0=function(e){var n=e.rgb,r=e.currentColor,a=N({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return c.createElement("div",null,c.createElement("div",{style:a.label},"new"),c.createElement("div",{style:a.swatches},c.createElement("div",{style:a.new}),c.createElement("div",{style:a.current})),c.createElement("div",{style:a.label},"current"))},c0=function(){function t(e,n){for(var r=0;r100&&(d.a=100),d.a/=100,n({h:a.h,s:a.s,l:a.l,a:d.a,source:"rgb"},f))};return c.createElement("div",{style:i.fields,className:"flexbox-fix"},c.createElement("div",{style:i.double},c.createElement(W,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:l})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"r",value:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"g",value:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.single},c.createElement(W,{style:{input:i.input,label:i.label},label:"b",value:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:i.alpha},c.createElement(W,{style:{input:i.input,label:i.label},label:"a",value:Math.round(r.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},h0=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var dn=24,w0=mi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?dn:r,o=t.height,s=o===void 0?dn:o,i=t.style,l=i===void 0?{}:i,u=y0(t,["fill","width","height","style"]);return io.default.createElement("svg",oo({viewBox:"0 0 "+dn+" "+dn,style:oo({fill:n,width:a,height:s},l)},u),io.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},E0=function(e){var n=e.color,r=e.onClick,a=r===void 0?function(){}:r,o=e.onSwatchHover,s=e.first,i=e.last,l=e.active,u=N({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Mr(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:i,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return c.createElement(Ge,{color:n,style:u.color,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},c.createElement("div",{style:u.check},c.createElement(w0,null)))},C0=function(e){var n=e.onClick,r=e.onSwatchHover,a=e.group,o=e.active,s=N({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return c.createElement("div",{style:s.group},We(a,function(i,l){return c.createElement(E0,{key:i,color:i,active:i.toLowerCase()===o,first:l===0,last:l===a.length-1,onClick:n,onSwatchHover:r})}))},Ur=function(e){var n=e.width,r=e.height,a=e.onChange,o=e.onSwatchHover,s=e.colors,i=e.hex,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?"":d,h=N(te({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),g=function(m,v){return a({hex:m,source:"hex"},v)};return c.createElement("div",{style:h.picker,className:"swatches-picker "+f},c.createElement(Zt,null,c.createElement("div",{style:h.overflow},c.createElement("div",{style:h.body},We(s,function(x){return c.createElement(C0,{key:x.toString(),group:x,active:i,onClick:g,onSwatchHover:o})}),c.createElement("div",{style:h.clear})))))};Ur.propTypes={width:E.oneOfType([E.string,E.number]),height:E.oneOfType([E.string,E.number]),colors:E.arrayOf(E.arrayOf(E.string)),styles:E.object};Ur.defaultProps={width:320,height:240,colors:[[Ze[900],Ze[700],Ze[500],Ze[300],Ze[100]],[Qe[900],Qe[700],Qe[500],Qe[300],Qe[100]],[Je[900],Je[700],Je[500],Je[300],Je[100]],[et[900],et[700],et[500],et[300],et[100]],[tt[900],tt[700],tt[500],tt[300],tt[100]],[nt[900],nt[700],nt[500],nt[300],nt[100]],[rt[900],rt[700],rt[500],rt[300],rt[100]],[at[900],at[700],at[500],at[300],at[100]],[ot[900],ot[700],ot[500],ot[300],ot[100]],["#194D33",It[700],It[500],It[300],It[100]],[it[900],it[700],it[500],it[300],it[100]],[st[900],st[700],st[500],st[300],st[100]],[lt[900],lt[700],lt[500],lt[300],lt[100]],[ct[900],ct[700],ct[500],ct[300],ct[100]],[ut[900],ut[700],ut[500],ut[300],ut[100]],[pt[900],pt[700],pt[500],pt[300],pt[100]],[dt[900],dt[700],dt[500],dt[300],dt[100]],[ft[900],ft[700],ft[500],ft[300],ft[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ne(Ur);var Vr=function(e){var n=e.onChange,r=e.onSwatchHover,a=e.hex,o=e.colors,s=e.width,i=e.triangle,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?"":d,h=N(te({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right"}),g=function(m,v){Re(m)&&n({hex:m,source:"hex"},v)};return c.createElement("div",{style:h.card,className:"twitter-picker "+f},c.createElement("div",{style:h.triangleShadow}),c.createElement("div",{style:h.triangle}),c.createElement("div",{style:h.body},We(o,function(x,m){return c.createElement(Ge,{key:m,color:x,hex:x,style:h.swatch,onClick:g,onHover:r,focusStyle:{boxShadow:"0 0 4px "+x}})}),c.createElement("div",{style:h.hash},"#"),c.createElement(W,{label:null,style:{input:h.input},value:a.replace("#",""),onChange:g}),c.createElement("div",{style:h.clear})))};Vr.propTypes={width:E.oneOfType([E.string,E.number]),triangle:E.oneOf(["hide","top-left","top-right"]),colors:E.arrayOf(E.string),styles:E.object};Vr.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ne(Vr);var Yr=function(e){var n=N({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return c.createElement("div",{style:n.picker})};Yr.propTypes={hsl:E.shape({h:E.number,s:E.number,l:E.number,a:E.number})};Yr.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Xr=function(e){var n=N({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return c.createElement("div",{style:n.picker})};Xr.propTypes={hsl:E.shape({h:E.number,s:E.number,l:E.number,a:E.number})};Xr.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var S0=function(e){var n=e.onChange,r=e.rgb,a=e.hsl,o=e.hex,s=e.hsv,i=function(g,x){if(g.hex)Re(g.hex)&&n({hex:g.hex,source:"hex"},x);else if(g.rgb){var m=g.rgb.split(",");Xn(g.rgb,"rgb")&&n({r:m[0],g:m[1],b:m[2],a:1,source:"rgb"},x)}else if(g.hsv){var v=g.hsv.split(",");Xn(g.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),n({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},x))}else if(g.hsl){var w=g.hsl.split(",");Xn(g.hsl,"hsl")&&(w[2]=w[2].replace("%",""),w[1]=w[1].replace("%",""),w[0]=w[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),n({h:Number(w[0]),s:Number(w[1]),v:Number(w[2]),source:"hsl"},x))}},l=N({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=r.r+", "+r.g+", "+r.b,d=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",f=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return c.createElement("div",{style:l.wrap,className:"flexbox-fix"},c.createElement("div",{style:l.fields},c.createElement("div",{style:l.double},c.createElement(W,{style:{input:l.input,label:l.label},label:"hex",value:o,onChange:i})),c.createElement("div",{style:l.column},c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"rgb",value:u,onChange:i})),c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"hsv",value:f,onChange:i})),c.createElement("div",{style:l.single},c.createElement(W,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:i})))))},Kr=function(e){var n=e.width,r=e.onChange,a=e.rgb,o=e.hsl,s=e.hsv,i=e.hex,l=e.header,u=e.styles,d=u===void 0?{}:u,f=e.className,h=f===void 0?"":f,g=N(te({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return c.createElement("div",{style:g.picker,className:"google-picker "+h},c.createElement("div",{style:g.head},l),c.createElement("div",{style:g.swatch}),c.createElement("div",{style:g.saturation},c.createElement($n,{hsl:o,hsv:s,pointer:Yr,onChange:r})),c.createElement("div",{style:g.body},c.createElement("div",{style:g.controls,className:"flexbox-fix"},c.createElement("div",{style:g.hue},c.createElement(vt,{style:g.Hue,hsl:o,radius:"4px",pointer:Xr,onChange:r}))),c.createElement(S0,{rgb:a,hsl:o,hex:i,hsv:s,onChange:r})))};Kr.propTypes={width:E.oneOfType([E.string,E.number]),styles:E.object,header:E.string};Kr.defaultProps={width:652,styles:{},header:"Color picker"};ne(Kr);const qn=t=>{let e=0,n=0,r=0;t.length===4?(e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16)):t.length===7&&(e=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),r=parseInt(t[5]+t[6],16)),e/=255,n/=255,r/=255;const a=Math.max(e,n,r),o=Math.min(e,n,r);let s=0,i=0;const l=(a+o)/2;if(a!==o){const u=a-o;switch(i=l>.5?u/(2-a-o):u/(a+o),a){case e:s=(n-r)/u+(n{const r=e/100,a=n/100,o=h=>(h+t/30)%12,s=r*Math.min(a,1-a),i=h=>Math.round(255*(a-s*Math.max(-1,Math.min(o(h)-3,9-o(h),1)))),l=i(0),u=i(8),d=i(4);return`#${[l,u,d].map(h=>h.toString(16).padStart(2,"0")).join("").toUpperCase()}`},_0=O.div` position: relative; -`,_0=O.div` +`,j0=O.div` position: absolute; top: ${t=>t.y-7}px; left: ${t=>t.x-7}px; @@ -120,7 +120,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.3); pointer-events: none; transition: top 0.1s ease, left 0.1s ease; -`,j0=({hue:t,onChange:e})=>{const n=y.useRef(null),[r,a]=y.useState({x:80,y:50}),[o,s]=y.useState(!1);y.useEffect(()=>{const f=n.current;if(f){const h=f.getContext("2d");if(h){const{width:g,height:x}=f;for(let m=0;m{const h=n.current;if(h){const g=h.getBoundingClientRect(),x=f.clientX-g.left,m=f.clientY-g.top,v=x/h.width,w=1-m/h.height,_=vi(t,v*100,w*100);a({x,y:m}),e(_)}},[t,e]),l=f=>{s(!0),i(f)},u=f=>{o&&i(f)},d=()=>{s(!1)};return y.useEffect(()=>(o?(window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)):(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)),()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)}),[o,u]),p.jsxs(S0,{children:[p.jsx("canvas",{ref:n,height:162,onMouseDown:l,width:260}),p.jsx(_0,{x:r.x,y:r.y})]})},O0=["#C62828","#D32F2F","#F57C00","#FF9800","#FFB74D","#FFEB3B","#CDDC39","#8BC34A","#388E3C","#4CAF50","#009688","#00796B","#00BCD4","#0097A7","#3F51B5","#283593","#5C6BC0","#7E57C2","#512DA8","#9C27B0","#E91E63","#F06292","#F48FB1","#795548","#6D4C41","#9E9E9E","#757575","#607D8B","#455A64","#2196F3","#1976D2","#64B5F6"],P0=()=>{const{selectedColor:t,setSelectedColor:e}=vr(x=>x),[n,r]=y.useState(t),[a,o]=y.useState(315),[s,i]=y.useState(74),[l,u]=y.useState(59),d=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},f=x=>{o(x.hsl.h);const m=vi(x.hsl.h,s,l);d(m)},h=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},g=x=>{const m=x.target.value;r(m);const{h:v,s:w,l:_}=qn(m);o(v),i(w),u(_),e(m)};return p.jsx(T0,{direction:"column",justify:"flex-end",children:p.jsx($0,{align:"center",children:p.jsxs(A0,{children:[p.jsx(k0,{children:p.jsx(M0,{children:O0.map(x=>p.jsx(R0,{color:x,onClick:()=>d(x)},x))})}),p.jsx(B0,{children:p.jsx(j0,{hue:a,onChange:h})}),p.jsx(F0,{children:p.jsx(n0,{color:t,onChange:f})}),p.jsxs(D0,{children:[p.jsx(I0,{children:"HEX"}),p.jsx(N0,{onChange:g,type:"text",value:n})]})]})})})},T0=O($)` +`,O0=({hue:t,onChange:e})=>{const n=y.useRef(null),[r,a]=y.useState({x:80,y:50}),[o,s]=y.useState(!1);y.useEffect(()=>{const f=n.current;if(f){const h=f.getContext("2d");if(h){const{width:g,height:x}=f;for(let m=0;m{const h=n.current;if(h){const g=h.getBoundingClientRect(),x=f.clientX-g.left,m=f.clientY-g.top,v=x/h.width,w=1-m/h.height,_=vi(t,v*100,w*100);a({x,y:m}),e(_)}},[t,e]),l=f=>{s(!0),i(f)},u=f=>{o&&i(f)},d=()=>{s(!1)};return y.useEffect(()=>(o?(window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)):(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)),()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)}),[o,u]),p.jsxs(_0,{children:[p.jsx("canvas",{ref:n,height:162,onMouseDown:l,width:260}),p.jsx(j0,{x:r.x,y:r.y})]})},P0=["#C62828","#D32F2F","#F57C00","#FF9800","#FFB74D","#FFEB3B","#CDDC39","#8BC34A","#388E3C","#4CAF50","#009688","#00796B","#00BCD4","#0097A7","#3F51B5","#283593","#5C6BC0","#7E57C2","#512DA8","#9C27B0","#E91E63","#F06292","#F48FB1","#795548","#6D4C41","#9E9E9E","#757575","#607D8B","#455A64","#2196F3","#1976D2","#64B5F6"],T0=()=>{const{selectedColor:t,setSelectedColor:e}=vr(x=>x),[n,r]=y.useState(t),[a,o]=y.useState(315),[s,i]=y.useState(74),[l,u]=y.useState(59),d=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},f=x=>{o(x.hsl.h);const m=vi(x.hsl.h,s,l);d(m)},h=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},g=x=>{const m=x.target.value;r(m);const{h:v,s:w,l:_}=qn(m);o(v),i(w),u(_),e(m)};return p.jsx($0,{direction:"column",justify:"flex-end",children:p.jsx(A0,{align:"center",children:p.jsxs(M0,{children:[p.jsx(R0,{children:p.jsx(k0,{children:P0.map(x=>p.jsx(B0,{color:x,onClick:()=>d(x)},x))})}),p.jsx(F0,{children:p.jsx(O0,{hue:a,onChange:h})}),p.jsx(N0,{children:p.jsx(r0,{color:t,onChange:f})}),p.jsxs(H0,{children:[p.jsx(D0,{children:"HEX"}),p.jsx(I0,{onChange:g,type:"text",value:n})]})]})})})},$0=O($)` flex: 1; .title { @@ -150,23 +150,23 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a margin: 8px auto; align-self: center; } -`,$0=O($)` +`,A0=O($)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,A0=O.div` +`,M0=O.div` padding: 0 20px; width: 315px; -`,M0=O.div` +`,k0=O.div` display: flex; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 16px; -`,k0=O.div` +`,R0=O.div` margin-left: 10px; margin-bottom: 6px; -`,R0=O.div` +`,B0=O.div` width: 20px; height: 20px; border-radius: 50%; @@ -177,20 +177,20 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a &:hover { box-shadow: 0 0 7px ${t=>t.color}; } -`,B0=O.div` +`,F0=O.div` margin-bottom: 8px; margin-left: 4px; display: flex; justify-content: center; align-items: center; -`,F0=O.div` +`,N0=O.div` margin-bottom: 15px; width: 224px; margin-left: 10px; display: flex; justify-content: center; align-items: center; -`,N0=O.input` +`,I0=O.input` font-family: 'Barlow'; padding: 2px 5px 2px 10px; font-size: 13px; @@ -204,18 +204,18 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a &:focus { outline: none; } -`,I0=O.p` +`,D0=O.p` font-family: 'Barlow'; font-size: 13px; font-weight: 400; color: ${j.primaryText1}; letter-spacing: 1px; margin: 0 10px; -`,D0=O.div` +`,H0=O.div` display: flex; align-items: center; gap: 8px; -`,H0=()=>{const{selectedIcon:t,setSelectedIcon:e}=vr(r=>r),n=r=>{e(r)};return p.jsx(z0,{direction:"column",justify:"flex-end",children:p.jsx(L0,{align:"center",children:p.jsx(G0,{children:p.jsx(W0,{children:p.jsx(U0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(V0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},z0=O($)` +`,z0=()=>{const{selectedIcon:t,setSelectedIcon:e}=vr(r=>r),n=r=>{e(r)};return p.jsx(L0,{direction:"column",justify:"flex-end",children:p.jsx(G0,{align:"center",children:p.jsx(W0,{children:p.jsx(U0,{children:p.jsx(V0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(Y0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},L0=O($)` flex: 1; .title { @@ -245,25 +245,25 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a margin: 8px auto; align-self: center; } -`,L0=O($)` +`,G0=O($)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,G0=O.div` +`,W0=O.div` padding: 0 20px; width: 300px; height: 350px; overflow: auto; -`,W0=O.div` +`,U0=O.div` margin-left: 18px; margin-bottom: 6px; -`,U0=O.div` +`,V0=O.div` display: flex; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 16px; -`,V0=O.div` +`,Y0=O.div` width: 50px; height: 50px; margin: 4px; @@ -291,7 +291,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a object-fit: contain; color: white; } -`,Y0=t=>{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(Q0,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function X0(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const K0=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:P0},{label:"Icon",component:H0}];return p.jsxs(J0,{direction:"column",children:[p.jsx(q0,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(Z0,{color:j.white,disableRipple:!0,label:a.label,...X0(o)},a.label))}),r.map((a,o)=>p.jsx(Y0,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},q0=O(Xi)` +`,X0=t=>{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(J0,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function K0(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const q0=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:T0},{label:"Icon",component:z0}];return p.jsxs(eg,{direction:"column",children:[p.jsx(Z0,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(Q0,{color:j.white,disableRipple:!0,label:a.label,...K0(o)},a.label))}),r.map((a,o)=>p.jsx(X0,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},Z0=O(Xi)` && { background: ${j.modalBg}; border-radius: 9px 9px 0 0; @@ -300,7 +300,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a background: ${j.primaryBlue}; } } -`,Z0=O(Ki)` +`,Q0=O(Ki)` && { padding: 20px 0 20px; color: ${j.GRAY6}; @@ -313,7 +313,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a color: ${j.white}; } } -`,Q0=O($)` +`,J0=O($)` display: flex; flex: 1; min-height: 572px; @@ -338,7 +338,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a min-height: 250px; max-height: 250px; } -`,J0=O($)` +`,eg=O($)` min-height: 0; flex: 1; overflow: hidden; @@ -346,13 +346,13 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a @media (max-width: 768px) { padding: 3px; } -`,eg=({isOpen:t})=>p.jsx(tg,{isOpen:t,children:p.jsx(ng,{children:p.jsx(K0,{})})}),tg=O.div` +`,tg=({isOpen:t})=>p.jsx(ng,{isOpen:t,children:p.jsx(rg,{children:p.jsx(q0,{})})}),ng=O.div` display: ${t=>t.isOpen?"block":"none"}; position: fixed; top: 0; left: 0; z-index: 2000; -`,ng=O.div` +`,rg=O.div` position: fixed; top: 40%; left: 34%; @@ -383,11 +383,11 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a top: 37%; left: 76%; } -`,rg=/^[a-z0-9_]+$/,ag=({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(og,{py:8,children:p.jsx(_e,{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(_e,{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:rg}}})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(ug,{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(_e,{item:!0,xs:3,children:p.jsxs(sg,{children:[p.jsx(ig,{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(lg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(cg,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},og=O($)` +`,ag=/^[a-z0-9_]+$/,og=({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(ig,{py:8,children:p.jsx(_e,{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(_e,{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:ag}}})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(pg,{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(_e,{item:!0,xs:3,children:p.jsxs(lg,{children:[p.jsx(sg,{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(cg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(ug,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},ig=O($)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); -`,ig=O(t=>p.jsx(Do,{...t}))` +`,sg=O(t=>p.jsx(Do,{...t}))` &.MuiSwitch-root { width: 51px; height: 38px; @@ -411,11 +411,11 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a background-color: ${j.BG2}; opacity: 1; } -`,sg=O.div` +`,lg=O.div` display: flex; align-items: center; justify-content: flex-start; -`,lg=O.button` +`,cg=O.button` background: transparent; width: 149px; height: 32px; @@ -436,7 +436,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a &:active { background: ${j.BUTTON1_PRESS}; } -`,cg=O.span` +`,ug=O.span` display: flex; justify-content: space-between; align-items: center; @@ -448,14 +448,14 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a fill: none; margin-top: 2px; } -`,ug=O(Dt)` +`,pg=O(Dt)` & .MuiInput-input.MuiInputBase-input { padding: 8px 2px !important; } -`,pg=({parent:t,onDelete:e})=>{const n=t;return p.jsxs($,{children:[p.jsx($,{direction:"row",mb:10,children:p.jsxs(_e,{container:!0,spacing:2,children:[p.jsx(_e,{item:!0,xs:5,children:p.jsx(Zn,{style:{marginRight:180},children:"Attributes"})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(Zn,{style:{marginRight:130},children:"Type"})}),p.jsx(_e,{item:!0,xs:3,children:p.jsx(Zn,{children:"Required"})})]})}),n&&p.jsx(ag,{onDelete:e,parentParam:n},n)]})},Zn=O(Se)` +`,dg=({parent:t,onDelete:e})=>{const n=t;return p.jsxs($,{children:[p.jsx($,{direction:"row",mb:10,children:p.jsxs(_e,{container:!0,spacing:2,children:[p.jsx(_e,{item:!0,xs:5,children:p.jsx(Zn,{style:{marginRight:180},children:"Attributes"})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(Zn,{style:{marginRight:130},children:"Type"})}),p.jsx(_e,{item:!0,xs:3,children:p.jsx(Zn,{children:"Required"})})]})}),n&&p.jsx(og,{onDelete:e,parentParam:n},n)]})},Zn=O(Se)` font-size: 15px; color: gray; -`,dg=({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(fg,{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"})]})},fg=O($)` +`,fg=({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(hg,{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"})]})},hg=O($)` direction: column; `,Qn=O(Yi)` justify-content: space-between; @@ -498,17 +498,17 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a border: 1px solid ${j.BG2}; width: 100%; opacity: 0.5; -`,so={type:"",parent:""},hg=(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}),gg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...qi(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=ht;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||ht}else i instanceof Error&&(l=i.message);throw new Error(l)}},bg=t=>t.charAt(0).toUpperCase()+t.slice(1),lo=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:bg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},xg=({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}:so}),{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),[ae,xe]=y.useState([]),[Pe,pe]=y.useState([]),[wt,Et]=y.useState(!0),[Te,Be]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:Fe,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),lo(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(so),pe([{required:!1,type:"string",key:""}]),xe([]),Be({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Be({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)}),lo(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),Ue=f("attributes"),$e=y.useMemo(()=>Bn(Ue)?Ue:[],[Ue]),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=ht;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||ht}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={};Te.image&&(le.image_url="?string"),Te.sourceLink&&(le.source_link="?string"),Te.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:Fe,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await gg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,ae,Fe,Ct,Te,{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=ht;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||ht}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=hg($e,Pe),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());Et(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,$e,Pe,n,m,L]);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]),Ve=f("selectedIndex"),In=y.useMemo(()=>{if(Ve)return{label:Ve,value:Ve};if(n){const k=$e.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,$e,Ve]),Ye=or[Ct],Xe=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Eg,{children:[p.jsx(Cg,{children:n?"Edit Type":"Create Type"}),p.jsx(wg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(vg,{}),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(Se,{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(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{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(po,{onClick:Qt,selectedColor:Fe,children:p.jsx(Ye,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{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(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:Ye&&p.jsx(Ye,{})})]})})]})]})}),Xe&&p.jsx(pg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(dg,{initialOptions:Te,setMediaOptions:Be,setSubmitDisabled:Et}),Xe&&p.jsxs($,{children:[p.jsx(uo,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(Se,{children:"Indexes"})}),p.jsx(_e,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:$e.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(uo,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(yg,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(mg,{color:"secondary",disabled:wt,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(eg,{isOpen:St})]})]})},mg=O(Cn)` +`,so={type:"",parent:""},gg=(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}),bg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...qi(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=ht;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||ht}else i instanceof Error&&(l=i.message);throw new Error(l)}},xg=t=>t.charAt(0).toUpperCase()+t.slice(1),lo=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:xg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},mg=({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}:so}),{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([]),[Pe,pe]=y.useState([]),[wt,Et]=y.useState(!0),[Te,Be]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:Fe,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),lo(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(so),pe([{required:!1,type:"string",key:""}]),xe([]),Be({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Be({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)}),lo(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),Ue=f("attributes"),$e=y.useMemo(()=>Bn(Ue)?Ue:[],[Ue]),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=ht;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||ht}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={};Te.image&&(le.image_url="?string"),Te.sourceLink&&(le.source_link="?string"),Te.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:Fe,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await bg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,re,Fe,Ct,Te,{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=ht;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||ht}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=gg($e,Pe),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());Et(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,$e,Pe,n,m,L]);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]),Ve=f("selectedIndex"),In=y.useMemo(()=>{if(Ve)return{label:Ve,value:Ve};if(n){const k=$e.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,$e,Ve]),Ye=or[Ct],Xe=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Cg,{children:[p.jsx(Sg,{children:n?"Edit Type":"Create Type"}),p.jsx(Eg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(yg,{}),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(Se,{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(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{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(po,{onClick:Qt,selectedColor:Fe,children:p.jsx(Ye,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{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(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:Ye&&p.jsx(Ye,{})})]})})]})]})}),Xe&&p.jsx(dg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(fg,{initialOptions:Te,setMediaOptions:Be,setSubmitDisabled:Et}),Xe&&p.jsxs($,{children:[p.jsx(uo,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(Se,{children:"Indexes"})}),p.jsx(_e,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:$e.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(uo,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(wg,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(vg,{color:"secondary",disabled:wt,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(tg,{isOpen:St})]})]})},vg=O(Cn)` width: 400px !important; margin: 0 auto !important; -`,vg=O.div` +`,yg=O.div` border-bottom: 1px solid ${j.black}; width: calc(100% + 32px); margin: 0 -16px 16px; opacity: 0.3; `,co=O.span` margin-top: 2px; -`,yg=O(Cn)` +`,wg=O(Cn)` && { color: ${j.primaryRed}; background-color: rgba(237, 116, 116, 0.1); @@ -520,7 +520,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a background-color: rgba(237, 116, 116, 0.2); } } -`,wg=O($)` +`,Eg=O($)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -546,13 +546,13 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a width: calc(100% + 32px); opacity: 0.5; margin-left: -16px; -`,Eg=O($)` +`,Cg=O($)` flex-direction: row; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 16px; -`,Cg=O(Se)` +`,Sg=O(Se)` font-family: Barlow; font-size: 22px; font-weight: 600; @@ -589,7 +589,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a display: flex; `,ho=O($)` width: 320px; -`;var Sg=Object.defineProperty,_g=(t,e,n)=>e in t?Sg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(_g(t,typeof e!="symbol"?e+"":e,n),n);const fn=new os,go=new is,jg=Math.cos(70*(Math.PI/180)),bo=(t,e)=>(t%e+e)%e;let Og=class extends ss{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:Ke.ROTATE,MIDDLE:Ke.DOLLY,RIGHT:Ke.PAN}),R(this,"touches",{ONE:qe.ROTATE,TWO:qe.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=bo(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=bo(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,ye=new ia,Ae=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 we=r.minAzimuthAngle,Ee=r.maxAzimuthAngle;isFinite(we)&&isFinite(Ee)&&(we<-Math.PI?we+=Ae:we>Math.PI&&(we-=Ae),Ee<-Math.PI?Ee+=Ae:Ee>Math.PI&&(Ee-=Ae),we<=Ee?d.theta=Math.max(we,Math.min(Ee,d.theta)):d.theta=d.theta>(we+Ee)/2?Math.max(we,d.theta):Math.min(Ee,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=Be(d.radius):d.radius=Be(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=Be(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):(fn.origin.copy(r.object.position),fn.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(fn.direction))u||8*(1-ye.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),ye.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",Ye),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,ye;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Ye),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Xe),(ye=r.domElement)==null||ye.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 ae(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)}})(),Pe=(()=>{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 ye=r.object.position;b.copy(ye).sub(r.target);let Ae=b.length();Ae*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Ae/Z.clientHeight,r.object.matrix),Pe(2*U*Ae/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),Pe(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 wt(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 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 Te(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,ye=C.height;H.x=F/Z*2-1,H.y=-(U/ye)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Be(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function Fe(b){x.set(b.clientX,b.clientY)}function Ct(b){Te(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),ae(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?wt(I()):M.y<0&&Et(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){Te(b),b.deltaY<0?Et(I()):b.deltaY>0&&wt(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 Ue(){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 $e(){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&&$e()}function Nn(){r.enableZoom&&Jt(),r.enableRotate&&Ue()}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),ae(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)),wt(M.y),P.copy(T)}function Ve(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Ye(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Xe),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):Q(b))}function Xe(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",Xe),(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 Ke.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case Ke.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;Fe(b),l=i.ROTATE}break;case Ke.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;Fe(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 qe.ROTATE:if(r.enableRotate===!1)return;Ue(),l=i.TOUCH_ROTATE;break;case qe.PAN:if(r.enablePan===!1)return;$e(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case qe.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case qe.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;Ve(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 ls(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(Pg.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,te({ref:es([i,s]),points:d},o))}),Tg=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 Og(_),[_]);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",te({ref:u,object:P,enableDamping:a},l))});function $g(t){const e=t+"Geometry";return y.forwardRef(({args:n,children:r,...a},o)=>y.createElement("mesh",te({ref:o},a),y.createElement(e,{attach:"geometry",args:n}),r))}const Ag=$g("circle"),he=10,Mg=2,kg=2,mo=10,Rg=10,vo=(t,e,n)=>{const o=new G().subVectors(e,t).normalize().multiplyScalar(n);return new G().addVectors(t,o)},Bg=(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)*Rg;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(Bg(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),ae=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,ae),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 Pe=h.distanceTo(f),pe=Pe{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(xo,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(xo,{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:[Mg,kg,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 Fg=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Ng=O.div` +`;var _g=Object.defineProperty,jg=(t,e,n)=>e in t?_g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(jg(t,typeof e!="symbol"?e+"":e,n),n);const fn=new is,go=new ss,Og=Math.cos(70*(Math.PI/180)),bo=(t,e)=>(t%e+e)%e;let Pg=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:Ke.ROTATE,MIDDLE:Ke.DOLLY,RIGHT:Ke.PAN}),R(this,"touches",{ONE:qe.ROTATE,TWO:qe.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=bo(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=bo(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,ye=new ia,Ae=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 we=r.minAzimuthAngle,Ee=r.maxAzimuthAngle;isFinite(we)&&isFinite(Ee)&&(we<-Math.PI?we+=Ae:we>Math.PI&&(we-=Ae),Ee<-Math.PI?Ee+=Ae:Ee>Math.PI&&(Ee-=Ae),we<=Ee?d.theta=Math.max(we,Math.min(Ee,d.theta)):d.theta=d.theta>(we+Ee)/2?Math.max(we,d.theta):Math.min(Ee,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=Be(d.radius):d.radius=Be(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=Be(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):(fn.origin.copy(r.object.position),fn.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(fn.direction))u||8*(1-ye.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),ye.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",Ye),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,ye;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Ye),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Xe),(ye=r.domElement)==null||ye.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)}})(),Pe=(()=>{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 ye=r.object.position;b.copy(ye).sub(r.target);let Ae=b.length();Ae*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Ae/Z.clientHeight,r.object.matrix),Pe(2*U*Ae/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),Pe(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 wt(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 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 Te(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,ye=C.height;H.x=F/Z*2-1,H.y=-(U/ye)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Be(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function Fe(b){x.set(b.clientX,b.clientY)}function Ct(b){Te(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?wt(I()):M.y<0&&Et(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){Te(b),b.deltaY<0?Et(I()):b.deltaY>0&&wt(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 Ue(){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 $e(){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&&$e()}function Nn(){r.enableZoom&&Jt(),r.enableRotate&&Ue()}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)),wt(M.y),P.copy(T)}function Ve(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Ye(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Xe),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):Q(b))}function Xe(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",Xe),(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 Ke.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case Ke.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;Fe(b),l=i.ROTATE}break;case Ke.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;Fe(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 qe.ROTATE:if(r.enableRotate===!1)return;Ue(),l=i.TOUCH_ROTATE;break;case qe.PAN:if(r.enablePan===!1)return;$e(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case qe.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case qe.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;Ve(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(Tg.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:es([i,s]),points:d},o))}),$g=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 Pg(_),[_]);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))}),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 Pe=h.distanceTo(f),pe=Pe{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(xo,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(xo,{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` color: white; background: rgba(0, 0, 0, 1); padding: 2px 5px; @@ -601,9 +601,9 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a font-size: 12px; font-style: normal; font-weight: 400; -`,Ig=O(ts)` +`,Ng=O(ns)` position: absolute; -`;new cs(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)??(Fg[(_=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(Ag,{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(Ig,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Ng,{children:t.type})})]})});wi.displayName="Node";const Dg=({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})})},Hg=({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=Ii(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(Dg,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new us(0),zg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(ns,{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(rs,{position:"right-bottom"}),p.jsx(Lg,{}),p.jsx(as,{}),p.jsx(Hg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),Lg=()=>{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(Tg,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Gg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Wg,{children:[p.jsxs(Ug,{children:[p.jsx(Di,{}),p.jsx(Vg,{children:"Blueprint"})]}),p.jsxs(Yg,{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(Xg,{onClick:t,children:p.jsx(mr,{})})]}),Wg=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=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=Ii(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($g,{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(Di,{}),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%; @@ -612,7 +612,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a justify-content: space-between; padding: 17px; border-bottom: 1px solid ${j.black}; -`,Ug=O.div` +`,Wg=O.div` display: flex; align-items: center; font-size: 22px; @@ -623,13 +623,13 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a color: ${j.GRAY6}; margin-left: 6px; } -`,Vg=O.span` +`,Ug=O.span` color: ${j.white}; font-weight: 400; font-family: Barlow; margin-left: 15px; font-size: 22px; -`,Yg=O.div` +`,Vg=O.div` display: flex; position: absolute; top: 16px; @@ -651,7 +651,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a &:first-child { margin-left: 0; } -`,Xg=O.div` +`,Yg=O.div` position: absolute; top: 16px; right: 12px; @@ -664,7 +664,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a width: 30px; height: 32px; } -`,Kg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(qg,{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(Hi,{})})})]}),qg=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(Bo,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Hi,{})})})]}),Kg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 1; gap: 17px; padding: 16px 0 0 16px; @@ -699,7 +699,7 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a justify-content: center; align-items: center; font-size: 24px; -`,Zg=({Close:t})=>{const[e,n]=y.useState(""),[r,a]=y.useState(!1),[o,s]=y.useState(!1),[i,l]=y.useState(!1),[u,d]=y.useState({refId:"",edgeType:"",source:"",target:""}),[f,h]=y.useState(!1),[g,x]=y.useState("all"),[m,v,w,_]=yr(S=>[S.schemas,S.links,S.setSchemas,S.setSchemaLinks]);y.useEffect(()=>{(async()=>{s(!0);try{const D=await ea(),X=D.schemas.filter(I=>I.ref_id&&!I.is_deleted);w(X.length>0?X:D.schemas),_(D.edges.length>0?D.edges:[]),s(!1)}catch(D){console.error("Error fetching data:",D),s(!1)}})()},[w,_]);const B=S=>{if(m.some(X=>X.ref_id===S.ref_id))w(m.map(X=>X.ref_id===S.ref_id?{...S,children:[]}:X));else{w([...m,{...S,children:[]}]);const X=m.find(I=>S.parent===I.type);_([...v,{ref_id:`new-link-${v.length}`,edge_type:"CHILD_OF",source:S.ref_id||"new",target:(X==null?void 0:X.ref_id)||"new"}])}},P=async()=>{const S=await ea();w(S.schemas.filter(D=>D.ref_id&&!D.is_deleted&&D.ref_id)),_(S.edges)},T=S=>{w(m.filter(D=>D.type!==S))},M=m.map(S=>({...S,children:m.filter(D=>D.parent===S.type).map(D=>D.ref_id||"")})),L=v.filter(S=>M.some(D=>D.ref_id===S.source)&&M.some(D=>D.ref_id===S.target)),H=m.find(S=>S.ref_id===e)||null;if(o)return p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})});const V=g==="all"?L:L.filter(S=>S.edge_type==="CHILD_OF");return p.jsxs(p.Fragment,{children:[p.jsx($,{ml:-20,mr:-20,mt:-20,children:p.jsx(Gg,{activeTab:g,onClose:t,setActiveTab:x})}),p.jsxs($,{align:"stretch",direction:"row",grow:1,children:[p.jsx($,{mb:-20,ml:-20,children:H||r?p.jsx(Co,{hasSchema:!0,children:p.jsx(So,{children:p.jsx(xg,{graphLoading:f,onDelete:T,onSchemaCreate:B,onSchemaUpdate:P,selectedSchema:H,setGraphLoading:h,setIsCreateNew:a,setSelectedSchemaId:n})})}):null}),p.jsx($,{children:i?p.jsx(Co,{children:p.jsx(So,{children:p.jsx(Ls,{edgeData:u,setGraphLoading:h,setIsAddEdgeNode:l},u.refId)})}):null}),p.jsx($,{children:p.jsx(Kg,{onAddEdgeNode:()=>{l(!0),a(!1),n(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{l(!1),a(!0),n("")}})}),p.jsx(Qg,{direction:"row",grow:1,children:p.jsx(Jg,{children:f?p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})}):p.jsx(zg,{links:V,onEdgeClick:(S,D,X,I)=>{d({refId:S,edgeType:D,source:X,target:I}),l(!0),a(!1),n("")},schemasWithPositions:M,selectedSchemaId:e,setIsAddEdgeNode:l,setSelectedSchemaId:n})})})]})]})},Qg=O($)` +`,qg=({Close:t})=>{const[e,n]=y.useState(""),[r,a]=y.useState(!1),[o,s]=y.useState(!1),[i,l]=y.useState(!1),[u,d]=y.useState({refId:"",edgeType:"",source:"",target:""}),[f,h]=y.useState(!1),[g,x]=y.useState("all"),[m,v,w,_]=yr(S=>[S.schemas,S.links,S.setSchemas,S.setSchemaLinks]);y.useEffect(()=>{(async()=>{s(!0);try{const D=await ea(),X=D.schemas.filter(I=>I.ref_id&&!I.is_deleted);w(X.length>0?X:D.schemas),_(D.edges.length>0?D.edges:[]),s(!1)}catch(D){console.error("Error fetching data:",D),s(!1)}})()},[w,_]);const B=S=>{if(m.some(X=>X.ref_id===S.ref_id))w(m.map(X=>X.ref_id===S.ref_id?{...S,children:[]}:X));else{w([...m,{...S,children:[]}]);const X=m.find(I=>S.parent===I.type);_([...v,{ref_id:`new-link-${v.length}`,edge_type:"CHILD_OF",source:S.ref_id||"new",target:(X==null?void 0:X.ref_id)||"new"}])}},P=async()=>{const S=await ea();w(S.schemas.filter(D=>D.ref_id&&!D.is_deleted&&D.ref_id)),_(S.edges)},T=S=>{w(m.filter(D=>D.type!==S))},M=m.map(S=>({...S,children:m.filter(D=>D.parent===S.type).map(D=>D.ref_id||"")})),L=v.filter(S=>M.some(D=>D.ref_id===S.source)&&M.some(D=>D.ref_id===S.target)),H=m.find(S=>S.ref_id===e)||null;if(o)return p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})});const V=g==="all"?L:L.filter(S=>S.edge_type==="CHILD_OF");return p.jsxs(p.Fragment,{children:[p.jsx($,{ml:-20,mr:-20,mt:-20,children:p.jsx(Lg,{activeTab:g,onClose:t,setActiveTab:x})}),p.jsxs($,{align:"stretch",direction:"row",grow:1,children:[p.jsx($,{mb:-20,ml:-20,children:H||r?p.jsx(Co,{hasSchema:!0,children:p.jsx(So,{children:p.jsx(mg,{graphLoading:f,onDelete:T,onSchemaCreate:B,onSchemaUpdate:P,selectedSchema:H,setGraphLoading:h,setIsCreateNew:a,setSelectedSchemaId:n})})}):null}),p.jsx($,{children:i?p.jsx(Co,{children:p.jsx(So,{children:p.jsx(Gs,{edgeData:u,setGraphLoading:h,setIsAddEdgeNode:l},u.refId)})}):null}),p.jsx($,{children:p.jsx(Xg,{onAddEdgeNode:()=>{l(!0),a(!1),n(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{l(!1),a(!0),n("")}})}),p.jsx(Zg,{direction:"row",grow:1,children:p.jsx(Qg,{children:f?p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})}):p.jsx(Hg,{links:V,onEdgeClick:(S,D,X,I)=>{d({refId:S,edgeType:D,source:X,target:I}),l(!0),a(!1),n("")},schemasWithPositions:M,selectedSchemaId:e,setIsAddEdgeNode:l,setSelectedSchemaId:n})})})]})]})},Zg=O($)` flex: 1 1 auto; justify-content: center; position: relative; @@ -757,6 +757,6 @@ import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h a @media (max-width: 924px) { max-height: calc(65vh - 20px); } -`,Jg=O($)` +`,Qg=O($)` flex: 1 1 100%; -`,eb=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx(Ri,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(Zg,{Close:e})})},bb=y.memo(eb);export{bb 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})})},gb=y.memo(Jg);export{gb as BlueprintModal}; diff --git a/build/assets/index-a24c814f.js b/build/assets/index-c5587235.js similarity index 64% rename from build/assets/index-a24c814f.js rename to build/assets/index-c5587235.js index c362fa2dc..660c13e4f 100644 --- a/build/assets/index-a24c814f.js +++ b/build/assets/index-c5587235.js @@ -1,9 +1,9 @@ -import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E as Ql,D as tr,V as Dd,G as Na,a6 as Kl,y as Jl,a7 as Pd,K as Id,b as Nd,M as pr,a8 as Rd,a9 as Fd,aa as Ld,Q as Vd,ab as Ud,a2 as jd}from"./index-bde6e5ef.js";import{u as It,a as be,m as fo,b as po,e as Ra,L as zd,c as Bd,d as qd,f as Wd,g as tu,H as er,t as eu,T as Hd,h as Gd,i as Yd,C as $d,P as Zd,j as Xd}from"./index-04235dc5.js";import{P as si,c as Nc,H as Qd,E as Kd,_ as qt,d as qe,u as We,e as oe,f as Fa,g as mo,T as Rc,h as Jd,i as tf,j as ef,k as sf,l as nf,m as rf,D as of,I as af,n as cf,o as lf,p as Fc,q as uf,r as hf,R as df,s as ff,t as pf,N as mf,v as _f,O as gf,w as yf}from"./index-5c574277.js";import{T as vf}from"./TextareaAutosize-f9a84af0.js";import{D as mr,F as xf,V as at,L as kf,a as Tf,M as gn,b as _t,S as wf,B as bf,c as su,P as Fo,d as Cf,e as Dr,f as qs,T as _o,g as oa,h as Sf,i as Lc,j as sr,Q as Ef,G as Of,C as go,k as Af,l as nu,W as Mf,m as Df,n as Pf,E as If,o as Nf,p as Rf,q as yo,r as Ff,s as Vc,t as Uc}from"./three.module-26d3b3c0.js";import{u as Lf}from"./index-2a7ba5ab.js";import{C as Vf}from"./ClipLoader-2c26140d.js";function Uf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const jf=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jc=jf?D.useEffect:D.useLayoutEffect;function zf(i){const t=typeof i=="function"?Uf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=D.useReducer(m=>m+1,0),o=t.getState(),a=D.useRef(o),c=D.useRef(s),l=D.useRef(n),u=D.useRef(!1),h=D.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),jc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=D.useRef(o);jc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return D.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let ni=0;const Bf=zf(i=>(mr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-ni)/(s-ni)*100})},mr.onLoad=()=>{i({active:!1})},mr.onError=t=>i(e=>({errors:[...e.errors,t]})),mr.onProgress=(t,e,s)=>{e===s&&(ni=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-ni)/(s-ni)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),qf=i=>`Loading ${i.toFixed(2)}%`;function Wf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=qf,initialState:r=o=>o}){const{active:o,progress:a}=Bf(),c=D.useRef(0),l=D.useRef(0),u=D.useRef(null),[h,d]=D.useState(r(o));D.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=D.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?D.createElement("div",{style:{..._r.container,opacity:o?1:0,...i}},D.createElement("div",null,D.createElement("div",{style:{..._r.inner,...t}},D.createElement("div",{style:{..._r.bar,transform:`scaleX(${a/100})`,...e}}),D.createElement("span",{ref:u,style:{..._r.data,...s}})))):null}const _r={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"}},Lo=new xf,Vo=new at,yn=new at,Re=new at,rs=new at,Ye=new at,os=new at,as=new at,ii=new at,ri=new at,oi=new at,gr=new at,ai=new at,ci=new at,li=new at;class Hf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Lo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ye.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ai.copy(rs).sub(Re),ci.copy(Ye).sub(Re),li.copy(os).sub(Re),ai.normalize(),ci.normalize(),li.normalize(),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),li.multiplyScalar(this.deep),ai.add(Re),ci.add(Re),li.add(Re);var s=Lo.planes;s[0].setFromCoplanarPoints(Re,rs,Ye),s[1].setFromCoplanarPoints(Re,Ye,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(li,ci,ai),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ye.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ii.set(n,r,1),ri.set(o,r,1),oi.set(o,a,1),gr.set(n,a,1),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),oi.unproject(this.camera),gr.unproject(this.camera);var s=Lo.planes;s[0].setFromCoplanarPoints(rs,ii,ri),s[1].setFromCoplanarPoints(Ye,ri,oi),s[2].setFromCoplanarPoints(oi,gr,as),s[3].setFromCoplanarPoints(gr,ii,rs),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(oi,ri,ii),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Vo.copy(e.geometry.boundingSphere.center),Vo.applyMatrix4(e.matrixWorld),t.containsPoint(Vo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?Z.copy(M[M.length-1]):Z.identity())}function n(R){const F=new qs,S=new _t,P=new _t,H=new _t;let N=!0,V=!1;const st=R.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(R){if(!(!R.sheet||!R.sheet.cssRules||!R.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Ic=Math.sqrt(X);F=Ic*F,S=Ic*S,K=F*F,B=S*S}const tt=K*E+B*A,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Gt=vt*F*pt/S,Ne=-vt*S*J/F,ei=Math.cos(P)*Gt-Math.sin(P)*Ne+(V.x+it.x)/2,Ro=Math.sin(P)*Gt+Math.cos(P)*Ne+(V.y+it.y)/2,fr=a(1,0,(J-Gt)/F,(pt-Ne)/S),Md=a((J-Gt)/F,(pt-Ne)/S,(-J-Gt)/F,(-pt-Ne)/S)%(Math.PI*2);R.currentPath.absellipse(ei,Ro,F,S,fr,fr+Md,N===0,P)}function a(R,F,S,P){const H=R*S+F*P,N=Math.sqrt(R*R+F*F)*Math.sqrt(S*S+P*P);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*P-F*S<0&&(V=-V),V}function c(R){const F=w(R.getAttribute("x")||0),S=w(R.getAttribute("y")||0),P=w(R.getAttribute("rx")||R.getAttribute("ry")||0),H=w(R.getAttribute("ry")||R.getAttribute("rx")||0),N=w(R.getAttribute("width")),V=w(R.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+P,S),st.lineTo(F+N-P,S),(P!==0||H!==0)&&st.bezierCurveTo(F+N-P*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(P!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-P*it,S+V,F+N-P,S+V),st.lineTo(F+P,S+V),(P!==0||H!==0)&&st.bezierCurveTo(F+P*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(P!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+P*it,S,F+P,S),st}function l(R){function F(N,V,it){const st=w(V),nt=w(it);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new qs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!0,P}function u(R){function F(N,V,it){const st=w(V),nt=w(it);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new qs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!1,P}function h(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),P=w(R.getAttribute("r")||0),H=new Fo;H.absarc(F,S,P,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),P=w(R.getAttribute("rx")||0),H=w(R.getAttribute("ry")||0),N=new Fo;N.absellipse(F,S,P,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(R){const F=w(R.getAttribute("x1")||0),S=w(R.getAttribute("y1")||0),P=w(R.getAttribute("x2")||0),H=w(R.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(P,H),N.currentPath.autoClose=!1,N}function _(R,F){F=Object.assign({},F);let S={};if(R.hasAttribute("class")){const V=R.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(M[M.length-1]),Z.copy(F),M.push(F),F}function y(R){const F=new gn,S=U;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const P=w(R.getAttribute("x")),H=w(R.getAttribute("y"));F.translate(P,H)}if(R.hasAttribute("transform")){const P=R.getAttribute("transform").split(")");for(let H=P.length-1;H>=0;H--){const N=P[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),Y.identity().rotate(J),G.multiplyMatrices(Y,W),W.identity().translate(pt,K),S.multiplyMatrices(W,G)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function k(R,F){function S(N){j.set(N.x,N.y,1).applyMatrix3(F),N.set(j.x,j.y)}const P=T(F),H=R.subPaths;for(let N=0,V=H.length;N=1||G<0||G>1)return null;if(M===0&&W===0){for(let z=0;z<2;z++)if(o(z===0?b:w,m,v),n.loc==s.ORIGIN){const j=z===0?b:w;return{x:j.x,y:j.y,t:n.t}}else if(n.loc==s.BETWEEN){const j=+(g+n.t*(y-g)).toPrecision(10),Z=+(x+n.t*(C-x)).toPrecision(10);return{x:j,y:Z,t:n.t}}return null}else{for(let Z=0;Z<2;Z++)if(o(Z===0?b:w,m,v),n.loc==s.ORIGIN){const Q=Z===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const z=+(g+Y*(y-g)).toPrecision(10),j=+(x+Y*(C-x)).toPrecision(10);return{x:z,y:j,t:Y}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,k=m.y-v.y,T=w*k-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*k<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)I.t<=O.t+Number.EPSILON&&I.t>=O.t-Number.EPSILON)===void 0&&(b.push(O),w.push(new _t(O.x,O.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,k)=>y.point.x-k.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const k=[new _t(b,y.y),new _t(w,y.y)],T=c(k,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const x=[],C=[];T.forEach(U=>{U.identifier===m.identifier?x.push(U):C.push(U)});const O=x[0].point.x,I=[];let M=0;for(;M0&&I[I.length-1]===C[M].identifier?I.pop():I.push(C[M].identifier),M++;if(I.push(m.identifier),g==="evenodd"){const U=I.length%2===0,W=I[I.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,Y=null;for(let G=0;G{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let k=0;kb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:wf.isClockWise(v),identifier:u++,boundingBox:new bf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new su;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],k=new Fo;k.curves=y.curves,b.holes.push(k)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(Ti.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new Cf;return c.setAttribute("position",new Dr(r,3)),c.setAttribute("normal",new Dr(o,3)),c.setAttribute("uv",new Dr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,k=new _t,T=new _t,x=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const O=t.length;if(O<2)return 0;const I=t[0].equals(t[O-1]);let M,U=t[0],W;const Y=e.strokeWidth/2,G=1/(O-1);let z=0,j,Z,Q,et,R=!1,F=0,S=c*3,P=c*2;H(t[0],t[1],l).multiplyScalar(Y),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Gf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=It(),[f,m]=D.useState(!1),[v,b]=D.useReducer((k,{object:T,shift:x})=>T===void 0?[]:Array.isArray(T)?T:x?k.includes(T)?k.filter(C=>C!==T):[T,...k]:k[0]===T?[]:[T],[]);D.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=D.useCallback(k=>{k.stopPropagation(),b({object:o([k.object])[0],shift:t&&k.shiftKey})},[]),g=D.useCallback(k=>!f&&b({}),[f]),y=D.useRef(null);return D.useEffect(()=>{if(!i||!t)return;const k=new Hf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const x=new _t,C=new _t,O=new _t,I=_().events.enabled,M=d==null?void 0:d.enabled;let U=!1;function W(R,F){const{offsetX:S,offsetY:P}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(P/N)*2+1)}function Y(R){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${R.clientX}px`,T.style.top=`${R.clientY}px`,T.style.width="0px",T.style.height="0px",x.x=R.clientX,x.y=R.clientY}function G(R){O.x=Math.max(x.x,R.clientX),O.y=Math.max(x.y,R.clientY),C.x=Math.min(x.x,R.clientX),C.y=Math.min(x.y,R.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${O.x-C.x}px`,T.style.height=`${O.y-C.y}px`}function z(){if(U){var R;d&&(d.enabled=M),c({enabled:I}),U=!1,(R=T.parentElement)==null||R.removeChild(T)}}function j(R){R.shiftKey&&(Y(R),W(R,k.startPoint))}let Z=[];function Q(R){if(U){G(R),W(R,k.endPoint);const F=k.select().sort(S=>S.uuid).filter(S=>S.isMesh);Gf(F,Z)||(Z=F,b({object:o(F)}))}}function et(R){U&&z()}return document.addEventListener("pointerdown",j,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",j),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),D.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),D.createElement(Yf.Provider,{value:v},e))}const iu=D.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=D.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),D.createElement("group",Oe({ref:fo([a,o])},r))}),zc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=It(n=>n.gl),s=po(_o,zc(i)?Object.values(i):i);if(D.useLayoutEffect(()=>{t==null||t(s)},[t]),D.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),zc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>po.preload(_o,i);Ks.clear=i=>po.clear(_o,i);const Zf=D.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=po(Ti,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>Ti.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return D.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),D.createElement("object3D",Oe({ref:l},c),D.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return D.createElement(D.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Ti.createShapes(d).map((m,v)=>D.createElement("mesh",Oe({key:v},o),D.createElement("shapeGeometry",{args:[m]}),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:oa,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>D.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:oa,depthWrite:!1},r)))))})))});/*! +import{r as D,e as Oe,j as L,t as Xl,w as Ut,x as Tt,F as ys,z as Ql,v as Us,E as Kl,D as er,V as Nd,G as Ra,a6 as Jl,y as tu,a7 as Rd,K as Fd,b as Ld,M as gr,a8 as Vd,a9 as Ud,aa as jd,Q as zd,ab as Bd,a2 as qd}from"./index-10403053.js";import{u as It,a as be,m as _o,b as go,e as Fa,L as Wd,c as Hd,d as Gd,f as Yd,g as eu,H as sr,t as su,P as $d,T as Zd,h as Xd,i as Qd,C as Kd,j as Jd,k as tf}from"./index-05851a42.js";import{P as ni,c as Nc,H as ef,E as sf,_ as qt,d as qe,u as We,e as oe,f as La,g as yo,T as Rc,h as nf,i as rf,j as of,k as af,l as cf,m as lf,D as uf,I as hf,n as df,o as ff,p as Fc,q as pf,r as mf,R as _f,s as gf,t as yf,N as vf,v as xf,O as kf,w as Tf}from"./index-067fb061.js";import{T as wf}from"./TextareaAutosize-d45e3579.js";import{D as yr,F as bf,V as at,L as Cf,a as Sf,M as gn,b as _t,S as Ef,B as Of,c as nu,P as Lo,d as Af,e as Nr,f as qs,T as nr,g as aa,h as Mf,i as Lc,j as ir,Q as Df,G as Pf,C as vo,k as If,l as iu,W as Nf,m as Rf,n as Ff,E as Lf,o as Vf,p as Uf,q as Xn,r as jf,s as Vc,t as Uc}from"./three.module-26d3b3c0.js";import{u as zf}from"./index-20063332.js";import{C as Bf}from"./ClipLoader-1133ece3.js";function qf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Wf=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jc=Wf?D.useEffect:D.useLayoutEffect;function Hf(i){const t=typeof i=="function"?qf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=D.useReducer(m=>m+1,0),o=t.getState(),a=D.useRef(o),c=D.useRef(s),l=D.useRef(n),u=D.useRef(!1),h=D.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),jc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=D.useRef(o);jc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return D.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let ii=0;const Gf=Hf(i=>(yr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-ii)/(s-ii)*100})},yr.onLoad=()=>{i({active:!1})},yr.onError=t=>i(e=>({errors:[...e.errors,t]})),yr.onProgress=(t,e,s)=>{e===s&&(ii=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-ii)/(s-ii)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Yf=i=>`Loading ${i.toFixed(2)}%`;function $f({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Yf,initialState:r=o=>o}){const{active:o,progress:a}=Gf(),c=D.useRef(0),l=D.useRef(0),u=D.useRef(null),[h,d]=D.useState(r(o));D.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=D.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?D.createElement("div",{style:{...vr.container,opacity:o?1:0,...i}},D.createElement("div",null,D.createElement("div",{style:{...vr.inner,...t}},D.createElement("div",{style:{...vr.bar,transform:`scaleX(${a/100})`,...e}}),D.createElement("span",{ref:u,style:{...vr.data,...s}})))):null}const vr={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"}},Vo=new bf,Uo=new at,yn=new at,Re=new at,rs=new at,Ye=new at,os=new at,as=new at,ri=new at,oi=new at,ai=new at,xr=new at,ci=new at,li=new at,ui=new at;class Zf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Vo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ye.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ci.copy(rs).sub(Re),li.copy(Ye).sub(Re),ui.copy(os).sub(Re),ci.normalize(),li.normalize(),ui.normalize(),ci.multiplyScalar(this.deep),li.multiplyScalar(this.deep),ui.multiplyScalar(this.deep),ci.add(Re),li.add(Re),ui.add(Re);var s=Vo.planes;s[0].setFromCoplanarPoints(Re,rs,Ye),s[1].setFromCoplanarPoints(Re,Ye,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(ui,li,ci),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ye.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ri.set(n,r,1),oi.set(o,r,1),ai.set(o,a,1),xr.set(n,a,1),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ri.unproject(this.camera),oi.unproject(this.camera),ai.unproject(this.camera),xr.unproject(this.camera);var s=Vo.planes;s[0].setFromCoplanarPoints(rs,ri,oi),s[1].setFromCoplanarPoints(Ye,oi,ai),s[2].setFromCoplanarPoints(ai,xr,as),s[3].setFromCoplanarPoints(xr,ri,rs),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(ai,oi,ri),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Uo.copy(e.geometry.boundingSphere.center),Uo.applyMatrix4(e.matrixWorld),t.containsPoint(Uo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?Z.copy(M[M.length-1]):Z.identity())}function n(R){const F=new qs,S=new _t,I=new _t,H=new _t;let N=!0,U=!1;const st=R.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}U=!1}return F}function r(R){if(!(!R.sheet||!R.sheet.cssRules||!R.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Ic=Math.sqrt(X);F=Ic*F,S=Ic*S,K=F*F,q=S*S}const tt=K*E+q*A,lt=(K*q-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Gt=vt*F*pt/S,Ne=-vt*S*J/F,si=Math.cos(I)*Gt-Math.sin(I)*Ne+(U.x+it.x)/2,Fo=Math.sin(I)*Gt+Math.cos(I)*Ne+(U.y+it.y)/2,_r=a(1,0,(J-Gt)/F,(pt-Ne)/S),Id=a((J-Gt)/F,(pt-Ne)/S,(-J-Gt)/F,(-pt-Ne)/S)%(Math.PI*2);R.currentPath.absellipse(si,Fo,F,S,_r,_r+Id,N===0,I)}function a(R,F,S,I){const H=R*S+F*I,N=Math.sqrt(R*R+F*F)*Math.sqrt(S*S+I*I);let U=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*I-F*S<0&&(U=-U),U}function c(R){const F=w(R.getAttribute("x")||0),S=w(R.getAttribute("y")||0),I=w(R.getAttribute("rx")||R.getAttribute("ry")||0),H=w(R.getAttribute("ry")||R.getAttribute("rx")||0),N=w(R.getAttribute("width")),U=w(R.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+I,S),st.lineTo(F+N-I,S),(I!==0||H!==0)&&st.bezierCurveTo(F+N-I*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+U-H),(I!==0||H!==0)&&st.bezierCurveTo(F+N,S+U-H*it,F+N-I*it,S+U,F+N-I,S+U),st.lineTo(F+I,S+U),(I!==0||H!==0)&&st.bezierCurveTo(F+I*it,S+U,F,S+U-H*it,F,S+U-H),st.lineTo(F,S+H),(I!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+I*it,S,F+I,S),st}function l(R){function F(N,U,it){const st=w(U),nt=w(it);H===0?I.moveTo(st,nt):I.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new qs;let H=0;return R.getAttribute("points").replace(S,F),I.currentPath.autoClose=!0,I}function u(R){function F(N,U,it){const st=w(U),nt=w(it);H===0?I.moveTo(st,nt):I.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new qs;let H=0;return R.getAttribute("points").replace(S,F),I.currentPath.autoClose=!1,I}function h(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),I=w(R.getAttribute("r")||0),H=new Lo;H.absarc(F,S,I,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),I=w(R.getAttribute("rx")||0),H=w(R.getAttribute("ry")||0),N=new Lo;N.absellipse(F,S,I,H,0,Math.PI*2);const U=new qs;return U.subPaths.push(N),U}function p(R){const F=w(R.getAttribute("x1")||0),S=w(R.getAttribute("y1")||0),I=w(R.getAttribute("x2")||0),H=w(R.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(I,H),N.currentPath.autoClose=!1,N}function _(R,F){F=Object.assign({},F);let S={};if(R.hasAttribute("class")){const U=R.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(M[M.length-1]),Z.copy(F),M.push(F),F}function y(R){const F=new gn,S=V;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const I=w(R.getAttribute("x")),H=w(R.getAttribute("y"));F.translate(I,H)}if(R.hasAttribute("transform")){const I=R.getAttribute("transform").split(")");for(let H=I.length-1;H>=0;H--){const N=I[H].trim();if(N==="")continue;const U=N.indexOf("("),it=N.length;if(U>0&&U=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),B.identity().translate(-pt,-K),Y.identity().rotate(J),G.multiplyMatrices(Y,B),B.identity().translate(pt,K),S.multiplyMatrices(B,G)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function k(R,F){function S(N){j.set(N.x,N.y,1).applyMatrix3(F),N.set(j.x,j.y)}const I=T(F),H=R.subPaths;for(let N=0,U=H.length;N=1||G<0||G>1)return null;if(M===0&&B===0){for(let z=0;z<2;z++)if(o(z===0?b:w,m,v),n.loc==s.ORIGIN){const j=z===0?b:w;return{x:j.x,y:j.y,t:n.t}}else if(n.loc==s.BETWEEN){const j=+(g+n.t*(y-g)).toPrecision(10),Z=+(x+n.t*(C-x)).toPrecision(10);return{x:j,y:Z,t:n.t}}return null}else{for(let Z=0;Z<2;Z++)if(o(Z===0?b:w,m,v),n.loc==s.ORIGIN){const Q=Z===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const z=+(g+Y*(y-g)).toPrecision(10),j=+(x+Y*(C-x)).toPrecision(10);return{x:z,y:j,t:Y}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,k=m.y-v.y,T=w*k-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*k<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)P.t<=O.t+Number.EPSILON&&P.t>=O.t-Number.EPSILON)===void 0&&(b.push(O),w.push(new _t(O.x,O.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,k)=>y.point.x-k.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const k=[new _t(b,y.y),new _t(w,y.y)],T=c(k,m.boundingBox,v);T.sort((V,B)=>V.point.x-B.point.x);const x=[],C=[];T.forEach(V=>{V.identifier===m.identifier?x.push(V):C.push(V)});const O=x[0].point.x,P=[];let M=0;for(;M0&&P[P.length-1]===C[M].identifier?P.pop():P.push(C[M].identifier),M++;if(P.push(m.identifier),g==="evenodd"){const V=P.length%2===0,B=P[P.length-2];return{identifier:m.identifier,isHole:V,for:B}}else if(g==="nonzero"){let V=!0,B=null,Y=null;for(let G=0;G{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let k=0;kb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:Ef.isClockWise(v),identifier:u++,boundingBox:new Of(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new nu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],k=new Lo;k.curves=y.curves,b.holes.push(k)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(wi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new Af;return c.setAttribute("position",new Nr(r,3)),c.setAttribute("normal",new Nr(o,3)),c.setAttribute("uv",new Nr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,k=new _t,T=new _t,x=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const O=t.length;if(O<2)return 0;const P=t[0].equals(t[O-1]);let M,V=t[0],B;const Y=e.strokeWidth/2,G=1/(O-1);let z=0,j,Z,Q,et,R=!1,F=0,S=c*3,I=c*2;H(t[0],t[1],l).multiplyScalar(Y),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Xf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=It(),[f,m]=D.useState(!1),[v,b]=D.useReducer((k,{object:T,shift:x})=>T===void 0?[]:Array.isArray(T)?T:x?k.includes(T)?k.filter(C=>C!==T):[T,...k]:k[0]===T?[]:[T],[]);D.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=D.useCallback(k=>{k.stopPropagation(),b({object:o([k.object])[0],shift:t&&k.shiftKey})},[]),g=D.useCallback(k=>!f&&b({}),[f]),y=D.useRef(null);return D.useEffect(()=>{if(!i||!t)return;const k=new Zf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const x=new _t,C=new _t,O=new _t,P=_().events.enabled,M=d==null?void 0:d.enabled;let V=!1;function B(R,F){const{offsetX:S,offsetY:I}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(I/N)*2+1)}function Y(R){var F;d&&(d.enabled=!1),c({enabled:!1}),V=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${R.clientX}px`,T.style.top=`${R.clientY}px`,T.style.width="0px",T.style.height="0px",x.x=R.clientX,x.y=R.clientY}function G(R){O.x=Math.max(x.x,R.clientX),O.y=Math.max(x.y,R.clientY),C.x=Math.min(x.x,R.clientX),C.y=Math.min(x.y,R.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${O.x-C.x}px`,T.style.height=`${O.y-C.y}px`}function z(){if(V){var R;d&&(d.enabled=M),c({enabled:P}),V=!1,(R=T.parentElement)==null||R.removeChild(T)}}function j(R){R.shiftKey&&(Y(R),B(R,k.startPoint))}let Z=[];function Q(R){if(V){G(R),B(R,k.endPoint);const F=k.select().sort(S=>S.uuid).filter(S=>S.isMesh);Xf(F,Z)||(Z=F,b({object:o(F)}))}}function et(R){V&&z()}return document.addEventListener("pointerdown",j,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",j),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),D.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),D.createElement(Qf.Provider,{value:v},e))}const ru=D.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=D.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),D.createElement("group",Oe({ref:_o([a,o])},r))}),zc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=It(n=>n.gl),s=go(nr,zc(i)?Object.values(i):i);if(D.useLayoutEffect(()=>{t==null||t(s)},[t]),D.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),zc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>go.preload(nr,i);Ks.clear=i=>go.clear(nr,i);const Jf=D.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=go(wi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>wi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return D.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),D.createElement("object3D",Oe({ref:l},c),D.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return D.createElement(D.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&wi.createShapes(d).map((m,v)=>D.createElement("mesh",Oe({key:v},o),D.createElement("shapeGeometry",{args:[m]}),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:aa,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>D.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:aa,depthWrite:!1},r)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu * Released under the MIT License. - */const ct={LEFT:1,RIGHT:2,MIDDLE:4},q=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}),vn={NONE:0,IN:1,OUT:-1};function Ws(i){return i.isPerspectiveCamera}function ws(i){return i.isOrthographicCamera}const xn=Math.PI*2,Bc=Math.PI/2,ru=1e-5,ui=Math.PI/180;function Fe(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=ru){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function Wc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,b=d,w=n*s,g=w*w,y=p*p+_*_+f*f;if(y>g){const Y=Math.sqrt(y);p=p/Y*w,_=_/Y*w,f=f/Y*w}u=i.x-p,h=i.y-_,d=i.z-f;const k=(e.x+a*p)*r,T=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*k)*l,e.y=(e.y-a*T)*l,e.z=(e.z-a*x)*l,o.x=u+(p+k)*l,o.y=h+(_+T)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,I=b-i.z,M=o.x-m,U=o.y-v,W=o.z-b;return C*M+O*U+I*W>0&&(o.x=m,o.y=v,o.z=b,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-b)/r),o}function Uo(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function jo(i,t){return ws(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class Xf{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=q.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=vn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ot.Vector3,this._focalOffsetVelocity=new ot.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,k)=>{let T,x;if(Ws(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*ui,I=C.length()*Math.tan(O*.5);T=this.truckSpeed*g*I/this._elementRect.height,x=this.truckSpeed*y*I/this._elementRect.height}else if(ws(this._camera)){const C=this._camera;T=g*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(T,0,!0),this.forward(-x,!0)):k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(T,x,!0)},this._rotateInternal=(g,y)=>{const k=xn*this.azimuthRotateSpeed*g/this._elementRect.height,T=xn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(k,T,!0)},this._dollyInternal=(g,y,k)=>{const T=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*T,O=Fe(C,this.minDistance,this.maxDistance),I=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(I,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,k)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,k)=>{const T=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*T;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,k))},typeof ot>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new ot.Quaternion().setFromUnitVectors(this._camera.up,xr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=q.NONE,this._target=new ot.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ot.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ot.Spherical().setFromVector3(ht.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 ot.Vector3,new ot.Vector3,new ot.Vector3,new ot.Vector3],this._updateNearPlaneCorners(),this._boundary=new ot.Box3(new ot.Vector3(-1/0,-1/0,-1/0),new ot.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 ot.Vector2,this.mouseButtons={left:q.ROTATE,middle:q.DOLLY,right:q.TRUCK,wheel:Ws(this._camera)?q.DOLLY:ws(this._camera)?q.ZOOM:q.NONE},this.touches={one:q.TOUCH_ROTATE,two:Ws(this._camera)?q.TOUCH_DOLLY_TRUCK:ws(this._camera)?q.TOUCH_ZOOM_TRUCK:q.NONE,three:q.TOUCH_TRUCK};const s=new ot.Vector2,n=new ot.Vector2,r=new ot.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const k={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(k),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,f(g)},a=g=>{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 T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}const k={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(k),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,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,k=this._lockedPointer||this._findPointerById(y);if(k){if(k.clientX=g.clientX,k.clientY=g.clientY,k.deltaX=g.movementX,k.deltaY=g.movementY,this._state=0,g.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&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=q.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=q.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=q.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===q.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),O=g.clientX/C.width,I=g.clientY/C.height;if(Othis._interactiveArea.right||Ithis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===q.ROTATE||this.mouseButtons.wheel===q.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=Kf?-1:-3,k=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),T=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case q.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case q.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case q.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case q.DOLLY:{this._dollyInternal(-k,T,x),this._isUserControllingDolly=!0;break}case q.ZOOM:{this._zoomInternal(-k,T,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===aa.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),k=this._findPointerById(y);k&&this._disposePointer(k),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}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Uo(this._activePointers,ce),this._getClientRect(this._elementRect),s.copy(ce),n.copy(ce),this._activePointers.length>=2){const k=ce.x-this._activePointers[1].clientX,T=ce.y-this._activePointers[1].clientY,x=Math.sqrt(k*k+T*T);r.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,O=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,O)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.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&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.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&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&q.DOLLY)===q.DOLLY||(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&q.ZOOM)===q.ZOOM||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Uo(this._activePointers,ce);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,k=y?-y.deltaX:n.x-ce.x,T=y?-y.deltaY:n.y-ce.y;if(n.copy(ce),((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(k,T),this._isUserControllingRotate=!0),(this._state&q.DOLLY)===q.DOLLY||(this._state&q.ZOOM)===q.ZOOM){const x=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,O=this.dollyDragInverted?-1:1;(this._state&q.DOLLY)===q.DOLLY?(this._dollyInternal(O*T*vr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*T*vr,x,C),this._isUserControllingZoom=!0)}if((this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE){const x=ce.x-this._activePointers[1].clientX,C=ce.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),I=r.y-O;r.set(0,O);const M=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,U=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET?(this._dollyInternal(I*vr,M,U),this._isUserControllingDolly=!0):(this._zoomInternal(I*vr,M,U),this._isUserControllingZoom=!0)}((this._state&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(k,T,!1),this._isUserControllingTruck=!0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(k,T,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Uo(this._activePointers,ce),n.copy(ce),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",b),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const b=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),Jf&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},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",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),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",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==q.NONE&&(this._state=q.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(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(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Fe(t.width,0,1),this._interactiveArea.height=Fe(t.height,0,1),this._interactiveArea.x=Fe(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Fe(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Fe(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Fe(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0,this._dollyToNoClamp(Fe(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(fi).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Fe(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),$e.setFromMatrixColumn(this._camera.matrix,0),Ze.setFromMatrixColumn(this._camera.matrix,1),$e.multiplyScalar(t),Ze.multiplyScalar(-e);const n=ht.copy($e).add(Ze),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?Tn.copy(t):Tn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=qc(this._sphericalEnd.theta,Bc),h=qc(this._sphericalEnd.phi,Bc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=Zc.setFromUnitVectors(d,zo),_=gt(Math.abs(d.y),1);_&&p.multiply(qo.setFromAxisAngle(xr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=$c.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(zo,d),_&&p.premultiply(qo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(Ws(this._camera)){const b=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(b,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(ws(this._camera)){const b=this._camera,w=b.right-b.left,g=b.top-b.bottom,y=s?Math.max(w/m.x,g/m.y):Math.min(w/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof ot.Sphere?Bo.copy(t):aa.createBoundingSphere(t,Bo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),Ws(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(ws(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,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||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);Ce.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=kn.set(u,h,d),b=mt.set(a,c,l);pi.setFromVector3(b.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const w=pi.theta-Ce.theta,g=pi.phi-Ce.phi,y=pi.radius-Ce.radius;this._sphericalEnd.set(Ce.radius+y*p,Ce.phi+g*p,Ce.theta+w*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const k=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(k)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Fe(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),$e.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ze.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Hs.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);$e.multiplyScalar(o.x),Ze.multiplyScalar(o.y),Hs.multiplyScalar(o.z),ht.copy($e).add(Ze).add(Hs),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){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(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new ot.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(jo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*ui,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,kn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ws(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*ui,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(ws(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||jo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(fi);Wo.lookAt(Hc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(Wo);const o=kn.addVectors(this._target,r);kr.set(o,s),kr.far=this._spherical.radius+1;const a=kr.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){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(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new ot.Sphere){const s=e,n=s.center;Tn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&Tn.expandByObject(o)}),Tn.getCenter(n);let r=0;return t.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{D.useMemo(()=>{Ho.install({THREE:Sf}),Ra({CameraControlsImpl:Ho})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=It(y=>y.camera),h=It(y=>y.gl),d=It(y=>y.invalidate),p=It(y=>y.events),_=It(y=>y.setEvents),f=It(y=>y.set),m=It(y=>y.get),v=It(y=>y.performance),b=e||u,w=s||p.connected||h.domElement,g=D.useMemo(()=>new Ho(b),[b]);return be((y,k)=>{g.enabled&&g.update(k)},-1),D.useEffect(()=>(g.connect(w),()=>void g.disconnect()),[w,g]),D.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},k=x=>{r&&r(x)},T=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",k),g.addEventListener("controlend",T),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",k),g.removeEventListener("controlend",T)}},[g,r,o,d,_,c,a]),D.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),D.createElement("primitive",Oe({ref:t,object:g},l))});si.func.isRequired,si.arrayOf(si.oneOfType([si.element,si.func])).isRequired;const Xc=new sr,Qc=new sr,Tr=[],mi=new nu;class e0 extends Of{constructor(){super(),this.color=new go("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;mi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,Xc),Qc.multiplyMatrices(n,Xc),mi.matrixWorld=Qc,s.material instanceof Af?mi.material.side=s.material.side:mi.material.side=s.material[0].side,mi.raycast(t,Tr);for(let o=0,a=Tr.length;o{D.useMemo(()=>Ra({PositionMesh:e0}),[]);const n=D.useRef(),{subscribe:r,getParent:o}=D.useContext(i||au);return D.useLayoutEffect(()=>r(n),[]),D.createElement("positionMesh",Oe({instance:o(),instanceKey:n,ref:fo([s,n])},e),t)}),n0=D.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=D.useState(()=>{const m=D.createContext(null);return{context:m,instance:D.forwardRef((v,b)=>D.createElement(cu,Oe({context:m},v,{ref:b})))}}),c=D.useRef(null),[l,u]=D.useState([]),[[h,d]]=D.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});D.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;be(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(b=>b.current!==m.current)))}),[]);return D.createElement("instancedMesh",Oe({userData:{instances:l},matrixAutoUpdate:!1,ref:fo([r,c]),args:[null,null,0],raycast:()=>null},n),D.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Lc}),D.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Lc}),typeof i=="function"?D.createElement(o.Provider,{value:f},i(a)):D.createElement(au.Provider,{value:f},i))}),lu=D.createContext(null),i0=D.forwardRef((i,t)=>{D.useMemo(()=>Ra({SegmentObject:r0}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=D.useState([]),[c]=D.useState(()=>new zd),[l]=D.useState(()=>new Bd),[u]=D.useState(()=>new qd),[h]=D.useState(()=>new _t(512,512)),[d]=D.useState(()=>Array(e*6).fill(0)),[p]=D.useState(()=>Array(e*6).fill(0)),_=D.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return be(()=>{for(let m=0;mi instanceof at?i:new at(...typeof i=="number"?[i,i,i]:i),o0=D.forwardRef(({color:i,start:t,end:e},s)=>{const n=D.useContext(lu);if(!n)throw"Segment must used inside Segments component.";const r=D.useRef(null);return D.useLayoutEffect(()=>n.subscribe(r),[]),D.createElement("segmentObject",{ref:fo([r,s]),color:i,start:nl(t),end:nl(e)})});function a0({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return D.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new Mf(128);new Df(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function c0({pixelated:i}){const t=It(o=>o.gl),e=It(o=>o.internal.active),s=It(o=>o.performance.current),n=It(o=>o.viewport.initialDpr),r=It(o=>o.setDpr);return D.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),D.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function l0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return D.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),D.useEffect(()=>t({enabled:e===1}),[e]),null}const uu=D.createContext(null);function u0({children:i,enabled:t=!0}){const[e,s]=D.useState([]),n=D.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(uu.Provider,{value:n,children:i})}function h0({enabled:i=!1,children:t,...e}){const s=D.useRef(null),n=D.useContext(uu);return D.useEffect(()=>{if(n&&i){let r=!1;const o=[];if(s.current.traverse(a=>{a.type==="Mesh"&&o.push(a),n.selected.indexOf(a)===-1&&(r=!0)}),r)return n.select(a=>[...a,...o]),()=>{n.select(a=>a.filter(c=>!o.includes(c)))}}},[i,t,n]),L.jsx("group",{ref:s,...e,children:t})}const d0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Os=Zl(i=>({...d0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),f0=()=>{const[i,t]=D.useState(""),e=D.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Us(g=>g),[o]=Ql(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=tr(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Dd(g=>g.resetAiSummaryAnswer),[h,d]=D.useState([]);D.useEffect(()=>{r&&d(b(r).slice(0,4))},[r]),D.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},b=g=>{const y=[...g];let k=y.length-1;for(;k>0;){const T=Math.floor(Math.random()*(k+1));[y[k],y[T]]=[y[T],y[k]],k-=1}return y},w=!!i&&i.trim().length>0;return L.jsxs(_0,{children:["Ideas have shapes",L.jsxs(m0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(p0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(g0,{color:"secondary",disabled:!w,onClick:()=>p(i),variant:"contained",children:w?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Nc,{})]}):L.jsx(Nc,{})})]}),h.length>0&&L.jsx(v0,{children:h.map(g=>L.jsxs(x0,{onClick:()=>m(g),children:[L.jsx(Qd,{}),g]},g))}),L.jsx(y0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx(Kd,{}),children:"Explore Graph"})]})},p0=Ut(vf).attrs({maxRows:3})` + */const ct={LEFT:1,RIGHT:2,MIDDLE:4},W=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}),vn={NONE:0,IN:1,OUT:-1};function Ws(i){return i.isPerspectiveCamera}function ws(i){return i.isOrthographicCamera}const xn=Math.PI*2,Bc=Math.PI/2,ou=1e-5,hi=Math.PI/180;function Fe(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=ou){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function Wc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,b=d,w=n*s,g=w*w,y=p*p+_*_+f*f;if(y>g){const Y=Math.sqrt(y);p=p/Y*w,_=_/Y*w,f=f/Y*w}u=i.x-p,h=i.y-_,d=i.z-f;const k=(e.x+a*p)*r,T=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*k)*l,e.y=(e.y-a*T)*l,e.z=(e.z-a*x)*l,o.x=u+(p+k)*l,o.y=h+(_+T)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,P=b-i.z,M=o.x-m,V=o.y-v,B=o.z-b;return C*M+O*V+P*B>0&&(o.x=m,o.y=v,o.z=b,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-b)/r),o}function jo(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function zo(i,t){return ws(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class t0{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=W.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=vn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ot.Vector3,this._focalOffsetVelocity=new ot.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,k)=>{let T,x;if(Ws(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*hi,P=C.length()*Math.tan(O*.5);T=this.truckSpeed*g*P/this._elementRect.height,x=this.truckSpeed*y*P/this._elementRect.height}else if(ws(this._camera)){const C=this._camera;T=g*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(T,0,!0),this.forward(-x,!0)):k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(T,x,!0)},this._rotateInternal=(g,y)=>{const k=xn*this.azimuthRotateSpeed*g/this._elementRect.height,T=xn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(k,T,!0)},this._dollyInternal=(g,y,k)=>{const T=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*T,O=Fe(C,this.minDistance,this.maxDistance),P=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(P,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,k)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,k)=>{const T=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*T;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,k))},typeof ot>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new ot.Quaternion().setFromUnitVectors(this._camera.up,wr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=W.NONE,this._target=new ot.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ot.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ot.Spherical().setFromVector3(ht.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 ot.Vector3,new ot.Vector3,new ot.Vector3,new ot.Vector3],this._updateNearPlaneCorners(),this._boundary=new ot.Box3(new ot.Vector3(-1/0,-1/0,-1/0),new ot.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 ot.Vector2,this.mouseButtons={left:W.ROTATE,middle:W.DOLLY,right:W.TRUCK,wheel:Ws(this._camera)?W.DOLLY:ws(this._camera)?W.ZOOM:W.NONE},this.touches={one:W.TOUCH_ROTATE,two:Ws(this._camera)?W.TOUCH_DOLLY_TRUCK:ws(this._camera)?W.TOUCH_ZOOM_TRUCK:W.NONE,three:W.TOUCH_TRUCK};const s=new ot.Vector2,n=new ot.Vector2,r=new ot.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const k={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(k),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,f(g)},a=g=>{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 T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}const k={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(k),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,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,k=this._lockedPointer||this._findPointerById(y);if(k){if(k.clientX=g.clientX,k.clientY=g.clientY,k.deltaX=g.movementX,k.deltaY=g.movementY,this._state=0,g.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&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=W.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=W.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=W.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===W.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),O=g.clientX/C.width,P=g.clientY/C.height;if(Othis._interactiveArea.right||Pthis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===W.ROTATE||this.mouseButtons.wheel===W.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=s0?-1:-3,k=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),T=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case W.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case W.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case W.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case W.DOLLY:{this._dollyInternal(-k,T,x),this._isUserControllingDolly=!0;break}case W.ZOOM:{this._zoomInternal(-k,T,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===ca.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),k=this._findPointerById(y);k&&this._disposePointer(k),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}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(jo(this._activePointers,ce),this._getClientRect(this._elementRect),s.copy(ce),n.copy(ce),this._activePointers.length>=2){const k=ce.x-this._activePointers[1].clientX,T=ce.y-this._activePointers[1].clientY,x=Math.sqrt(k*k+T*T);r.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,O=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,O)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.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&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.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&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&W.DOLLY)===W.DOLLY||(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&W.ZOOM)===W.ZOOM||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,jo(this._activePointers,ce);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,k=y?-y.deltaX:n.x-ce.x,T=y?-y.deltaY:n.y-ce.y;if(n.copy(ce),((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(k,T),this._isUserControllingRotate=!0),(this._state&W.DOLLY)===W.DOLLY||(this._state&W.ZOOM)===W.ZOOM){const x=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,O=this.dollyDragInverted?-1:1;(this._state&W.DOLLY)===W.DOLLY?(this._dollyInternal(O*T*Tr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*T*Tr,x,C),this._isUserControllingZoom=!0)}if((this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE){const x=ce.x-this._activePointers[1].clientX,C=ce.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),P=r.y-O;r.set(0,O);const M=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,V=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET?(this._dollyInternal(P*Tr,M,V),this._isUserControllingDolly=!0):(this._zoomInternal(P*Tr,M,V),this._isUserControllingZoom=!0)}((this._state&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(k,T,!1),this._isUserControllingTruck=!0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(k,T,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{jo(this._activePointers,ce),n.copy(ce),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",b),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const b=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),n0&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},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",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),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",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==W.NONE&&(this._state=W.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(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(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Fe(t.width,0,1),this._interactiveArea.height=Fe(t.height,0,1),this._interactiveArea.x=Fe(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Fe(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Fe(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Fe(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0,this._dollyToNoClamp(Fe(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(pi).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Fe(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),$e.setFromMatrixColumn(this._camera.matrix,0),Ze.setFromMatrixColumn(this._camera.matrix,1),$e.multiplyScalar(t),Ze.multiplyScalar(-e);const n=ht.copy($e).add(Ze),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?Tn.copy(t):Tn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=qc(this._sphericalEnd.theta,Bc),h=qc(this._sphericalEnd.phi,Bc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=Zc.setFromUnitVectors(d,Bo),_=gt(Math.abs(d.y),1);_&&p.multiply(Wo.setFromAxisAngle(wr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=$c.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(Bo,d),_&&p.premultiply(Wo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(Ws(this._camera)){const b=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(b,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(ws(this._camera)){const b=this._camera,w=b.right-b.left,g=b.top-b.bottom,y=s?Math.max(w/m.x,g/m.y):Math.min(w/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof ot.Sphere?qo.copy(t):ca.createBoundingSphere(t,qo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),Ws(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(ws(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,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||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);Ce.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=kn.set(u,h,d),b=mt.set(a,c,l);mi.setFromVector3(b.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const w=mi.theta-Ce.theta,g=mi.phi-Ce.phi,y=mi.radius-Ce.radius;this._sphericalEnd.set(Ce.radius+y*p,Ce.phi+g*p,Ce.theta+w*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const k=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(k)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Fe(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),$e.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ze.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Hs.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);$e.multiplyScalar(o.x),Ze.multiplyScalar(o.y),Hs.multiplyScalar(o.z),ht.copy($e).add(Ze).add(Hs),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){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(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new ot.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(zo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*hi,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,kn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ws(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*hi,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(ws(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||zo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(pi);Ho.lookAt(Hc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(Ho);const o=kn.addVectors(this._target,r);br.set(o,s),br.far=this._spherical.radius+1;const a=br.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){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(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new ot.Sphere){const s=e,n=s.center;Tn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&Tn.expandByObject(o)}),Tn.getCenter(n);let r=0;return t.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{D.useMemo(()=>{Go.install({THREE:Mf}),Fa({CameraControlsImpl:Go})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=It(y=>y.camera),h=It(y=>y.gl),d=It(y=>y.invalidate),p=It(y=>y.events),_=It(y=>y.setEvents),f=It(y=>y.set),m=It(y=>y.get),v=It(y=>y.performance),b=e||u,w=s||p.connected||h.domElement,g=D.useMemo(()=>new Go(b),[b]);return be((y,k)=>{g.enabled&&g.update(k)},-1),D.useEffect(()=>(g.connect(w),()=>void g.disconnect()),[w,g]),D.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},k=x=>{r&&r(x)},T=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",k),g.addEventListener("controlend",T),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",k),g.removeEventListener("controlend",T)}},[g,r,o,d,_,c,a]),D.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),D.createElement("primitive",Oe({ref:t,object:g},l))});ni.func.isRequired,ni.arrayOf(ni.oneOfType([ni.element,ni.func])).isRequired;const Xc=new ir,Qc=new ir,Cr=[],_i=new iu;class r0 extends Pf{constructor(){super(),this.color=new vo("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;_i.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,Xc),Qc.multiplyMatrices(n,Xc),_i.matrixWorld=Qc,s.material instanceof If?_i.material.side=s.material.side:_i.material.side=s.material[0].side,_i.raycast(t,Cr);for(let o=0,a=Cr.length;o{D.useMemo(()=>Fa({PositionMesh:r0}),[]);const n=D.useRef(),{subscribe:r,getParent:o}=D.useContext(i||cu);return D.useLayoutEffect(()=>r(n),[]),D.createElement("positionMesh",Oe({instance:o(),instanceKey:n,ref:_o([s,n])},e),t)}),a0=D.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=D.useState(()=>{const m=D.createContext(null);return{context:m,instance:D.forwardRef((v,b)=>D.createElement(lu,Oe({context:m},v,{ref:b})))}}),c=D.useRef(null),[l,u]=D.useState([]),[[h,d]]=D.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});D.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;be(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(b=>b.current!==m.current)))}),[]);return D.createElement("instancedMesh",Oe({userData:{instances:l},matrixAutoUpdate:!1,ref:_o([r,c]),args:[null,null,0],raycast:()=>null},n),D.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Lc}),D.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Lc}),typeof i=="function"?D.createElement(o.Provider,{value:f},i(a)):D.createElement(cu.Provider,{value:f},i))}),uu=D.createContext(null),c0=D.forwardRef((i,t)=>{D.useMemo(()=>Fa({SegmentObject:l0}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=D.useState([]),[c]=D.useState(()=>new Wd),[l]=D.useState(()=>new Hd),[u]=D.useState(()=>new Gd),[h]=D.useState(()=>new _t(512,512)),[d]=D.useState(()=>Array(e*6).fill(0)),[p]=D.useState(()=>Array(e*6).fill(0)),_=D.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return be(()=>{for(let m=0;mi instanceof at?i:new at(...typeof i=="number"?[i,i,i]:i),u0=D.forwardRef(({color:i,start:t,end:e},s)=>{const n=D.useContext(uu);if(!n)throw"Segment must used inside Segments component.";const r=D.useRef(null);return D.useLayoutEffect(()=>n.subscribe(r),[]),D.createElement("segmentObject",{ref:_o([r,s]),color:i,start:nl(t),end:nl(e)})});function h0({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return D.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new Nf(128);new Rf(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function d0({pixelated:i}){const t=It(o=>o.gl),e=It(o=>o.internal.active),s=It(o=>o.performance.current),n=It(o=>o.viewport.initialDpr),r=It(o=>o.setDpr);return D.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),D.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function f0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return D.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),D.useEffect(()=>t({enabled:e===1}),[e]),null}const hu=D.createContext(null);function p0({children:i,enabled:t=!0}){const[e,s]=D.useState([]),n=D.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(hu.Provider,{value:n,children:i})}function m0({enabled:i=!1,children:t,...e}){const s=D.useRef(null),n=D.useContext(hu);return D.useEffect(()=>{if(n&&i){let r=!1;const o=[];if(s.current.traverse(a=>{a.type==="Mesh"&&o.push(a),n.selected.indexOf(a)===-1&&(r=!0)}),r)return n.select(a=>[...a,...o]),()=>{n.select(a=>a.filter(c=>!o.includes(c)))}}},[i,t,n]),L.jsx("group",{ref:s,...e,children:t})}const _0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Os=Xl(i=>({..._0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),g0=()=>{const[i,t]=D.useState(""),e=D.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Us(g=>g),[o]=Kl(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=er(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Nd(g=>g.resetAiSummaryAnswer),[h,d]=D.useState([]);D.useEffect(()=>{r&&d(b(r).slice(0,4))},[r]),D.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},b=g=>{const y=[...g];let k=y.length-1;for(;k>0;){const T=Math.floor(Math.random()*(k+1));[y[k],y[T]]=[y[T],y[k]],k-=1}return y},w=!!i&&i.trim().length>0;return L.jsxs(x0,{children:["Ideas have shapes",L.jsxs(v0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(y0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(k0,{color:"secondary",disabled:!w,onClick:()=>p(i),variant:"contained",children:w?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Nc,{})]}):L.jsx(Nc,{})})]}),h.length>0&&L.jsx(w0,{children:h.map(g=>L.jsxs(b0,{onClick:()=>m(g),children:[L.jsx(ef,{}),g]},g))}),L.jsx(T0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx(sf,{}),children:"Explore Graph"})]})},y0=Ut(wf).attrs({maxRows:3})` background: ${Tt.BG1}; max-width: 700px; width: 700px; @@ -38,7 +38,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a margin: 13px; overflow-y: hidden; } -`,m0=Ut(ys)` +`,v0=Ut(ys)` position: relative; margin-top: 30px; background: ${Tt.BG1}; @@ -51,7 +51,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a outline: none; border-radius: 12px; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,_0=Ut(ys)` +`,x0=Ut(ys)` background: #16161de3; position: absolute; left: 0; @@ -66,7 +66,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a font-weight: 700; line-height: 16px; font-family: 'Barlow'; -`,g0=Ut(Xl)` +`,k0=Ut(Ql)` && { position: absolute; bottom: 16px; @@ -85,21 +85,21 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a width: 11px; height: 11px; } -`,y0=Ut(Xl)` +`,T0=Ut(Ql)` && { position: absolute; bottom: 20px; right: 20px; border-radius: 16px; } -`,v0=Ut.div` +`,w0=Ut.div` display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; max-width: 702px; width: 100%; -`,x0=Ut.div` +`,b0=Ut.div` background: ${Tt.BG1}; color: ${Tt.white}; padding: 15px 12px; @@ -128,9 +128,9 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a path { fill: ${Tt.modalWhiteOverlayBg}; } -`,wi=new at(0,0,0),il=100,k0=600,T0=2e3,Go={x:172.7392402058252,y:-239.04675366094037,z:-2e3},hu="14.8.49",rl=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),ol=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),ca=(i,t)=>({startTime:t,type:"setValue",value:i}),du=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),fu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),On=i=>i.type==="exponentialRampToValue",Lr=i=>i.type==="linearRampToValue",bs=i=>On(i)||Lr(i),La=i=>i.type==="setValue",ls=i=>i.type==="setValueCurve",Vr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:bs(n)||La(n)?n.value:ls(n)?n.values[n.values.length-1]:fu(e,Vr(i,t-1,n.startTime,s),n)},al=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:bs(e)?[e.endTime,e.value]:La(e)?[e.startTime,e.value]:ls(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Vr(i,t-1,e.startTime,n)],la=i=>i.type==="cancelAndHold",ua=i=>i.type==="cancelScheduledValues",Ts=i=>la(i)||ua(i)?i.cancelTime:On(i)||Lr(i)?i.endTime:i.startTime,cl=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),w0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},b0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return w0(s,n)},wr=i=>i.type==="setTarget";class C0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=Ts(t);if(la(t)||ua(t)){const s=this._automationEvents.findIndex(r=>ua(t)&&ls(r)?r.startTime+r.duration>=e:Ts(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),la(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&bs(n)){if(r!==void 0&&wr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:ls(r)?r.startTime+r.duration:Ts(r),a=r===void 0?this._defaultValue:ls(r)?r.values[r.values.length-1]:r.value,c=On(n)?cl(e,o,a,n):ll(e,o,a,n),l=On(n)?rl(c,e,this._currenTime):ol(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&wr(r)&&this._automationEvents.push(ca(this.getValue(e),e)),r!==void 0&&ls(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hTs(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&ls(n)&&Ts(n)+n.duration>e)return!1;const r=On(t)?rl(t.value,t.endTime,this._currenTime):Lr(t)?ol(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(ls(t)&&e+t.duration>Ts(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>Ts(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];wr(n)&&s.unshift(ca(Vr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>Ts(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&wr(r)&&(s===void 0||!bs(s)||s.insertTime>t))return fu(t,Vr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&La(r)&&(s===void 0||!bs(s)))return r.value;if(r!==void 0&&ls(r)&&(s===void 0||!bs(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),E0=i=>({cancelTime:i,type:"cancelScheduledValues"}),O0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),A0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),M0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),D0=()=>new DOMException("","AbortError"),P0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},I0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Vn=new WeakSet,pu=new WeakMap,Va=new WeakMap,mu=new WeakMap,Ua=new WeakMap,vo=new WeakMap,_u=new WeakMap,ha=new WeakMap,da=new WeakMap,fa=new WeakMap,gu={construct(){return gu}},R0=i=>{try{const t=new Proxy(i,gu);new t}catch{return!1}return!0},ul=/^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]*);?/,hl=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(ul);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(ul)}return[e.join(";"),s]},dl=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},fl=i=>{if(!R0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},F0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const b=l.get(_);if(b!==void 0){const y=b.get(f);if(y!==void 0)return y}const w=r(_),g=w.audioWorklet===void 0?n(f).then(([y,k])=>{const[T,x]=hl(y,k),C=`${T};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} -})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(k,T)=>{if(k.trim()==="")throw t();const x=da.get(w);if(x!==void 0){if(x.has(k))throw t();fl(T),dl(T.parameterDescriptors),x.set(k,T)}else fl(T),dl(T.parameterDescriptors),da.set(w,new Map([[k,T]]))},w.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,k],T])=>{const x=p+1;p=x;const[C,O]=hl(y,k),W=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} -})(${T?"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{${T?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${T?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,Y=new Blob([W],{type:"application/javascript; charset=utf-8"}),G=URL.createObjectURL(Y);return w.audioWorklet.addModule(G,m).then(()=>{if(a(w))return w;const z=o(w);return z.audioWorklet.addModule(G,m).then(()=>z)}).then(z=>{if(c===null)throw new SyntaxError;try{new c(z,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(G))});return b===void 0?l.set(_,new Map([[f,g]])):b.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},ze=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},xo=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},yu=(i,t,e,s)=>{const n=ze(i,t),r=xo(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},nr=i=>ze(_u,i),Un=i=>{if(Vn.has(i))throw new Error("The AudioNode is already stored.");Vn.add(i),nr(i).forEach(t=>t(!0))},vu=i=>"port"in i,ir=i=>{if(!Vn.has(i))throw new Error("The AudioNode is not stored.");Vn.delete(i),nr(i).forEach(t=>t(!1))},pa=(i,t)=>{!vu(i)&&t.every(e=>e.size===0)&&ir(i)},L0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,b)=>{const{activeInputs:w,passiveInputs:g}=r(f),{outputs:y}=r(_),k=a(_),T=x=>{const C=c(f),O=c(_);if(x){const I=yu(g,_,m,v);i(w,_,I,!1),!b&&!h(_)&&e(O,C,m,v),d(f)&&Un(f)}else{const I=s(w,_,m,v);t(g,v,I,!1),!b&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&pa(f,w);else{const U=p.get(f);U!==void 0&&clearTimeout(U),p.set(f,setTimeout(()=>{u(f)&&pa(f,w)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(k.add(T),u(_)?i(w,_,[m,v,T],!0):t(g,v,[_,m,T],!0),!0):!1}},V0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},U0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},j0=i=>(t,e)=>{i(t).add(e)},z0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},B0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...z0,...c},h=s(l,u),d=r(l)?t():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,e()}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,e()}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)}},se=(i,t)=>i.context===t,q0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(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=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Ur=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ss=()=>new DOMException("","IndexSizeError"),ja=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ss():s}})(i.getChannelData)},W0={numberOfChannels:1},H0=(i,t,e,s,n,r,o,a)=>{let c=null;return class xu{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...W0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),ja(_)):t(Ur,()=>Ur(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===xu.prototype||i.has(u)}}},le=-34028234663852886e22,ne=-le,ds=i=>Vn.has(i),G0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Y0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...G0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,le)}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"){Un(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),ds(this)&&ir(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},$0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={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=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Z0=i=>"playbackRate"in i,X0=i=>"frequency"in i&&"gain"in i,Q0=i=>"offset"in i,K0=i=>!("frequency"in i)&&"gain"in i,J0=i=>"detune"in i&&"frequency"in i,tp=i=>"pan"in i,re=i=>ze(pu,i),rr=i=>ze(mu,i),ma=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||ma(r,[...t,i])}));const s=Z0(i)?[i.playbackRate]:vu(i)?Array.from(i.parameters.values()):X0(i)?[i.Q,i.detune,i.frequency,i.gain]:Q0(i)?[i.offset]:K0(i)?[i.gain]:J0(i)?[i.detune,i.frequency]:tp(i)?[i.pan]:[];for(const n of s){const r=rr(n);r!==void 0&&r.activeInputs.forEach(([o])=>ma(o,t))}ds(i)&&ir(i)},ku=i=>{ma(i.destination,[])},ep=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),sp=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!ep(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 e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,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 _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}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 t()}):(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()),ku(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(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?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},np=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();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}},ip=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},rp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),k=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),T=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const I=()=>{if(x)return;x=!0;const Y=s(l,256,9,0);Y.onaudioprocess=({inputBuffer:G})=>{const z=[r(G,y,0),r(G,y,1),r(G,y,2),r(G,y,3),r(G,y,4),r(G,y,5)];z.some((Z,Q)=>Z!==C[Q])&&(u.setOrientation(...z),C=z);const j=[r(G,y,6),r(G,y,7),r(G,y,8)];j.some((Z,Q)=>Z!==O[Q])&&(u.setPosition(...j),O=j)},k.connect(Y)},M=Y=>G=>{G!==C[Y]&&(C[Y]=G,u.setOrientation(...C))},U=Y=>G=>{G!==O[Y]&&(O[Y]=G,u.setPosition(...O))},W=(Y,G,z)=>{const j=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G});j.connect(k,0,Y),j.start(),Object.defineProperty(j.offset,"defaultValue",{get(){return G}});const Z=i({context:c},T,j.offset,ne,le);return a(Z,"value",Q=>()=>Q.call(Z),Q=>et=>{try{Q.call(Z,et)}catch(R){if(R.code!==9)throw R}I(),T&&z(et)}),Z.cancelAndHoldAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelAndHoldAtTime),Z.cancelScheduledValues=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelScheduledValues),Z.exponentialRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.exponentialRampToValueAtTime),Z.linearRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.linearRampToValueAtTime),Z.setTargetAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setTargetAtTime),Z.setValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueAtTime),Z.setValueCurveAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueCurveAtTime),Z};return{forwardX:W(0,0,M(0)),forwardY:W(1,0,M(1)),forwardZ:W(2,-1,M(2)),positionX:W(6,0,U(0)),positionY:W(7,0,U(1)),positionZ:W(8,0,U(2)),upX:W(3,0,M(3)),upY:W(4,1,M(4)),upZ:W(5,0,M(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:b,upY:w,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return b},get upY(){return w},get upZ(){return g}}},jr=i=>"context"in i,or=i=>jr(i[0]),fn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},pl=(i,t,[e,s],n)=>{fn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},ml=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):fn(r,[e,s],o=>o[0]===e,n)},Xn=i=>"inputs"in i,zr=(i,t,e,s)=>{if(Xn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},Tu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},op=(i,t,e)=>xo(i,s=>s[0]===t&&s[1]===e),wu=(i,t)=>{if(!nr(i).delete(t))throw new Error("Missing the expected event listener.")},bu=(i,t,e)=>{const s=ze(i,t),n=xo(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},Br=(i,t,e,s)=>{Xn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(Va,i),Oi=i=>ze(Ua,i),on=i=>ha.has(i),Pr=i=>!Vn.has(i),_l=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),Yo=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},qr=i=>"context"in i,ap=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=qr(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{qr(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},cp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=rr(t),{outputs:o}=re(i),a=nr(i),c=l=>{const u=Dt(i),h=Oi(t);if(l){const d=bu(r,i,e);pl(n,i,d,!1),!s&&!on(i)&&u.connect(h,e)}else{const d=op(n,i,e);ml(r,d,!1),!s&&!on(i)&&u.disconnect(h,e)}};return fn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),ds(i)?pl(n,i,[e,c],!0):ml(r,[i,e,c],!0),!0):!1},lp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=Tu(n[s],i,e);return o===null?[yu(r,i,e,s)[2],!1]:[o[2],!0]},up=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=rr(t),r=Tu(s,i,e);return r===null?[bu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=lp(i,e,s,n);if(r!==null&&(wu(i,r),o&&!t&&!on(i)&&Br(Dt(i),Dt(e),s,n)),ds(e)){const{activeInputs:a}=re(e);pa(e,a)}},Ba=(i,t,e,s)=>{const[n,r]=up(i,e,s);n!==null&&(wu(i,n),r&&!t&&!on(i)&&Dt(i).disconnect(Oi(e),s))},hp=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)or(n)?za(i,t,...n):Ba(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},dp=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(or(r)?za(i,t,...r):Ba(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},fp=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(or(o)?za(i,t,...o):Ba(i,t,...o),r.outputs.delete(o),o[0]))},pp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,b,w,g){super(w),this._context=v,this._nativeAudioNode=w;const y=u(v);h(y)&&e(_l,()=>_l(y,f))!==!0&&ap(w),Va.set(this,w),_u.set(this,new Set),v.state!=="closed"&&b&&Un(this),i(this,g,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,b=0,w=0){if(b<0||b>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(jr(v)){const x=Dt(v);try{const O=zr(this._nativeAudioNode,x,b,w),I=Pr(this);(y||I)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!I&&Pr(v)&&Un(v)}catch(O){throw O.code===12?r():O}if(t(this,v,b,w,y)){const O=c([this],v);Yo(O,s(y))}return v}const k=Oi(v);if(k.name==="playbackRate"&&k.maxValue===1024)throw o();try{this._nativeAudioNode.connect(k,b),(y||Pr(this))&&this._nativeAudioNode.disconnect(k,b)}catch(x){throw x.code===12?r():x}if(cp(this,v,b,y)){const x=c([this],v);Yo(x,s(y))}}disconnect(v,b,w){let g;const y=u(this._context),k=_(y);if(v===void 0)g=hp(this,k);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=dp(this,k,v)}else{if(b!==void 0&&(b<0||b>=this.numberOfOutputs)||jr(v)&&w!==void 0&&(w<0||w>=v.numberOfInputs))throw n();if(g=fp(this,k,v,b,w),g.length===0)throw r()}for(const T of g){const x=c([this],T);Yo(x,a)}}},mp=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const b=f.value,w=new C0(b),g=_?s(w):null,y={get defaultValue(){return b},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(k){f.value=k,y.setValueAtTime(k,p.context.currentTime)},cancelAndHoldAtTime(k){if(typeof f.cancelAndHoldAtTime=="function")g===null&&w.flush(p.context.currentTime),w.add(n(k)),f.cancelAndHoldAtTime(k);else{const T=Array.from(w).pop();g===null&&w.flush(p.context.currentTime),w.add(n(k));const x=Array.from(w).pop();f.cancelScheduledValues(k),T!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?f.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?f.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&f.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(k){return g===null&&w.flush(p.context.currentTime),w.add(r(k)),f.cancelScheduledValues(k),y},exponentialRampToValueAtTime(k,T){if(k===0)throw new RangeError;if(!Number.isFinite(T)||T<0)throw new RangeError;const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(o(k,T)),f.exponentialRampToValueAtTime(k,T),y},linearRampToValueAtTime(k,T){const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(a(k,T)),f.linearRampToValueAtTime(k,T),y},setTargetAtTime(k,T,x){return g===null&&w.flush(p.context.currentTime),w.add(c(k,T,x)),f.setTargetAtTime(k,T,x),y},setValueAtTime(k,T){return g===null&&w.flush(p.context.currentTime),w.add(l(k,T)),f.setValueAtTime(k,T),y},setValueCurveAtTime(k,T,x){const C=k instanceof Float32Array?k:new Float32Array(k);if(h!==null&&h.name==="webkitAudioContext"){const O=T+x,I=p.context.sampleRate,M=Math.ceil(T*I),U=Math.floor(O*I),W=U-M,Y=new Float32Array(W);for(let z=0;z({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class Cu{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const gp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},yp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var b;const w=a(f),g=c(w),y=u({...gp,...v});d(y);const k=da.get(w),T=k==null?void 0:k.get(m),x=g||w.state!=="closed"?w:(b=o(w))!==null&&b!==void 0?b:w,C=n(x,g?null:f.baseLatency,l,m,T,y),O=g?s(m,y,T):null;super(f,!0,C,O);const I=[];C.parameters.forEach((U,W)=>{const Y=e(this,g,U);I.push([W,Y])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Cu(I),g&&i(w,this);const{activeInputs:M}=r(this);h(C,M)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Wr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const Su=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},Hr=(i,t)=>{const e=[];for(let s=0;s{const e=ze(fa,i),s=Dt(t);return ze(e,s)},xp=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await vp(e,i),p=Hr(s.numberOfInputs,s.channelCount),_=Hr(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{Wr(t,f,v,c+b,m)});for(let v=0;vh.activeInputs[g].size===0?[]:w),b=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let w=0,g=0;w(m,v,b)=>{const w=new WeakMap;let g=null;const y=async(k,T)=>{let x=u(k),C=null;const O=se(x,T),I=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=I.reduce((G,z)=>G+z,0),U=n(T,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),W=[];for(let G=0;G{const et=new d(Z,Math.ceil(k.context.length/128)*128,T.sampleRate),R=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),P=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,z+j)});for(let H=0;H_(k,et,H))),f(et)})(),T,v,I,b,l)}const M=await g,U=e(T,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[W,Y,G]=C;M!==null&&(U.buffer=M,U.start(0)),U.connect(W);for(let z=0,j=0;zclass extends _{constructor(y,k){super(y,k),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(T,x)=>i(this,T,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,k,T){return new e({length:k,numberOfChannels:y,sampleRate:T})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(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,k){return new p(this,{feedback:k,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,k,T={disableNormalization:!1}){return new v(this,{...T,imag:k,real:y})}createStereoPanner(){return new b(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,k,T){return l(this._nativeContext,y).then(x=>(typeof k=="function"&&k(x),x),x=>{throw typeof T=="function"&&T(x),x})}},wp={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},bp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...wp,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,le),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),le),this._nativeBiquadFilterNode=p,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()}},Cp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(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=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(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 n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Sp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},Ep={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},Op=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...Ep,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},Ap=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Mp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},Dp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Mp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},Pp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Ip=i=>(t,e,s)=>i(e,t,s),Np=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return qr(e)?r.connect(e,0,n):r.connect(e,0)},Rp=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},Fp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Lp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Fp,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,le),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"){Un(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),ds(this)&&ir(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Vp=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Up=i=>t=>(i[0]=t,i[0]),jp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},zp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...jp,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(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,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Bp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},qp=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},Wp=()=>new DOMException("","DataCloneError"),gl=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},Hp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(gl(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await gl(d)}catch{}},v=b=>{f(b),m()};try{p.decodeAudioData(d,b=>{typeof b.copyFromChannel!="function"&&(l(b),ja(b)),i.add(b),m().then(()=>_(b))},b=>{v(b===null?s():b)})}catch(b){v(b)}})},Gp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(or(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},Yp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},$p=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Yp,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},Zp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},Xp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),Qp=i=>(t,e)=>{i(t).delete(e)},Kp=i=>"delayTime"in i,Jp=(i,t,e)=>function s(n,r){const o=jr(r)?r:e(i,r);if(Kp(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},br=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},tm=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?br(i,t,e).disconnect():qr(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?br(i,t,s).disconnect(e,0):br(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):br(i,t,s).disconnect(e,0),em={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},sm=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...em,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.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,n()}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,n()}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}},nm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(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=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(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 n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},im=()=>new DOMException("","EncodingError"),rm=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),om=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},am=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},cm=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},lm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},um=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...lm,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,le)}get gain(){return this._gain}},hm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},dm=(i,t)=>e=>t(i,e),fm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},pm=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},mm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},_m=i=>t=>i.get(t),Zt=()=>new DOMException("","InvalidStateError"),gm=i=>t=>{const e=i.get(t);if(e===void 0)throw Zt();return e},ym=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},vm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},ko=()=>new DOMException("","InvalidAccessError"),xm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw ko();return t.call(i,e,s,n)})(i.getFrequencyResponse)},km={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},Tm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...km,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),xm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Eu=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return wm(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},Cm=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(or(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},Sm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Em=(i,t)=>e=>i.has(e)||t(e),Om=(i,t)=>e=>i.has(e)||t(e),Am=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Mm=i=>t=>i!==null&&t instanceof i,Dm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,Pm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Im=(i,t)=>e=>i(e)||t(e),Nm=i=>t=>i!==null&&t instanceof i,Rm=i=>i!==null&&i.isSecureContext,Fm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},Lm={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Vm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Lm,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Um=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},jm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},zm=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,vo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(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"?r(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}},Ai=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Bm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Yt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},yl=i=>typeof i.getFloatTimeDomainData=="function",qm=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Yt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(yl,()=>yl(n))||qm(n),n},Hm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Gm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Zt();t.call(i,s,n,r),e=!0}})(i.start)},qa=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},Wa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},Ym=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Yt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Gm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||qa(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||Wa(p),i(h,p),p},$m=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,Zm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},Xm=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,Qm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},Km=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=b=>{b.type==="error"?(Object.defineProperties(b,{type:{value:"processorerror"}}),m(b)):m(new ErrorEvent(f[0],{...b}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return Qm(u),t(r,o,l,u)},Ou=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Jm=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),t_=async(i,t)=>{const e=await Jm(t);return new i(e)},e_=(i,t,e,s)=>{let n=fa.get(i);n===void 0&&(n=new WeakMap,fa.set(i,n));const r=t_(e,s);return n.set(t,r),r},s_=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(B=>B<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const b=m.channelCount*m.numberOfInputs,w=v.reduce((B,A)=>B+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(b+g>6||w>6)throw c();const y=new MessageChannel,k=[],T=[];for(let B=0;BB===void 0?0:B},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?le:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,b+g)}),O=Ou(_,p.sampleRate),I=a(p,O,b+g,Math.max(1,w)),M=n(p,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),U=[];for(let B=0;B{const E=x[A];return E.connect(C,0,b+A),E.start(0),[B,E.offset]}));C.connect(I);let Y=m.channelInterpretation,G=null;const z=m.numberOfOutputs===0?[I]:U,j={get bufferSize(){return O},get channelCount(){return m.channelCount},set channelCount(B){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(B){throw e()},get channelInterpretation(){return Y},set channelInterpretation(B){for(const A of k)A.channelInterpretation=B;Y=B},get context(){return I.context},get inputs(){return k},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return G},set onprocessorerror(B){typeof G=="function"&&j.removeEventListener("processorerror",G),G=typeof B=="function"?B:null,typeof G=="function"&&j.addEventListener("processorerror",G)},get parameters(){return W},get port(){return y.port2},addEventListener(...B){return I.addEventListener(B[0],B[1],B[2])},connect:i.bind(null,z),disconnect:l.bind(null,z),dispatchEvent(...B){return I.dispatchEvent(B[0])},removeEventListener(...B){return I.removeEventListener(B[0],B[1],B[2])}},Z=new Map;y.port1.addEventListener=(B=>(...A)=>{if(A[0]==="message"){const E=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(E!==null){const X=Z.get(A[1]);X!==void 0?A[1]=X:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},Z.set(E,A[1]))}}return B.call(y.port1,A[0],A[1],A[2])})(y.port1.addEventListener),y.port1.removeEventListener=(B=>(...A)=>{if(A[0]==="message"){const E=Z.get(A[1]);E!==void 0&&(Z.delete(A[1]),A[1]=E)}return B.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Q=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Q,set:B=>{typeof Q=="function"&&y.port1.removeEventListener("message",Q),Q=typeof B=="function"?B:null,typeof Q=="function"&&(y.port1.addEventListener("message",Q),y.port1.start())}}),f.prototype.port=y.port1;let et=null;e_(p,j,f,m).then(B=>et=B);const F=Hr(m.numberOfInputs,m.channelCount),S=Hr(m.numberOfOutputs,v),P=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((B,{name:A})=>({...B,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&I.disconnect(M);for(let B=0,A=0;B{if(et!==null){const E=h(j);for(let X=0;X{Wr(B,P,tt,b+lt,X)});for(let tt=0;tt{if(E[Gt].size>0)return V.set(Gt,O/128),vt;const ei=V.get(Gt);return ei===void 0?[]:(vt.every(Ro=>Ro.every(fr=>fr===0))&&(ei===1?V.delete(Gt):V.set(Gt,ei-1)),vt)});H=u(p.currentTime+X/p.sampleRate,p.sampleRate,()=>et.process(tt,S,P));for(let vt=0,Gt=0;vtI.connect(st).connect(p.destination),J=()=>{I.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&I.connect(M);for(let B=0,A=0;B{H&&(nt(),N()),it=!1};return nt(),d(j,pt,K)},Au=(i,t)=>{const e=i.createBiquadFilter();return Yt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},n_=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Yt(n,s),n},i_=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Zt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Zt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Zt()}})},ar=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Yt(e,t),i_(e),e},r_=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Yt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||qa(a),t(n,()=>n(r))||Wa(a),i(r,a),a},Qn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),o_=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),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(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},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(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Qn(h,l),d,p)},a_=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Yt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Mu=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Yt(e,t),Ft(e,t,"delayTime"),e},c_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Yt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Yt(e,t),Ft(e,t,"gain"),e},l_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Yt(n,s),n};function u_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function h_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function vl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=h_(e,t),e[0]+=i[s];return e}const d_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Ou(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,O=x.outputBuffer,I=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),p_=(i,t)=>{const e=i.createMediaStreamDestination();return Yt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},m_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},__=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},g_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,y_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Yt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||qa(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||Wa(c),i(o,c),c},v_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Yt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},x_=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:b,panningModel:w,positionX:g,positionY:y,positionZ:k,refDistance:T,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Yt(O,C);const I={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...I,channelInterpretation:"speakers",numberOfInputs:6}),U=s(u,{...C,gain:1}),W=s(u,{...I,gain:1}),Y=s(u,{...I,gain:0}),G=s(u,{...I,gain:0}),z=s(u,{...I,gain:0}),j=s(u,{...I,gain:0}),Z=s(u,{...I,gain:0}),Q=n(u,256,6,1),et=r(u,{...I,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,b],F=[g,y,k];const S=new Float32Array(1);Q.onaudioprocess=({inputBuffer:V})=>{const it=[c(V,S,0),c(V,S,1),c(V,S,2)];it.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...it),R=it);const st=[c(V,S,3),c(V,S,4),c(V,S,5)];st.some((nt,J)=>nt!==F[J])&&(O.setPosition(...st),F=st)},Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Z.gain,"defaultValue",{get:()=>0});const P={get bufferSize(){},get channelCount(){return O.channelCount},set channelCount(V){if(V>2)throw o();U.channelCount=V,O.channelCount=V},get channelCountMode(){return O.channelCountMode},set channelCountMode(V){if(V==="max")throw o();U.channelCountMode=V,O.channelCountMode=V},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation(V){U.channelInterpretation=V,O.channelInterpretation=V},get coneInnerAngle(){return O.coneInnerAngle},set coneInnerAngle(V){O.coneInnerAngle=V},get coneOuterAngle(){return O.coneOuterAngle},set coneOuterAngle(V){O.coneOuterAngle=V},get coneOuterGain(){return O.coneOuterGain},set coneOuterGain(V){if(V<0||V>1)throw t();O.coneOuterGain=V},get context(){return O.context},get distanceModel(){return O.distanceModel},set distanceModel(V){O.distanceModel=V},get inputs(){return[U]},get maxDistance(){return O.maxDistance},set maxDistance(V){if(V<0)throw new RangeError;O.maxDistance=V},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},get orientationX(){return W.gain},get orientationY(){return Y.gain},get orientationZ(){return G.gain},get panningModel(){return O.panningModel},set panningModel(V){O.panningModel=V},get positionX(){return z.gain},get positionY(){return j.gain},get positionZ(){return Z.gain},get refDistance(){return O.refDistance},set refDistance(V){if(V<0)throw new RangeError;O.refDistance=V},get rolloffFactor(){return O.rolloffFactor},set rolloffFactor(V){if(V<0)throw new RangeError;O.rolloffFactor=V},addEventListener(...V){return U.addEventListener(V[0],V[1],V[2])},dispatchEvent(...V){return U.dispatchEvent(V[0])},removeEventListener(...V){return U.removeEventListener(V[0],V[1],V[2])}};h!==P.coneInnerAngle&&(P.coneInnerAngle=h),d!==P.coneOuterAngle&&(P.coneOuterAngle=d),p!==P.coneOuterGain&&(P.coneOuterGain=p),_!==P.distanceModel&&(P.distanceModel=_),f!==P.maxDistance&&(P.maxDistance=f),m!==P.orientationX.value&&(P.orientationX.value=m),v!==P.orientationY.value&&(P.orientationY.value=v),b!==P.orientationZ.value&&(P.orientationZ.value=b),w!==P.panningModel&&(P.panningModel=w),g!==P.positionX.value&&(P.positionX.value=g),y!==P.positionY.value&&(P.positionY.value=y),k!==P.positionZ.value&&(P.positionZ.value=k),T!==P.refDistance&&(P.refDistance=T),x!==P.rolloffFactor&&(P.rolloffFactor=x),(R[0]!==1||R[1]!==0||R[2]!==0)&&O.setOrientation(...R),(F[0]!==0||F[1]!==0||F[2]!==0)&&O.setPosition(...F);const H=()=>{U.connect(O),i(U,et,0,0),et.connect(W).connect(M,0,0),et.connect(Y).connect(M,0,1),et.connect(G).connect(M,0,2),et.connect(z).connect(M,0,3),et.connect(j).connect(M,0,4),et.connect(Z).connect(M,0,5),M.connect(Q).connect(u.destination)},N=()=>{U.disconnect(O),a(U,et,0,0),et.disconnect(W),W.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(Z),Z.disconnect(M),M.disconnect(Q),Q.disconnect(u.destination)};return l(Qn(P,O),H,N)},k_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},cr=(i,t,e,s)=>i.createScriptProcessor(t,e,s),T_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Yt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},w_=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;b[C]=Math.cos(O),w[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:b}),k=s(_,{...u,curve:a}),T=e(_,{...l,gain:0}),x=s(_,{...u,curve:w});return{connectGraph(){f.connect(g),f.connect(k.inputs===void 0?k:k.inputs[0]),f.connect(T),k.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(g.gain),x.connect(T.gain),g.connect(v,0,0),T.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(k.inputs===void 0?k:k.inputs[0]),f.disconnect(T),k.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(g.gain),x.disconnect(T.gain),g.disconnect(v,0,0),T.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),k=Math.floor(16385/2);for(let z=0;z<16385;z+=1)if(z>k){const j=(z-k)/(16384-k)*c;b[z]=Math.cos(j),w[z]=Math.sin(j),g[z]=0,y[z]=1}else{const j=z/(16384-k)*c;b[z]=1,w[z]=0,g[z]=Math.cos(j),y[z]=Math.sin(j)}const T=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:b}),O=e(_,{...l,gain:0}),I=s(_,{...u,curve:w}),M=s(_,{...u,curve:a}),U=e(_,{...l,gain:0}),W=s(_,{...u,curve:g}),Y=e(_,{...l,gain:0}),G=s(_,{...u,curve:y});return{connectGraph(){f.connect(T),f.connect(M.inputs===void 0?M:M.inputs[0]),T.connect(x,0),T.connect(O,0),T.connect(U,1),T.connect(Y,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(I.inputs===void 0?I:I.inputs[0]),m.connect(W.inputs===void 0?W:W.inputs[0]),m.connect(G.inputs===void 0?G:G.inputs[0]),C.connect(x.gain),I.connect(O.gain),W.connect(U.gain),G.connect(Y.gain),x.connect(v,0,0),U.connect(v,0,0),O.connect(v,0,1),Y.connect(v,0,1)},disconnectGraph(){f.disconnect(T),f.disconnect(M.inputs===void 0?M:M.inputs[0]),T.disconnect(x,0),T.disconnect(O,0),T.disconnect(U,1),T.disconnect(Y,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(I.inputs===void 0?I:I.inputs[0]),m.disconnect(W.inputs===void 0?W:W.inputs[0]),m.disconnect(G.inputs===void 0?G:G.inputs[0]),C.disconnect(x.gain),I.disconnect(O.gain),W.disconnect(U.gain),G.disconnect(Y.gain),x.disconnect(v,0,0),U.disconnect(v,0,0),O.disconnect(v,0,1),Y.disconnect(v,0,1)}}},p=(_,f,m,v,b)=>{if(f===1)return h(_,m,v,b);if(f===2)return d(_,m,v,b);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...b})=>{if(m==="max")throw n();const w=i(_,{...b,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...b,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:k,disconnectGraph:T}=p(_,f,g,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(M){g.channelCount!==M&&(C&&T(),{connectGraph:k,disconnectGraph:T}=p(_,M,g,y,w),C&&k()),g.channelCount=M},get channelCountMode(){return g.channelCountMode},set channelCountMode(M){if(M==="clamped-max"||M==="max")throw n();g.channelCountMode=M},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(M){g.channelInterpretation=M},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...M){return g.addEventListener(M[0],M[1],M[2])},dispatchEvent(...M){return g.dispatchEvent(M[0])},removeEventListener(...M){return g.removeEventListener(M[0],M[1],M[2])}};let C=!1;const O=()=>{k(),C=!0},I=()=>{T(),C=!1};return r(Qn(x,w),O,I)}},b_=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Yt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},C_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Yt(l,c),Yt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const b={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const k=y.length,T=new Float32Array(k+2-k%2),x=new Float32Array(k+2-k%2);T[0]=y[0],x[0]=-y[k-1];const C=Math.ceil((k+1)/2),O=(k+1)/2-1;for(let I=1;I{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Qn(b,p),w,g)},ae=()=>new DOMException("","NotSupportedError"),S_={numberOfChannels:1},E_=(i,t,e,s,n)=>class extends i{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}={...S_,...l},p=s(h,u,d);t(Ai,()=>Ai(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,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(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,ku(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},O_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},A_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...O_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,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"){Un(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),ds(this)&&ir(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},M_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={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=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(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=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},D_={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},P_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...D_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,le),this._orientationY=t(this,p,d.orientationY,ne,le),this._orientationZ=t(this,p,d.orientationZ,ne,le),this._positionX=t(this,p,d.positionX,ne,le),this._positionY=t(this,p,d.positionY,ne,le),this._positionZ=t(this,p,d.positionZ,ne,le),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}},I_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},b={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!w){const g={...b,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const I=new o(6,p.context.length,_.sampleRate),M=t(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(I.destination),h=(async()=>{const U=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(W,Y)=>{const G=e(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y===0?1:0});return await a(I,W,G.offset),G}));for(let W=0;W<6;W+=1)U[W].connect(M,0,W),U[W].start(0);return l(I)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const k=[];for(let I=0;IW!==T[Y])||U.some((W,Y)=>W!==x[Y])){T=M,x=U;const W=I/_.sampleRate;C.gain.setValueAtTime(0,W),C=s(_,{...v,gain:0}),O=n(_,{...b,orientationX:T[0],orientationY:T[1],orientationZ:T[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,W),y.connect(C).connect(O.inputs[0]),O.connect(f)}}return f}return w?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Xn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},N_={disableNormalization:!1},R_=(i,t,e,s)=>class Du{constructor(r,o){const a=t(r),c=s({...N_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Du.prototype||e.has(r)}},F_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),L_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},V_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},U_=(i,t,e,s)=>n=>i(Ai,()=>Ai(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),j_=i=>(t,e)=>{i.set(t,e)},z_=i=>(t,e)=>i.set(t,e),B_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),ja(u)):t(r,()=>r(u))||a(u),i.add(u),u)),q_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},W_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...q_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},H_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Xn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},G_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},Y_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=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 t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},$_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},Z_=()=>new DOMException("","UnknownError"),X_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},Q_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...X_,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),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 t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},K_=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},J_=()=>typeof window>"u"?null:window,tg=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},ng=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Pu=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Iu=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},lr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},ig=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),rg=i=>({...i,channelCount:i.numberOfOutputs}),og=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Nu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Nu(i,t,e+1e-7)}},ag=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},cg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},lg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Ha=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Ru=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ga=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},ug=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},hg=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Fu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Qn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Kn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},dg=P0(fn),fg=V0(fn),pg=Xp(xo),Lu=new WeakMap,mg=pm(Lu),He=Sp(new Map,new WeakMap),ts=J_(),Vu=Wm(He,ss),Ya=fm(re),Qt=L_(re,Ya,on),_g=q0(Vu,Dt,Qt),At=gm(vo),vs=g_(ts),wt=Nm(vs),Uu=new WeakMap,ju=om(Kn),ur=$m(ts),$a=Mm(ur),Za=Dm(ts),zu=Pm(ts),Mi=Xm(ts),Wt=pp(I0(pu),L0(dg,fg,zr,pg,Br,re,mg,nr,Dt,fn,ds,on,Pr),He,Cm(ha,Br,re,Dt,Oi,ds),ss,ko,ae,Gp(zr,ha,re,Dt,Oi,At,ds,wt),Jp(Uu,re,ze),ju,At,$a,Za,zu,wt,Mi),gg=B0(Wt,_g,ss,Vu,At,wt),Xa=new WeakSet,xl=Hm(ts),Bu=Up(new Uint32Array(1)),Qa=tg(Bu,ss),Ka=eg(Bu),qu=H0(Xa,He,ae,xl,vs,G_(xl),Qa,Ka),To=U0(me),Wu=V_(Ya,rr,on),ns=Ip(Wu),Jn=Ym(To,He,ag,cg,lg,Ha,Ru,Ga,hg,sg(lr),Fu),is=F_(mm(rr),Wu),yg=$0(ns,Jn,Dt,is,Qt),Ge=mp(N0(mu),Uu,Ua,_p,S0,E0,O0,A0,M0,ca,du,ur,Nu),vg=Y0(Wt,yg,Ge,Zt,Jn,At,wt,Kn),xg=np(Wt,ip,ss,Zt,Zm(me,lr),At,wt,Qt),kg=Cp(ns,Au,Dt,is,Qt),pn=z_(Lu),Tg=bp(Wt,Ge,kg,ko,Au,At,wt,pn),js=Bm(fn,Za),wg=ng(Zt,js),zs=n_(ur,wg),bg=Ap(zs,Dt,Qt),Cg=Op(Wt,bg,zs,At,wt),Sg=Pp(ar,Dt,Qt),Eg=Dp(Wt,Sg,ar,At,wt,rg),Og=o_(To,Jn,me,js),ti=r_(To,He,Og,Ha,Ga),Ag=Vp(ns,ti,Dt,is,Qt),Mg=Lp(Wt,Ge,Ag,ti,At,wt,Kn),Hu=a_(ae,lr),Dg=Bp(Hu,Dt,Qt),Pg=zp(Wt,Dg,Hu,At,wt,pn),Ig=Zp(ns,Mu,Dt,is,Qt),Ng=$p(Wt,Ge,Ig,Mu,At,wt,pn),Gu=c_(ae),Rg=nm(ns,Gu,Dt,is,Qt),Fg=sm(Wt,Ge,Rg,Gu,ae,At,wt,pn),Lg=hm(ns,me,Dt,is,Qt),Vg=um(Wt,Ge,Lg,me,At,wt),Ug=d_(ko,Zt,cr,ae),wo=U_(He,me,cr,$_(me,vs)),jg=bm(Jn,Dt,vs,Qt,wo),zg=l_(Ug),Bg=Tm(Wt,zg,jg,At,wt,pn),qg=rp(Ge,zs,ti,cr,ae,Pu,wt,lr),Yu=new WeakMap,Wg=zm(xg,qg,ju,wt,Yu,Kn),$u=y_(To,He,Ha,Ru,Ga,Fu),Hg=M_(ns,$u,Dt,is,Qt),Gg=A_(Wt,Ge,$u,Hg,At,wt,Kn),Zu=Rp(Jn),Yg=C_(Zu,Zt,me,Iu,js),bo=b_(Zu,Zt,Yg,Iu,js,ur,lr),$g=x_(zr,Zt,zs,me,cr,bo,ae,Br,Pu,js),Xu=v_($g),Zg=I_(ns,zs,ti,me,Xu,Dt,vs,is,Qt,wo),Xg=P_(Wt,Ge,Xu,Zg,At,wt,pn),Qg=k_(ss),Kg=R_(Qg,At,new WeakSet,og),Jg=w_(zs,ar,me,bo,ae,js),Qu=T_(Jg,ae),ty=H_(ns,Qu,Dt,is,Qt),ey=W_(Wt,Ge,Qu,ty,At,wt),sy=K_(bo,Dt,Qt),ny=Q_(Wt,Zt,bo,sy,At,wt,pn),Ku=Rm(ts),Ja=am(ts),Ju=new WeakMap,iy=ym(Ju,vs),ry=Ku?F0(He,ae,rm(ts),Ja,cm(D0),At,iy,wt,Mi,new WeakMap,new WeakMap,Y_(Mi,vs),ts):void 0,oy=Im($a,wt),ay=Hp(Xa,He,Wp,im,new WeakSet,At,oy,Ur,Ai,Qa,Ka),th=Tp(ry,gg,qu,vg,Tg,Cg,Eg,Mg,Pg,ay,Ng,Fg,Vg,Bg,Wg,Gg,Xg,Kg,ey,ny),cy=Fm(Wt,f_,At,wt),ly=Vm(Wt,p_,At,wt),uy=Um(Wt,m_,At,wt),hy=__(Zt,wt),dy=jm(Wt,hy,At),fy=sp(th,Zt,ae,Z_,cy,ly,uy,dy,ur),tc=vm(Yu),py=j0(tc),eh=Np(ss),my=Qp(tc),sh=tm(ss),nh=new WeakMap,_y=dm(nh,ze),gy=s_(eh,ss,Zt,zs,ar,ti,me,cr,ae,sh,Ja,_y,js),yy=Km(Zt,gy,me,ae,js),vy=kp(ns,eh,Jn,zs,ar,ti,me,my,sh,Ja,Dt,Mi,vs,is,Qt,wo),xy=_m(Ju),ky=j_(nh),kl=Ku?yp(py,Wt,Ge,vy,yy,re,xy,At,wt,Mi,ig,ky,ug,Kn):void 0,Ty=qp(ae,vs),wy=B_(Xa,He,Ya,tc,wo,Ur,Qa,Ka),by=E_(th,He,Zt,Ty,wy),Cy=Sm(vo,$a),Sy=Em(Va,Za),Ey=Om(Ua,zu),Oy=Am(vo,wt);function ke(i){return typeof i>"u"}function dt(i){return!ke(i)}function Ay(i){return typeof i=="function"}function Ps(i){return typeof i=="number"}function Js(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function My(i){return typeof i=="boolean"}function je(i){return Array.isArray(i)}function fs(i){return typeof i=="string"}function Cr(i){return fs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function Be(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function ih(i){!i.isOffline&&i.state!=="running"&&ec('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let rh=!1,Tl=!1;function wl(i){rh=i}function Dy(i){ke(i)&&rh&&!Tl&&(Tl=!0,ec("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let oh=console;function Py(...i){oh.log(...i)}function ec(...i){oh.warn(...i)}function Iy(i){return new fy(i)}function Ny(i,t,e){return new by(i,t,e)}const tn=typeof self=="object"?self:null,Ry=tn&&(tn.hasOwnProperty("AudioContext")||tn.hasOwnProperty("webkitAudioContext"));function Fy(i,t,e){return ut(dt(kl),"This node only works in a secure context (https or localhost)"),new kl(i,t,e)}class Ly{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` +`,bi=new at(0,0,0),il=100,C0=600,S0=2e3,Yo={x:172.7392402058252,y:-239.04675366094037,z:-2e3},du="14.8.49",rl=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),ol=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),la=(i,t)=>({startTime:t,type:"setValue",value:i}),fu=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),pu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),On=i=>i.type==="exponentialRampToValue",jr=i=>i.type==="linearRampToValue",bs=i=>On(i)||jr(i),Va=i=>i.type==="setValue",ls=i=>i.type==="setValueCurve",zr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:bs(n)||Va(n)?n.value:ls(n)?n.values[n.values.length-1]:pu(e,zr(i,t-1,n.startTime,s),n)},al=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:bs(e)?[e.endTime,e.value]:Va(e)?[e.startTime,e.value]:ls(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,zr(i,t-1,e.startTime,n)],ua=i=>i.type==="cancelAndHold",ha=i=>i.type==="cancelScheduledValues",Ts=i=>ua(i)||ha(i)?i.cancelTime:On(i)||jr(i)?i.endTime:i.startTime,cl=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),E0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},O0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return E0(s,n)},Sr=i=>i.type==="setTarget";class A0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=Ts(t);if(ua(t)||ha(t)){const s=this._automationEvents.findIndex(r=>ha(t)&&ls(r)?r.startTime+r.duration>=e:Ts(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ua(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&bs(n)){if(r!==void 0&&Sr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:ls(r)?r.startTime+r.duration:Ts(r),a=r===void 0?this._defaultValue:ls(r)?r.values[r.values.length-1]:r.value,c=On(n)?cl(e,o,a,n):ll(e,o,a,n),l=On(n)?rl(c,e,this._currenTime):ol(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&Sr(r)&&this._automationEvents.push(la(this.getValue(e),e)),r!==void 0&&ls(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hTs(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&ls(n)&&Ts(n)+n.duration>e)return!1;const r=On(t)?rl(t.value,t.endTime,this._currenTime):jr(t)?ol(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(ls(t)&&e+t.duration>Ts(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>Ts(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];Sr(n)&&s.unshift(la(zr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>Ts(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&Sr(r)&&(s===void 0||!bs(s)||s.insertTime>t))return pu(t,zr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&Va(r)&&(s===void 0||!bs(s)))return r.value;if(r!==void 0&&ls(r)&&(s===void 0||!bs(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),D0=i=>({cancelTime:i,type:"cancelScheduledValues"}),P0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),I0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),N0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),R0=()=>new DOMException("","AbortError"),F0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},L0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Vn=new WeakSet,mu=new WeakMap,Ua=new WeakMap,_u=new WeakMap,ja=new WeakMap,xo=new WeakMap,gu=new WeakMap,da=new WeakMap,fa=new WeakMap,pa=new WeakMap,yu={construct(){return yu}},U0=i=>{try{const t=new Proxy(i,yu);new t}catch{return!1}return!0},ul=/^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]*);?/,hl=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(ul);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(ul)}return[e.join(";"),s]},dl=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},fl=i=>{if(!U0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},j0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const b=l.get(_);if(b!==void 0){const y=b.get(f);if(y!==void 0)return y}const w=r(_),g=w.audioWorklet===void 0?n(f).then(([y,k])=>{const[T,x]=hl(y,k),C=`${T};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} +})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(k,T)=>{if(k.trim()==="")throw t();const x=fa.get(w);if(x!==void 0){if(x.has(k))throw t();fl(T),dl(T.parameterDescriptors),x.set(k,T)}else fl(T),dl(T.parameterDescriptors),fa.set(w,new Map([[k,T]]))},w.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,k],T])=>{const x=p+1;p=x;const[C,O]=hl(y,k),B=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} +})(${T?"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{${T?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${T?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,Y=new Blob([B],{type:"application/javascript; charset=utf-8"}),G=URL.createObjectURL(Y);return w.audioWorklet.addModule(G,m).then(()=>{if(a(w))return w;const z=o(w);return z.audioWorklet.addModule(G,m).then(()=>z)}).then(z=>{if(c===null)throw new SyntaxError;try{new c(z,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(G))});return b===void 0?l.set(_,new Map([[f,g]])):b.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},ze=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},ko=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},vu=(i,t,e,s)=>{const n=ze(i,t),r=ko(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},rr=i=>ze(gu,i),Un=i=>{if(Vn.has(i))throw new Error("The AudioNode is already stored.");Vn.add(i),rr(i).forEach(t=>t(!0))},xu=i=>"port"in i,or=i=>{if(!Vn.has(i))throw new Error("The AudioNode is not stored.");Vn.delete(i),rr(i).forEach(t=>t(!1))},ma=(i,t)=>{!xu(i)&&t.every(e=>e.size===0)&&or(i)},z0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,b)=>{const{activeInputs:w,passiveInputs:g}=r(f),{outputs:y}=r(_),k=a(_),T=x=>{const C=c(f),O=c(_);if(x){const P=vu(g,_,m,v);i(w,_,P,!1),!b&&!h(_)&&e(O,C,m,v),d(f)&&Un(f)}else{const P=s(w,_,m,v);t(g,v,P,!1),!b&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&ma(f,w);else{const V=p.get(f);V!==void 0&&clearTimeout(V),p.set(f,setTimeout(()=>{u(f)&&ma(f,w)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(k.add(T),u(_)?i(w,_,[m,v,T],!0):t(g,v,[_,m,T],!0),!0):!1}},B0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},q0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},W0=i=>(t,e)=>{i(t).add(e)},H0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},G0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...H0,...c},h=s(l,u),d=r(l)?t():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,e()}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,e()}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)}},se=(i,t)=>i.context===t,Y0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(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=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Br=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ss=()=>new DOMException("","IndexSizeError"),za=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ss():s}})(i.getChannelData)},$0={numberOfChannels:1},Z0=(i,t,e,s,n,r,o,a)=>{let c=null;return class ku{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...$0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),za(_)):t(Br,()=>Br(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===ku.prototype||i.has(u)}}},le=-34028234663852886e22,ne=-le,ds=i=>Vn.has(i),X0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Q0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...X0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,le)}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"){Un(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),ds(this)&&or(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},K0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={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=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},J0=i=>"playbackRate"in i,tp=i=>"frequency"in i&&"gain"in i,ep=i=>"offset"in i,sp=i=>!("frequency"in i)&&"gain"in i,np=i=>"detune"in i&&"frequency"in i,ip=i=>"pan"in i,re=i=>ze(mu,i),ar=i=>ze(_u,i),_a=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||_a(r,[...t,i])}));const s=J0(i)?[i.playbackRate]:xu(i)?Array.from(i.parameters.values()):tp(i)?[i.Q,i.detune,i.frequency,i.gain]:ep(i)?[i.offset]:sp(i)?[i.gain]:np(i)?[i.detune,i.frequency]:ip(i)?[i.pan]:[];for(const n of s){const r=ar(n);r!==void 0&&r.activeInputs.forEach(([o])=>_a(o,t))}ds(i)&&or(i)},Tu=i=>{_a(i.destination,[])},rp=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),op=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!rp(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 e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,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 _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}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 t()}):(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()),Tu(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(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?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},ap=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();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}},cp=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},lp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),k=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),T=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const P=()=>{if(x)return;x=!0;const Y=s(l,256,9,0);Y.onaudioprocess=({inputBuffer:G})=>{const z=[r(G,y,0),r(G,y,1),r(G,y,2),r(G,y,3),r(G,y,4),r(G,y,5)];z.some((Z,Q)=>Z!==C[Q])&&(u.setOrientation(...z),C=z);const j=[r(G,y,6),r(G,y,7),r(G,y,8)];j.some((Z,Q)=>Z!==O[Q])&&(u.setPosition(...j),O=j)},k.connect(Y)},M=Y=>G=>{G!==C[Y]&&(C[Y]=G,u.setOrientation(...C))},V=Y=>G=>{G!==O[Y]&&(O[Y]=G,u.setPosition(...O))},B=(Y,G,z)=>{const j=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G});j.connect(k,0,Y),j.start(),Object.defineProperty(j.offset,"defaultValue",{get(){return G}});const Z=i({context:c},T,j.offset,ne,le);return a(Z,"value",Q=>()=>Q.call(Z),Q=>et=>{try{Q.call(Z,et)}catch(R){if(R.code!==9)throw R}P(),T&&z(et)}),Z.cancelAndHoldAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.cancelAndHoldAtTime),Z.cancelScheduledValues=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.cancelScheduledValues),Z.exponentialRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.exponentialRampToValueAtTime),Z.linearRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.linearRampToValueAtTime),Z.setTargetAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.setTargetAtTime),Z.setValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.setValueAtTime),Z.setValueCurveAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return P(),R})(Z.setValueCurveAtTime),Z};return{forwardX:B(0,0,M(0)),forwardY:B(1,0,M(1)),forwardZ:B(2,-1,M(2)),positionX:B(6,0,V(0)),positionY:B(7,0,V(1)),positionZ:B(8,0,V(2)),upX:B(3,0,M(3)),upY:B(4,1,M(4)),upZ:B(5,0,M(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:b,upY:w,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return b},get upY(){return w},get upZ(){return g}}},qr=i=>"context"in i,cr=i=>qr(i[0]),fn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},pl=(i,t,[e,s],n)=>{fn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},ml=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):fn(r,[e,s],o=>o[0]===e,n)},Qn=i=>"inputs"in i,Wr=(i,t,e,s)=>{if(Qn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},wu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},up=(i,t,e)=>ko(i,s=>s[0]===t&&s[1]===e),bu=(i,t)=>{if(!rr(i).delete(t))throw new Error("Missing the expected event listener.")},Cu=(i,t,e)=>{const s=ze(i,t),n=ko(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},Hr=(i,t,e,s)=>{Qn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(Ua,i),Ai=i=>ze(ja,i),on=i=>da.has(i),Rr=i=>!Vn.has(i),_l=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),$o=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},Gr=i=>"context"in i,hp=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=Gr(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{Gr(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},dp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=ar(t),{outputs:o}=re(i),a=rr(i),c=l=>{const u=Dt(i),h=Ai(t);if(l){const d=Cu(r,i,e);pl(n,i,d,!1),!s&&!on(i)&&u.connect(h,e)}else{const d=up(n,i,e);ml(r,d,!1),!s&&!on(i)&&u.disconnect(h,e)}};return fn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),ds(i)?pl(n,i,[e,c],!0):ml(r,[i,e,c],!0),!0):!1},fp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=wu(n[s],i,e);return o===null?[vu(r,i,e,s)[2],!1]:[o[2],!0]},pp=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=ar(t),r=wu(s,i,e);return r===null?[Cu(n,i,e)[1],!1]:[r[2],!0]},Ba=(i,t,e,s,n)=>{const[r,o]=fp(i,e,s,n);if(r!==null&&(bu(i,r),o&&!t&&!on(i)&&Hr(Dt(i),Dt(e),s,n)),ds(e)){const{activeInputs:a}=re(e);ma(e,a)}},qa=(i,t,e,s)=>{const[n,r]=pp(i,e,s);n!==null&&(bu(i,n),r&&!t&&!on(i)&&Dt(i).disconnect(Ai(e),s))},mp=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)cr(n)?Ba(i,t,...n):qa(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},_p=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(cr(r)?Ba(i,t,...r):qa(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},gp=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(cr(o)?Ba(i,t,...o):qa(i,t,...o),r.outputs.delete(o),o[0]))},yp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,b,w,g){super(w),this._context=v,this._nativeAudioNode=w;const y=u(v);h(y)&&e(_l,()=>_l(y,f))!==!0&&hp(w),Ua.set(this,w),gu.set(this,new Set),v.state!=="closed"&&b&&Un(this),i(this,g,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,b=0,w=0){if(b<0||b>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(qr(v)){const x=Dt(v);try{const O=Wr(this._nativeAudioNode,x,b,w),P=Rr(this);(y||P)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!P&&Rr(v)&&Un(v)}catch(O){throw O.code===12?r():O}if(t(this,v,b,w,y)){const O=c([this],v);$o(O,s(y))}return v}const k=Ai(v);if(k.name==="playbackRate"&&k.maxValue===1024)throw o();try{this._nativeAudioNode.connect(k,b),(y||Rr(this))&&this._nativeAudioNode.disconnect(k,b)}catch(x){throw x.code===12?r():x}if(dp(this,v,b,y)){const x=c([this],v);$o(x,s(y))}}disconnect(v,b,w){let g;const y=u(this._context),k=_(y);if(v===void 0)g=mp(this,k);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=_p(this,k,v)}else{if(b!==void 0&&(b<0||b>=this.numberOfOutputs)||qr(v)&&w!==void 0&&(w<0||w>=v.numberOfInputs))throw n();if(g=gp(this,k,v,b,w),g.length===0)throw r()}for(const T of g){const x=c([this],T);$o(x,a)}}},vp=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const b=f.value,w=new A0(b),g=_?s(w):null,y={get defaultValue(){return b},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(k){f.value=k,y.setValueAtTime(k,p.context.currentTime)},cancelAndHoldAtTime(k){if(typeof f.cancelAndHoldAtTime=="function")g===null&&w.flush(p.context.currentTime),w.add(n(k)),f.cancelAndHoldAtTime(k);else{const T=Array.from(w).pop();g===null&&w.flush(p.context.currentTime),w.add(n(k));const x=Array.from(w).pop();f.cancelScheduledValues(k),T!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?f.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?f.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&f.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(k){return g===null&&w.flush(p.context.currentTime),w.add(r(k)),f.cancelScheduledValues(k),y},exponentialRampToValueAtTime(k,T){if(k===0)throw new RangeError;if(!Number.isFinite(T)||T<0)throw new RangeError;const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(o(k,T)),f.exponentialRampToValueAtTime(k,T),y},linearRampToValueAtTime(k,T){const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(a(k,T)),f.linearRampToValueAtTime(k,T),y},setTargetAtTime(k,T,x){return g===null&&w.flush(p.context.currentTime),w.add(c(k,T,x)),f.setTargetAtTime(k,T,x),y},setValueAtTime(k,T){return g===null&&w.flush(p.context.currentTime),w.add(l(k,T)),f.setValueAtTime(k,T),y},setValueCurveAtTime(k,T,x){const C=k instanceof Float32Array?k:new Float32Array(k);if(h!==null&&h.name==="webkitAudioContext"){const O=T+x,P=p.context.sampleRate,M=Math.ceil(T*P),V=Math.floor(O*P),B=V-M,Y=new Float32Array(B);for(let z=0;z({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class Su{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const kp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},Tp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var b;const w=a(f),g=c(w),y=u({...kp,...v});d(y);const k=fa.get(w),T=k==null?void 0:k.get(m),x=g||w.state!=="closed"?w:(b=o(w))!==null&&b!==void 0?b:w,C=n(x,g?null:f.baseLatency,l,m,T,y),O=g?s(m,y,T):null;super(f,!0,C,O);const P=[];C.parameters.forEach((V,B)=>{const Y=e(this,g,V);P.push([B,Y])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Su(P),g&&i(w,this);const{activeInputs:M}=r(this);h(C,M)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Yr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const Eu=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},$r=(i,t)=>{const e=[];for(let s=0;s{const e=ze(pa,i),s=Dt(t);return ze(e,s)},bp=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await wp(e,i),p=$r(s.numberOfInputs,s.channelCount),_=$r(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{Yr(t,f,v,c+b,m)});for(let v=0;vh.activeInputs[g].size===0?[]:w),b=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let w=0,g=0;w(m,v,b)=>{const w=new WeakMap;let g=null;const y=async(k,T)=>{let x=u(k),C=null;const O=se(x,T),P=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=P.reduce((G,z)=>G+z,0),V=n(T,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),B=[];for(let G=0;G{const et=new d(Z,Math.ceil(k.context.length/128)*128,T.sampleRate),R=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),I=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,z+j)});for(let H=0;H_(k,et,H))),f(et)})(),T,v,P,b,l)}const M=await g,V=e(T,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[B,Y,G]=C;M!==null&&(V.buffer=M,V.start(0)),V.connect(B);for(let z=0,j=0;zclass extends _{constructor(y,k){super(y,k),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(T,x)=>i(this,T,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,k,T){return new e({length:k,numberOfChannels:y,sampleRate:T})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(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,k){return new p(this,{feedback:k,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,k,T={disableNormalization:!1}){return new v(this,{...T,imag:k,real:y})}createStereoPanner(){return new b(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,k,T){return l(this._nativeContext,y).then(x=>(typeof k=="function"&&k(x),x),x=>{throw typeof T=="function"&&T(x),x})}},Ep={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},Op=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...Ep,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,le),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),le),this._nativeBiquadFilterNode=p,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()}},Ap=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(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=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(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 n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Mp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},Dp={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},Pp=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...Dp,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},Ip=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Np={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},Rp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Np,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},Fp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Lp=i=>(t,e,s)=>i(e,t,s),Vp=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return Gr(e)?r.connect(e,0,n):r.connect(e,0)},Up=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},jp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},zp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...jp,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,le),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"){Un(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),ds(this)&&or(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Bp=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},qp=i=>t=>(i[0]=t,i[0]),Wp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},Hp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...Wp,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(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,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Gp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Qn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Yp=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},$p=()=>new DOMException("","DataCloneError"),gl=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},Zp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(gl(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await gl(d)}catch{}},v=b=>{f(b),m()};try{p.decodeAudioData(d,b=>{typeof b.copyFromChannel!="function"&&(l(b),za(b)),i.add(b),m().then(()=>_(b))},b=>{v(b===null?s():b)})}catch(b){v(b)}})},Xp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(cr(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},Qp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Kp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Qp,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},Jp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},tm=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),em=i=>(t,e)=>{i(t).delete(e)},sm=i=>"delayTime"in i,nm=(i,t,e)=>function s(n,r){const o=qr(r)?r:e(i,r);if(sm(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},Er=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},im=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?Er(i,t,e).disconnect():Gr(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?Er(i,t,s).disconnect(e,0):Er(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):Er(i,t,s).disconnect(e,0),rm={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},om=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...rm,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.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,n()}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,n()}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}},am=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(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=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(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 n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},cm=()=>new DOMException("","EncodingError"),lm=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),um=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},hm=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},dm=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},fm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},pm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...fm,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,le)}get gain(){return this._gain}},mm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},_m=(i,t)=>e=>t(i,e),gm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},ym=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},vm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},xm=i=>t=>i.get(t),Zt=()=>new DOMException("","InvalidStateError"),km=i=>t=>{const e=i.get(t);if(e===void 0)throw Zt();return e},Tm=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},wm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},To=()=>new DOMException("","InvalidAccessError"),bm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw To();return t.call(i,e,s,n)})(i.getFrequencyResponse)},Cm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},Sm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...Cm,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),bm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Ou=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return Em(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},Am=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(cr(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},Mm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Dm=(i,t)=>e=>i.has(e)||t(e),Pm=(i,t)=>e=>i.has(e)||t(e),Im=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Nm=i=>t=>i!==null&&t instanceof i,Rm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,Fm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Lm=(i,t)=>e=>i(e)||t(e),Vm=i=>t=>i!==null&&t instanceof i,Um=i=>i!==null&&i.isSecureContext,jm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},zm={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Bm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...zm,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},qm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},Wm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},Hm=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,xo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(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"?r(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}},Mi=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Gm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Yt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},yl=i=>typeof i.getFloatTimeDomainData=="function",Ym=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Yt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(yl,()=>yl(n))||Ym(n),n},Zm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Xm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Zt();t.call(i,s,n,r),e=!0}})(i.start)},Wa=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},Ha=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},Qm=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Yt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Xm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||Wa(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||Ha(p),i(h,p),p},Km=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,Jm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},t_=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,e_=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},s_=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=b=>{b.type==="error"?(Object.defineProperties(b,{type:{value:"processorerror"}}),m(b)):m(new ErrorEvent(f[0],{...b}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return e_(u),t(r,o,l,u)},Au=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),n_=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),i_=async(i,t)=>{const e=await n_(t);return new i(e)},r_=(i,t,e,s)=>{let n=pa.get(i);n===void 0&&(n=new WeakMap,pa.set(i,n));const r=i_(e,s);return n.set(t,r),r},o_=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(q=>q<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const b=m.channelCount*m.numberOfInputs,w=v.reduce((q,A)=>q+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(b+g>6||w>6)throw c();const y=new MessageChannel,k=[],T=[];for(let q=0;qq===void 0?0:q},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?le:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,b+g)}),O=Au(_,p.sampleRate),P=a(p,O,b+g,Math.max(1,w)),M=n(p,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),V=[];for(let q=0;q{const E=x[A];return E.connect(C,0,b+A),E.start(0),[q,E.offset]}));C.connect(P);let Y=m.channelInterpretation,G=null;const z=m.numberOfOutputs===0?[P]:V,j={get bufferSize(){return O},get channelCount(){return m.channelCount},set channelCount(q){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(q){throw e()},get channelInterpretation(){return Y},set channelInterpretation(q){for(const A of k)A.channelInterpretation=q;Y=q},get context(){return P.context},get inputs(){return k},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return G},set onprocessorerror(q){typeof G=="function"&&j.removeEventListener("processorerror",G),G=typeof q=="function"?q:null,typeof G=="function"&&j.addEventListener("processorerror",G)},get parameters(){return B},get port(){return y.port2},addEventListener(...q){return P.addEventListener(q[0],q[1],q[2])},connect:i.bind(null,z),disconnect:l.bind(null,z),dispatchEvent(...q){return P.dispatchEvent(q[0])},removeEventListener(...q){return P.removeEventListener(q[0],q[1],q[2])}},Z=new Map;y.port1.addEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(E!==null){const X=Z.get(A[1]);X!==void 0?A[1]=X:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},Z.set(E,A[1]))}}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.addEventListener),y.port1.removeEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=Z.get(A[1]);E!==void 0&&(Z.delete(A[1]),A[1]=E)}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Q=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Q,set:q=>{typeof Q=="function"&&y.port1.removeEventListener("message",Q),Q=typeof q=="function"?q:null,typeof Q=="function"&&(y.port1.addEventListener("message",Q),y.port1.start())}}),f.prototype.port=y.port1;let et=null;r_(p,j,f,m).then(q=>et=q);const F=$r(m.numberOfInputs,m.channelCount),S=$r(m.numberOfOutputs,v),I=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((q,{name:A})=>({...q,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&P.disconnect(M);for(let q=0,A=0;q{if(et!==null){const E=h(j);for(let X=0;X{Yr(q,I,tt,b+lt,X)});for(let tt=0;tt{if(E[Gt].size>0)return U.set(Gt,O/128),vt;const si=U.get(Gt);return si===void 0?[]:(vt.every(Fo=>Fo.every(_r=>_r===0))&&(si===1?U.delete(Gt):U.set(Gt,si-1)),vt)});H=u(p.currentTime+X/p.sampleRate,p.sampleRate,()=>et.process(tt,S,I));for(let vt=0,Gt=0;vtP.connect(st).connect(p.destination),J=()=>{P.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&P.connect(M);for(let q=0,A=0;q{H&&(nt(),N()),it=!1};return nt(),d(j,pt,K)},Mu=(i,t)=>{const e=i.createBiquadFilter();return Yt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},a_=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Yt(n,s),n},c_=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Zt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Zt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Zt()}})},lr=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Yt(e,t),c_(e),e},l_=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Yt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||Wa(a),t(n,()=>n(r))||Ha(a),i(r,a),a},Kn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),u_=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),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(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},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(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Kn(h,l),d,p)},h_=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Yt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Du=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Yt(e,t),Ft(e,t,"delayTime"),e},d_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Yt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Yt(e,t),Ft(e,t,"gain"),e},f_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Yt(n,s),n};function p_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function m_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function vl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=m_(e,t),e[0]+=i[s];return e}const __=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Au(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,O=x.outputBuffer,P=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),y_=(i,t)=>{const e=i.createMediaStreamDestination();return Yt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},v_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},x_=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},k_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,T_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Yt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||Wa(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||Ha(c),i(o,c),c},w_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Yt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},b_=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:b,panningModel:w,positionX:g,positionY:y,positionZ:k,refDistance:T,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Yt(O,C);const P={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...P,channelInterpretation:"speakers",numberOfInputs:6}),V=s(u,{...C,gain:1}),B=s(u,{...P,gain:1}),Y=s(u,{...P,gain:0}),G=s(u,{...P,gain:0}),z=s(u,{...P,gain:0}),j=s(u,{...P,gain:0}),Z=s(u,{...P,gain:0}),Q=n(u,256,6,1),et=r(u,{...P,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,b],F=[g,y,k];const S=new Float32Array(1);Q.onaudioprocess=({inputBuffer:U})=>{const it=[c(U,S,0),c(U,S,1),c(U,S,2)];it.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...it),R=it);const st=[c(U,S,3),c(U,S,4),c(U,S,5)];st.some((nt,J)=>nt!==F[J])&&(O.setPosition(...st),F=st)},Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Z.gain,"defaultValue",{get:()=>0});const I={get bufferSize(){},get channelCount(){return O.channelCount},set channelCount(U){if(U>2)throw o();V.channelCount=U,O.channelCount=U},get channelCountMode(){return O.channelCountMode},set channelCountMode(U){if(U==="max")throw o();V.channelCountMode=U,O.channelCountMode=U},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation(U){V.channelInterpretation=U,O.channelInterpretation=U},get coneInnerAngle(){return O.coneInnerAngle},set coneInnerAngle(U){O.coneInnerAngle=U},get coneOuterAngle(){return O.coneOuterAngle},set coneOuterAngle(U){O.coneOuterAngle=U},get coneOuterGain(){return O.coneOuterGain},set coneOuterGain(U){if(U<0||U>1)throw t();O.coneOuterGain=U},get context(){return O.context},get distanceModel(){return O.distanceModel},set distanceModel(U){O.distanceModel=U},get inputs(){return[V]},get maxDistance(){return O.maxDistance},set maxDistance(U){if(U<0)throw new RangeError;O.maxDistance=U},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},get orientationX(){return B.gain},get orientationY(){return Y.gain},get orientationZ(){return G.gain},get panningModel(){return O.panningModel},set panningModel(U){O.panningModel=U},get positionX(){return z.gain},get positionY(){return j.gain},get positionZ(){return Z.gain},get refDistance(){return O.refDistance},set refDistance(U){if(U<0)throw new RangeError;O.refDistance=U},get rolloffFactor(){return O.rolloffFactor},set rolloffFactor(U){if(U<0)throw new RangeError;O.rolloffFactor=U},addEventListener(...U){return V.addEventListener(U[0],U[1],U[2])},dispatchEvent(...U){return V.dispatchEvent(U[0])},removeEventListener(...U){return V.removeEventListener(U[0],U[1],U[2])}};h!==I.coneInnerAngle&&(I.coneInnerAngle=h),d!==I.coneOuterAngle&&(I.coneOuterAngle=d),p!==I.coneOuterGain&&(I.coneOuterGain=p),_!==I.distanceModel&&(I.distanceModel=_),f!==I.maxDistance&&(I.maxDistance=f),m!==I.orientationX.value&&(I.orientationX.value=m),v!==I.orientationY.value&&(I.orientationY.value=v),b!==I.orientationZ.value&&(I.orientationZ.value=b),w!==I.panningModel&&(I.panningModel=w),g!==I.positionX.value&&(I.positionX.value=g),y!==I.positionY.value&&(I.positionY.value=y),k!==I.positionZ.value&&(I.positionZ.value=k),T!==I.refDistance&&(I.refDistance=T),x!==I.rolloffFactor&&(I.rolloffFactor=x),(R[0]!==1||R[1]!==0||R[2]!==0)&&O.setOrientation(...R),(F[0]!==0||F[1]!==0||F[2]!==0)&&O.setPosition(...F);const H=()=>{V.connect(O),i(V,et,0,0),et.connect(B).connect(M,0,0),et.connect(Y).connect(M,0,1),et.connect(G).connect(M,0,2),et.connect(z).connect(M,0,3),et.connect(j).connect(M,0,4),et.connect(Z).connect(M,0,5),M.connect(Q).connect(u.destination)},N=()=>{V.disconnect(O),a(V,et,0,0),et.disconnect(B),B.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(Z),Z.disconnect(M),M.disconnect(Q),Q.disconnect(u.destination)};return l(Kn(I,O),H,N)},C_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},ur=(i,t,e,s)=>i.createScriptProcessor(t,e,s),S_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Yt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},E_=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;b[C]=Math.cos(O),w[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:b}),k=s(_,{...u,curve:a}),T=e(_,{...l,gain:0}),x=s(_,{...u,curve:w});return{connectGraph(){f.connect(g),f.connect(k.inputs===void 0?k:k.inputs[0]),f.connect(T),k.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(g.gain),x.connect(T.gain),g.connect(v,0,0),T.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(k.inputs===void 0?k:k.inputs[0]),f.disconnect(T),k.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(g.gain),x.disconnect(T.gain),g.disconnect(v,0,0),T.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),k=Math.floor(16385/2);for(let z=0;z<16385;z+=1)if(z>k){const j=(z-k)/(16384-k)*c;b[z]=Math.cos(j),w[z]=Math.sin(j),g[z]=0,y[z]=1}else{const j=z/(16384-k)*c;b[z]=1,w[z]=0,g[z]=Math.cos(j),y[z]=Math.sin(j)}const T=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:b}),O=e(_,{...l,gain:0}),P=s(_,{...u,curve:w}),M=s(_,{...u,curve:a}),V=e(_,{...l,gain:0}),B=s(_,{...u,curve:g}),Y=e(_,{...l,gain:0}),G=s(_,{...u,curve:y});return{connectGraph(){f.connect(T),f.connect(M.inputs===void 0?M:M.inputs[0]),T.connect(x,0),T.connect(O,0),T.connect(V,1),T.connect(Y,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(P.inputs===void 0?P:P.inputs[0]),m.connect(B.inputs===void 0?B:B.inputs[0]),m.connect(G.inputs===void 0?G:G.inputs[0]),C.connect(x.gain),P.connect(O.gain),B.connect(V.gain),G.connect(Y.gain),x.connect(v,0,0),V.connect(v,0,0),O.connect(v,0,1),Y.connect(v,0,1)},disconnectGraph(){f.disconnect(T),f.disconnect(M.inputs===void 0?M:M.inputs[0]),T.disconnect(x,0),T.disconnect(O,0),T.disconnect(V,1),T.disconnect(Y,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(P.inputs===void 0?P:P.inputs[0]),m.disconnect(B.inputs===void 0?B:B.inputs[0]),m.disconnect(G.inputs===void 0?G:G.inputs[0]),C.disconnect(x.gain),P.disconnect(O.gain),B.disconnect(V.gain),G.disconnect(Y.gain),x.disconnect(v,0,0),V.disconnect(v,0,0),O.disconnect(v,0,1),Y.disconnect(v,0,1)}}},p=(_,f,m,v,b)=>{if(f===1)return h(_,m,v,b);if(f===2)return d(_,m,v,b);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...b})=>{if(m==="max")throw n();const w=i(_,{...b,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...b,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:k,disconnectGraph:T}=p(_,f,g,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(M){g.channelCount!==M&&(C&&T(),{connectGraph:k,disconnectGraph:T}=p(_,M,g,y,w),C&&k()),g.channelCount=M},get channelCountMode(){return g.channelCountMode},set channelCountMode(M){if(M==="clamped-max"||M==="max")throw n();g.channelCountMode=M},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(M){g.channelInterpretation=M},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...M){return g.addEventListener(M[0],M[1],M[2])},dispatchEvent(...M){return g.dispatchEvent(M[0])},removeEventListener(...M){return g.removeEventListener(M[0],M[1],M[2])}};let C=!1;const O=()=>{k(),C=!0},P=()=>{T(),C=!1};return r(Kn(x,w),O,P)}},O_=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Yt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},A_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Yt(l,c),Yt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const b={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const k=y.length,T=new Float32Array(k+2-k%2),x=new Float32Array(k+2-k%2);T[0]=y[0],x[0]=-y[k-1];const C=Math.ceil((k+1)/2),O=(k+1)/2-1;for(let P=1;P{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Kn(b,p),w,g)},ae=()=>new DOMException("","NotSupportedError"),M_={numberOfChannels:1},D_=(i,t,e,s,n)=>class extends i{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}={...M_,...l},p=s(h,u,d);t(Mi,()=>Mi(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,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(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,Tu(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},P_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},I_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...P_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,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"){Un(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),ds(this)&&or(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},N_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={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=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(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=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},R_={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},F_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...R_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,le),this._orientationY=t(this,p,d.orientationY,ne,le),this._orientationZ=t(this,p,d.orientationZ,ne,le),this._positionX=t(this,p,d.positionX,ne,le),this._positionY=t(this,p,d.positionY,ne,le),this._positionZ=t(this,p,d.positionZ,ne,le),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}},L_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},b={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!w){const g={...b,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const P=new o(6,p.context.length,_.sampleRate),M=t(P,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(P.destination),h=(async()=>{const V=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(B,Y)=>{const G=e(P,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y===0?1:0});return await a(P,B,G.offset),G}));for(let B=0;B<6;B+=1)V[B].connect(M,0,B),V[B].start(0);return l(P)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const k=[];for(let P=0;PB!==T[Y])||V.some((B,Y)=>B!==x[Y])){T=M,x=V;const B=P/_.sampleRate;C.gain.setValueAtTime(0,B),C=s(_,{...v,gain:0}),O=n(_,{...b,orientationX:T[0],orientationY:T[1],orientationZ:T[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,B),y.connect(C).connect(O.inputs[0]),O.connect(f)}}return f}return w?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Qn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},V_={disableNormalization:!1},U_=(i,t,e,s)=>class Pu{constructor(r,o){const a=t(r),c=s({...V_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Pu.prototype||e.has(r)}},j_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),z_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},B_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},q_=(i,t,e,s)=>n=>i(Mi,()=>Mi(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),W_=i=>(t,e)=>{i.set(t,e)},H_=i=>(t,e)=>i.set(t,e),G_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),za(u)):t(r,()=>r(u))||a(u),i.add(u),u)),Y_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},$_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...Y_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},Z_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Qn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},X_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},Q_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=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 t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},K_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},J_=()=>new DOMException("","UnknownError"),tg={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},eg=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...tg,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),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 t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},sg=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Qn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},ng=()=>typeof window>"u"?null:window,ig=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},ag=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Iu=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Nu=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},hr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},cg=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),lg=i=>({...i,channelCount:i.numberOfOutputs}),ug=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Ru=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Ru(i,t,e+1e-7)}},hg=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},dg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},fg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Ga=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Fu=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ya=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},pg=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},mg=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Lu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Kn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Jn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},_g=F0(fn),gg=B0(fn),yg=tm(ko),Vu=new WeakMap,vg=ym(Vu),He=Mp(new Map,new WeakMap),ts=ng(),Uu=$m(He,ss),$a=gm(re),Qt=z_(re,$a,on),xg=Y0(Uu,Dt,Qt),At=km(xo),vs=k_(ts),wt=Vm(vs),ju=new WeakMap,zu=um(Jn),dr=Km(ts),Za=Nm(dr),Xa=Rm(ts),Bu=Fm(ts),Di=t_(ts),Wt=yp(L0(mu),z0(_g,gg,Wr,yg,Hr,re,vg,rr,Dt,fn,ds,on,Rr),He,Am(da,Hr,re,Dt,Ai,ds),ss,To,ae,Xp(Wr,da,re,Dt,Ai,At,ds,wt),nm(ju,re,ze),zu,At,Za,Xa,Bu,wt,Di),kg=G0(Wt,xg,ss,Uu,At,wt),Qa=new WeakSet,xl=Zm(ts),qu=qp(new Uint32Array(1)),Ka=ig(qu,ss),Ja=rg(qu),Wu=Z0(Qa,He,ae,xl,vs,X_(xl),Ka,Ja),wo=q0(me),Hu=B_($a,ar,on),ns=Lp(Hu),ti=Qm(wo,He,hg,dg,fg,Ga,Fu,Ya,mg,og(hr),Lu),is=j_(vm(ar),Hu),Tg=K0(ns,ti,Dt,is,Qt),Ge=vp(V0(_u),ju,ja,xp,M0,D0,P0,I0,N0,la,fu,dr,Ru),wg=Q0(Wt,Tg,Ge,Zt,ti,At,wt,Jn),bg=ap(Wt,cp,ss,Zt,Jm(me,hr),At,wt,Qt),Cg=Ap(ns,Mu,Dt,is,Qt),pn=H_(Vu),Sg=Op(Wt,Ge,Cg,To,Mu,At,wt,pn),js=Gm(fn,Xa),Eg=ag(Zt,js),zs=a_(dr,Eg),Og=Ip(zs,Dt,Qt),Ag=Pp(Wt,Og,zs,At,wt),Mg=Fp(lr,Dt,Qt),Dg=Rp(Wt,Mg,lr,At,wt,lg),Pg=u_(wo,ti,me,js),ei=l_(wo,He,Pg,Ga,Ya),Ig=Bp(ns,ei,Dt,is,Qt),Ng=zp(Wt,Ge,Ig,ei,At,wt,Jn),Gu=h_(ae,hr),Rg=Gp(Gu,Dt,Qt),Fg=Hp(Wt,Rg,Gu,At,wt,pn),Lg=Jp(ns,Du,Dt,is,Qt),Vg=Kp(Wt,Ge,Lg,Du,At,wt,pn),Yu=d_(ae),Ug=am(ns,Yu,Dt,is,Qt),jg=om(Wt,Ge,Ug,Yu,ae,At,wt,pn),zg=mm(ns,me,Dt,is,Qt),Bg=pm(Wt,Ge,zg,me,At,wt),qg=__(To,Zt,ur,ae),bo=q_(He,me,ur,K_(me,vs)),Wg=Om(ti,Dt,vs,Qt,bo),Hg=f_(qg),Gg=Sm(Wt,Hg,Wg,At,wt,pn),Yg=lp(Ge,zs,ei,ur,ae,Iu,wt,hr),$u=new WeakMap,$g=Hm(bg,Yg,zu,wt,$u,Jn),Zu=T_(wo,He,Ga,Fu,Ya,Lu),Zg=N_(ns,Zu,Dt,is,Qt),Xg=I_(Wt,Ge,Zu,Zg,At,wt,Jn),Xu=Up(ti),Qg=A_(Xu,Zt,me,Nu,js),Co=O_(Xu,Zt,Qg,Nu,js,dr,hr),Kg=b_(Wr,Zt,zs,me,ur,Co,ae,Hr,Iu,js),Qu=w_(Kg),Jg=L_(ns,zs,ei,me,Qu,Dt,vs,is,Qt,bo),ty=F_(Wt,Ge,Qu,Jg,At,wt,pn),ey=C_(ss),sy=U_(ey,At,new WeakSet,ug),ny=E_(zs,lr,me,Co,ae,js),Ku=S_(ny,ae),iy=Z_(ns,Ku,Dt,is,Qt),ry=$_(Wt,Ge,Ku,iy,At,wt),oy=sg(Co,Dt,Qt),ay=eg(Wt,Zt,Co,oy,At,wt,pn),Ju=Um(ts),tc=hm(ts),th=new WeakMap,cy=Tm(th,vs),ly=Ju?j0(He,ae,lm(ts),tc,dm(R0),At,cy,wt,Di,new WeakMap,new WeakMap,Q_(Di,vs),ts):void 0,uy=Lm(Za,wt),hy=Zp(Qa,He,$p,cm,new WeakSet,At,uy,Br,Mi,Ka,Ja),eh=Sp(ly,kg,Wu,wg,Sg,Ag,Dg,Ng,Fg,hy,Vg,jg,Bg,Gg,$g,Xg,ty,sy,ry,ay),dy=jm(Wt,g_,At,wt),fy=Bm(Wt,y_,At,wt),py=qm(Wt,v_,At,wt),my=x_(Zt,wt),_y=Wm(Wt,my,At),gy=op(eh,Zt,ae,J_,dy,fy,py,_y,dr),ec=wm($u),yy=W0(ec),sh=Vp(ss),vy=em(ec),nh=im(ss),ih=new WeakMap,xy=_m(ih,ze),ky=o_(sh,ss,Zt,zs,lr,ei,me,ur,ae,nh,tc,xy,js),Ty=s_(Zt,ky,me,ae,js),wy=Cp(ns,sh,ti,zs,lr,ei,me,vy,nh,tc,Dt,Di,vs,is,Qt,bo),by=xm(th),Cy=W_(ih),kl=Ju?Tp(yy,Wt,Ge,wy,Ty,re,by,At,wt,Di,cg,Cy,pg,Jn):void 0,Sy=Yp(ae,vs),Ey=G_(Qa,He,$a,ec,bo,Br,Ka,Ja),Oy=D_(eh,He,Zt,Sy,Ey),Ay=Mm(xo,Za),My=Dm(Ua,Xa),Dy=Pm(ja,Bu),Py=Im(xo,wt);function ke(i){return typeof i>"u"}function dt(i){return!ke(i)}function Iy(i){return typeof i=="function"}function Ps(i){return typeof i=="number"}function Js(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function Ny(i){return typeof i=="boolean"}function je(i){return Array.isArray(i)}function fs(i){return typeof i=="string"}function Or(i){return fs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function Be(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function rh(i){!i.isOffline&&i.state!=="running"&&sc('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let oh=!1,Tl=!1;function wl(i){oh=i}function Ry(i){ke(i)&&oh&&!Tl&&(Tl=!0,sc("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let ah=console;function Fy(...i){ah.log(...i)}function sc(...i){ah.warn(...i)}function Ly(i){return new gy(i)}function Vy(i,t,e){return new Oy(i,t,e)}const tn=typeof self=="object"?self:null,Uy=tn&&(tn.hasOwnProperty("AudioContext")||tn.hasOwnProperty("webkitAudioContext"));function jy(i,t,e){return ut(dt(kl),"This node only works in a secure context (https or localhost)"),new kl(i,t,e)}class zy{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` // the initial timeout time let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; // onmessage callback @@ -145,12 +145,12 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a } // call tick initially tick(); - `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);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(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function an(i){return Ey(i)}function As(i){return Sy(i)}function Ir(i){return Oy(i)}function En(i){return Cy(i)}function Vy(i){return i instanceof qu}function Uy(i,t){return i==="value"||an(t)||As(t)||Vy(t)}function In(i,...t){if(!t.length)return i;const e=t.shift();if(Js(i)&&Js(e))for(const s in e)Uy(s,e[s])?i[s]=e[s]:Js(e[s])?(i[s]||Object.assign(i,{[s]:{}}),In(i[s],e[s])):Object.assign(i,{[s]:e[s]});return In(i,...t)}function jy(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Js(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(In(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Js(r[0]))In(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** + `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);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(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function an(i){return Dy(i)}function As(i){return My(i)}function Fr(i){return Py(i)}function En(i){return Ay(i)}function By(i){return i instanceof Wu}function qy(i,t){return i==="value"||an(t)||As(t)||By(t)}function In(i,...t){if(!t.length)return i;const e=t.shift();if(Js(i)&&Js(e))for(const s in e)qy(s,e[s])?i[s]=e[s]:Js(e[s])?(i[s]||Object.assign(i,{[s]:{}}),In(i[s],e[s])):Object.assign(i,{[s]:e[s]});return In(i,...t)}function Wy(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Js(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(In(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Js(r[0]))In(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** * Tone.js * @author Yotam Mann * @license http://opensource.org/licenses/MIT MIT License * @copyright 2014-2019 Yotam Mann - */class xs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||tn&&this.toString()===tn.TONE_DEBUG_CLASS)&&Py(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}xs.version=hu;const sc=1e-6;function jn(i,t){return i>t+sc}function _a(i,t){return jn(i,t)||Le(i,t)}function Gr(i,t){return i+scthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Le(this._timeline[e].time,t)){for(let s=e;s>=0&&Le(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&_a(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Le(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Le(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ch=[];function Co(i){ch.push(i)}function qy(i){ch.forEach(t=>t(i))}const lh=[];function So(i){lh.push(i)}function Wy(i){lh.forEach(t=>t(i))}class hr extends xs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(ke(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(hr.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class uh extends hr{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let nc=class hh extends uh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ke,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(hh.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Iy({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new Ly(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[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(qy(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(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}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(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return Fy(this.rawContext,t,e)}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return qt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/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 En(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){En(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&Wy(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class Hy extends uh{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){je(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function ic(i,t){je(t)?t.forEach(e=>ic(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends xs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,fs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Ve().sampleRate}set(t){return t instanceof xt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return qt(this,void 0,void 0,function*(){const e=xt.load(t).then(s=>{this.set(s),this.onload(this)});xt.downloads.push(e);try{yield e}finally{const s=xt.downloads.indexOf(e);xt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=je(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Ve(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ps(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];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(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new xt().fromArray(t)}static fromUrl(t){return qt(this,void 0,void 0,function*(){return yield new xt().load(t)})}static load(t){return qt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(xt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=xt.baseUrl===""||xt.baseUrl.endsWith("/")?xt.baseUrl:xt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Ve().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return qt(this,void 0,void 0,function*(){for(yield Promise.resolve();xt.downloads.length;)yield xt.downloads[0]})}}xt.baseUrl="";xt.downloads=[];class Eo extends nc{constructor(){super({clockSource:"offline",context:Ir(arguments[0])?arguments[0]:Ny(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Ir(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Ir(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return qt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return qt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new xt(e)})}close(){return Promise.resolve()}}const dh=new Hy;let Xs=dh;function Ve(){return Xs===dh&&Ry&&Gy(new nc),Xs}function Gy(i,t=!1){t&&Xs.dispose(),En(i)?Xs=new nc(i):Ir(i)?Xs=new Eo(i):Xs=i}function Yy(){return Xs.resume()}if(tn&&!tn.TONE_SILENCE_LOGGING){const t=` * Tone.js v${hu} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function $y(i){return Math.pow(10,i/20)}function Zy(i){return 20*(Math.log(i)/Math.LN10)}function fh(i){return Math.pow(2,i/12)}let Oo=440;function Xy(){return Oo}function Qy(i){Oo=i}function ga(i){return Math.round(ph(i))}function ph(i){return 69+12*Math.log2(i/Oo)}function Ky(i){return Oo*Math.pow(2,(i-69)/12)}class rc extends xs{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof rc&&this.fromType(this._val),ke(this._val))return this._noArg();if(fs(this._val)&&ke(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Js(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return fs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*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(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ue extends rc{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ue(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ue(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ue(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return ga(this.toFrequency())}_now(){return this.context.now()}}class Ae extends Ue{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return Xy()}static set A4(t){Qy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ae.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Jy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ae.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ae(this.context,this.valueOf()*fh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return ga(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ae.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),t1[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return Ky(t)}static ftom(t){return ga(t)}}const Jy={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},t1=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class bi extends Ue{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class ue extends xs{constructor(){super();const t=$(ue.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Ve()}}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(t){return Dy(t),new Ue(this.context,t).toSeconds()}toFrequency(t){return new Ae(this.context,t).toFrequency()}toTicks(t){return new bi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{ke(t[s])&&delete e[s]}),e}get(){const t=zy(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof ue?t[e]=s._getPartialProperties(t[e]):je(s)||Ps(s)||fs(s)||My(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof ue?this[e].set(t[e]):this[e]=t[e])}),this}}class oc extends Ke{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return Be(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class rt extends ue{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?an(this.input)||this.input instanceof kt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof rt||As(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Is(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return ec("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return e1(this,t,e,s),this}chain(...t){return Di(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof rt?this.input.dispose():As(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof rt?this.output.dispose():As(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Di(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof rt?e.connect(s):As(e)&&Is(e,s),s),t)}function Is(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof rt||As(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof rt||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof rt;)dt(i.output)&&(i=i.output);an(t)?i.connect(t,e):i.connect(t,e,s)}function e1(i,t,e=0,s=0){if(dt(t))for(;t instanceof rt;)t=t.input;for(;!As(i);)dt(i.output)&&(i=i.output);an(t)?i.disconnect(t,e):As(t)?i.disconnect(t,e,s):i.disconnect()}class St extends rt{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new kt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends rt{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(rt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(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=yt,this}}class Yr extends zn{constructor(){super($(Yr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Yr.getDefaults(),arguments,["offset"]);Is(this._source,this._gainNode),this.offset=new kt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends rt{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Yr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return ac(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function ac(i,t,e,s){(t instanceof kt||an(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Is(i,t,e,s)}class $r extends kt{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ke(1/0),this._multiplier=1;const t=$($r.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(kt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(ke(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class Zr extends Ot{constructor(){super($(Zr.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$(Zr.getDefaults(),arguments,["value"]);this.input=this._param=new $r({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Xr extends ue{constructor(){super($(Xr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new oc,this._tickOffset=new Ke,this._ticksAtTime=new Ke,this._secondsAtTime=new Ke;const t=$(Xr.getDefaults(),arguments,["frequency"]);this.frequency=new Zr({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},ue.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+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!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Le(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}hr.mixin(Pi);class cc extends xs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(cc.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return fs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new xt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new xt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class Mn extends bi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class s1 extends ue{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ke,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}Co(i=>{i.draw=new s1({context:i})});So(i=>{i.draw.dispose()});class n1 extends xs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new i1(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class i1{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}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 t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Ns extends rt{constructor(){super($(Ns.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Ns.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let r1=class ya extends rt{constructor(){super($(ya.getDefaults(),arguments)),this.name="Destination",this.input=new Ns({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(ya.getDefaults(),arguments);Di(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Di(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};Co(i=>{i.destination=new r1({context:i})});So(i=>{i.destination.dispose()});class o1 extends xs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ke({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ps extends rt{constructor(){super(Object.assign($(ps.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return ac(this,t,e,s),this}}class cn extends ps{constructor(){super(Object.assign($(cn.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(cn.getDefaults(),arguments,["mapping","length"]);je(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):Ay(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Ii extends ps{constructor(){super(Object.assign($(Ii.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Ii.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new cn({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ps.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Rs{constructor(t,e){this.id=Rs._eventId++,this._remainderTime=0;const s=Object.assign(Rs.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Rs._eventId=0;class lc extends Rs{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(lc.getDefaults(),e);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({},Rs.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Gr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Mn(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Gr(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 Mn(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);jn(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-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 Ni extends ue{constructor(){super($(Ni.getDefaults(),arguments)),this.name="Transport",this._loop=new o1(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ke,this._repeatedEvents=new n1,this._syncedSignals=[],this._swingAmount=0;const t=$(Ni.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Pi({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(ue.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new Mn(this.context,this._swingTicks*2/3).toSeconds()*n}wl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),wl(!1)}schedule(t,e){const s=new Rs(this,{callback:t,time:new bi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new lc(this,{callback:t,duration:new Ue(this.context,n).toTicks(),interval:new Ue(this.context,e).toTicks(),time:new bi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Rs(this,{callback:t,once:!0,time:new bi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new Mn(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){je(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ue(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ue(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new Mn(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new Mn(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Ii(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),ic(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}hr.mixin(Ni);Co(i=>{i.transport=new Ni({context:i})});So(i=>{i.transport.dispose()});class ee extends rt{constructor(t){super(t),this.input=void 0,this._state=new oc("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Ns({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,onstop:yt,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(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(jn(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(Nn(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else ih(this.context),this._start(n,e,s);return this}stop(t){let e=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(jn(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},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(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Bn extends zn{constructor(){super($(Bn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(Bn.getDefaults(),arguments,["url","onload"]);Is(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new kt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new xt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new xt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=Nn(e,this.loopStart):e=Nn(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;_a(o,a)&&(o=(o-c)%l+c),Le(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Gr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ri.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in bl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=bl[this._type];this._source=new Bn({url:e,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(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const wn=44100*5,$o=2,cs={brown:null,pink:null,white:null},bl={get brown(){if(!cs.brown){const i=[];for(let t=0;t<$o;t++){const e=new Float32Array(wn);i[t]=e;let s=0;for(let n=0;nthis.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(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),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 Bt._periodicWaveCache.find(e=>e.phase===this._phase&&jy(e.partials,this._partials));{const t=Bt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Bt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),Bt._periodicWaveCache.length>100&&Bt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){Be(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=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: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Fs extends Ot{constructor(){super(Object.assign($(Fs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Fs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new a1({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Fi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}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 Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Li.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Fs({context:this.context,units:"positive",value:t.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),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class qn extends ee{constructor(){super($(qn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new cn({context:this.context,mapping:e=>e<=0?-1:1});const t=$(qn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.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),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Vi.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(Be(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});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[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Fs({context:this.context,value:2});const t=$(Ui.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new qn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Cl={am:Fi,fat:Vi,fm:Li,oscillator:Bt,pulse:qn,pwm:Ui};class ln extends ee{constructor(){super($(ln.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(ln.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Bt.getDefaults(),Li.getDefaults(),Fi.getDefaults(),Vi.getDefaults(),qn.getDefaults(),Ui.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=Cl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({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(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof Cl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}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(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&fs(t)&&(this._oscillator.modulationType=t)}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(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class uc extends Ot{constructor(){super(Object.assign($(uc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Di(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Kr extends ps{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Kr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Fs({context:this.context,value:t.max-t.min}),this._add=this.output=new uc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ps.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,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 mh(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(r,i,t),e.set(this,r)}})}}function ks(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(this.toSeconds(r),i,t),e.set(this,r)}})}}class ji extends ee{constructor(){super($(ji.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(ji.getDefaults(),arguments,["url","onload"]);this._buffer=new xt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return qt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=Nn(e,this._loopStart):e=Nn(e,0);const n=this.toSeconds(e),r=s;s=Nn(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new Bn({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(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&ke(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}qe([ks(0)],ji.prototype,"fadeIn",void 0);qe([ks(0)],ji.prototype,"fadeOut",void 0);class c1 extends ps{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new cn({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Pe extends rt{constructor(){super($(Pe.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Pe.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(rt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(fs(t))return t;{let s;for(s in Sr)if(Sr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(fs(s)&&Reflect.has(Sr,s)){const n=Sr[s];Js(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(je(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(un.getDefaults(),arguments);this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(rt.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 t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),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(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class ms extends un{constructor(){super($(ms.getDefaults(),arguments));const t=$(ms.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(un.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ae?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}qe([ks(0)],ms.prototype,"portamento",void 0);class Ao extends Pe{constructor(){super($(Ao.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({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 zi extends ms{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new ln(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Ao(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(An(ln.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class Bi extends rt{constructor(){super($(Bi.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(Bi.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new kt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new kt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new kt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new kt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(rt.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ps(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),ic(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class qi extends Pe{constructor(){super($(qi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(qi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Ii({context:this.context,value:t.exponent}),this._scale=this.output=new Kr({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(Pe.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);Be(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class Wi extends ms{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(Wi.getDefaults(),arguments);this.oscillator=new ln(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Wn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new qi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Ao(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(An(Wn.getDefaults(),Object.keys(rt.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(An(qi.getDefaults(),Object.keys(rt.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(An(ln.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Hi extends zi{constructor(){super($(Hi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Hi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return In(ms.getDefaults(),zi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ae?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}qe([mh(0)],Hi.prototype,"octaves",void 0);qe([ks(0)],Hi.prototype,"pitchDecay",void 0);const _h=new Set;function hc(i){_h.add(i)}function gh(i,t){const e=`registerProcessor("${i}", ${t})`;_h.add(e)}const l1=` + */class xs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||tn&&this.toString()===tn.TONE_DEBUG_CLASS)&&Fy(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}xs.version=du;const nc=1e-6;function jn(i,t){return i>t+nc}function ga(i,t){return jn(i,t)||Le(i,t)}function Zr(i,t){return i+ncthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Le(this._timeline[e].time,t)){for(let s=e;s>=0&&Le(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&ga(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Le(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Le(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const lh=[];function So(i){lh.push(i)}function Yy(i){lh.forEach(t=>t(i))}const uh=[];function Eo(i){uh.push(i)}function $y(i){uh.forEach(t=>t(i))}class fr extends xs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(ke(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(fr.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class hh extends fr{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let ic=class dh extends hh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ke,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(dh.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Ly({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new zy(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[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(Yy(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(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}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(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return jy(this.rawContext,t,e)}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return qt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/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 En(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){En(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&$y(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class Zy extends hh{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){je(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function rc(i,t){je(t)?t.forEach(e=>rc(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends xs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,fs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Ve().sampleRate}set(t){return t instanceof xt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return qt(this,void 0,void 0,function*(){const e=xt.load(t).then(s=>{this.set(s),this.onload(this)});xt.downloads.push(e);try{yield e}finally{const s=xt.downloads.indexOf(e);xt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=je(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Ve(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ps(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];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(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new xt().fromArray(t)}static fromUrl(t){return qt(this,void 0,void 0,function*(){return yield new xt().load(t)})}static load(t){return qt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(xt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=xt.baseUrl===""||xt.baseUrl.endsWith("/")?xt.baseUrl:xt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Ve().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return qt(this,void 0,void 0,function*(){for(yield Promise.resolve();xt.downloads.length;)yield xt.downloads[0]})}}xt.baseUrl="";xt.downloads=[];class Oo extends ic{constructor(){super({clockSource:"offline",context:Fr(arguments[0])?arguments[0]:Vy(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Fr(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Fr(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return qt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return qt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new xt(e)})}close(){return Promise.resolve()}}const fh=new Zy;let Xs=fh;function Ve(){return Xs===fh&&Uy&&Xy(new ic),Xs}function Xy(i,t=!1){t&&Xs.dispose(),En(i)?Xs=new ic(i):Fr(i)?Xs=new Oo(i):Xs=i}function Qy(){return Xs.resume()}if(tn&&!tn.TONE_SILENCE_LOGGING){const t=` * Tone.js v${du} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function Ky(i){return Math.pow(10,i/20)}function Jy(i){return 20*(Math.log(i)/Math.LN10)}function ph(i){return Math.pow(2,i/12)}let Ao=440;function t1(){return Ao}function e1(i){Ao=i}function ya(i){return Math.round(mh(i))}function mh(i){return 69+12*Math.log2(i/Ao)}function s1(i){return Ao*Math.pow(2,(i-69)/12)}class oc extends xs{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof oc&&this.fromType(this._val),ke(this._val))return this._noArg();if(fs(this._val)&&ke(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Js(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return fs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*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(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ue extends oc{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ue(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ue(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ue(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return ya(this.toFrequency())}_now(){return this.context.now()}}class Ae extends Ue{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return t1()}static set A4(t){e1(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ae.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=n1[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ae.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ae(this.context,this.valueOf()*ph(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return ya(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ae.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),i1[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return s1(t)}static ftom(t){return ya(t)}}const n1={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},i1=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Ci extends Ue{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class ue extends xs{constructor(){super();const t=$(ue.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Ve()}}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(t){return Ry(t),new Ue(this.context,t).toSeconds()}toFrequency(t){return new Ae(this.context,t).toFrequency()}toTicks(t){return new Ci(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{ke(t[s])&&delete e[s]}),e}get(){const t=Hy(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof ue?t[e]=s._getPartialProperties(t[e]):je(s)||Ps(s)||fs(s)||Ny(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof ue?this[e].set(t[e]):this[e]=t[e])}),this}}class ac extends Ke{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return Be(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class rt extends ue{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?an(this.input)||this.input instanceof kt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof rt||As(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Is(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return sc("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return r1(this,t,e,s),this}chain(...t){return Pi(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof rt?this.input.dispose():As(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof rt?this.output.dispose():As(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Pi(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof rt?e.connect(s):As(e)&&Is(e,s),s),t)}function Is(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof rt||As(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof rt||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof rt;)dt(i.output)&&(i=i.output);an(t)?i.connect(t,e):i.connect(t,e,s)}function r1(i,t,e=0,s=0){if(dt(t))for(;t instanceof rt;)t=t.input;for(;!As(i);)dt(i.output)&&(i=i.output);an(t)?i.disconnect(t,e):As(t)?i.disconnect(t,e,s):i.disconnect()}class St extends rt{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new kt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends rt{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(rt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(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=yt,this}}class Xr extends zn{constructor(){super($(Xr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Xr.getDefaults(),arguments,["offset"]);Is(this._source,this._gainNode),this.offset=new kt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends rt{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Xr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return cc(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function cc(i,t,e,s){(t instanceof kt||an(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Is(i,t,e,s)}class Qr extends kt{constructor(){super($(Qr.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ke(1/0),this._multiplier=1;const t=$(Qr.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(kt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(ke(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class Kr extends Ot{constructor(){super($(Kr.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$(Kr.getDefaults(),arguments,["value"]);this.input=this._param=new Qr({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Jr extends ue{constructor(){super($(Jr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new ac,this._tickOffset=new Ke,this._ticksAtTime=new Ke,this._secondsAtTime=new Ke;const t=$(Jr.getDefaults(),arguments,["frequency"]);this.frequency=new Kr({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},ue.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+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!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Le(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}fr.mixin(Ii);class lc extends xs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(lc.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return fs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new xt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new xt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class Mn extends Ci{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class o1 extends ue{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ke,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}So(i=>{i.draw=new o1({context:i})});Eo(i=>{i.draw.dispose()});class a1 extends xs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new c1(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class c1{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}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 t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Ns extends rt{constructor(){super($(Ns.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Ns.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let l1=class va extends rt{constructor(){super($(va.getDefaults(),arguments)),this.name="Destination",this.input=new Ns({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(va.getDefaults(),arguments);Pi(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Pi(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};So(i=>{i.destination=new l1({context:i})});Eo(i=>{i.destination.dispose()});class u1 extends xs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ke({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ps extends rt{constructor(){super(Object.assign($(ps.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return cc(this,t,e,s),this}}class cn extends ps{constructor(){super(Object.assign($(cn.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(cn.getDefaults(),arguments,["mapping","length"]);je(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):Iy(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Ni extends ps{constructor(){super(Object.assign($(Ni.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Ni.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new cn({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ps.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Rs{constructor(t,e){this.id=Rs._eventId++,this._remainderTime=0;const s=Object.assign(Rs.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Rs._eventId=0;class uc extends Rs{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(uc.getDefaults(),e);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({},Rs.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Zr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Mn(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Zr(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 Mn(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);jn(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-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 Ri extends ue{constructor(){super($(Ri.getDefaults(),arguments)),this.name="Transport",this._loop=new u1(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ke,this._repeatedEvents=new a1,this._syncedSignals=[],this._swingAmount=0;const t=$(Ri.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Ii({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(ue.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new Mn(this.context,this._swingTicks*2/3).toSeconds()*n}wl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),wl(!1)}schedule(t,e){const s=new Rs(this,{callback:t,time:new Ci(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new uc(this,{callback:t,duration:new Ue(this.context,n).toTicks(),interval:new Ue(this.context,e).toTicks(),time:new Ci(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Rs(this,{callback:t,once:!0,time:new Ci(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new Mn(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){je(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ue(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ue(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new Mn(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new Mn(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Ni(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),rc(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}fr.mixin(Ri);So(i=>{i.transport=new Ri({context:i})});Eo(i=>{i.transport.dispose()});class ee extends rt{constructor(t){super(t),this.input=void 0,this._state=new ac("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Ns({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,onstop:yt,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(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(jn(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(Nn(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else rh(this.context),this._start(n,e,s);return this}stop(t){let e=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(jn(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},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(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Bn extends zn{constructor(){super($(Bn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(Bn.getDefaults(),arguments,["url","onload"]);Is(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new kt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new xt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new xt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=Nn(e,this.loopStart):e=Nn(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;ga(o,a)&&(o=(o-c)%l+c),Le(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Zr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Fi.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in bl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=bl[this._type];this._source=new Bn({url:e,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(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const wn=44100*5,Zo=2,cs={brown:null,pink:null,white:null},bl={get brown(){if(!cs.brown){const i=[];for(let t=0;tthis.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(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),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 Bt._periodicWaveCache.find(e=>e.phase===this._phase&&Wy(e.partials,this._partials));{const t=Bt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Bt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),Bt._periodicWaveCache.length>100&&Bt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){Be(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=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: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Fs extends Ot{constructor(){super(Object.assign($(Fs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Fs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new h1({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Li.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}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 Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Vi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Fs({context:this.context,units:"positive",value:t.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),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class qn extends ee{constructor(){super($(qn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new cn({context:this.context,mapping:e=>e<=0?-1:1});const t=$(qn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.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),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Ui.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(Be(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});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[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class ji extends ee{constructor(){super($(ji.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Fs({context:this.context,value:2});const t=$(ji.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new qn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Cl={am:Li,fat:Ui,fm:Vi,oscillator:Bt,pulse:qn,pwm:ji};class ln extends ee{constructor(){super($(ln.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(ln.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Bt.getDefaults(),Vi.getDefaults(),Li.getDefaults(),Ui.getDefaults(),qn.getDefaults(),ji.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=Cl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({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(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof Cl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}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(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&fs(t)&&(this._oscillator.modulationType=t)}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(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class hc extends Ot{constructor(){super(Object.assign($(hc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Pi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class eo extends ps{constructor(){super(Object.assign($(eo.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(eo.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Fs({context:this.context,value:t.max-t.min}),this._add=this.output=new hc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ps.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,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 _h(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(r,i,t),e.set(this,r)}})}}function ks(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(this.toSeconds(r),i,t),e.set(this,r)}})}}class zi extends ee{constructor(){super($(zi.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(zi.getDefaults(),arguments,["url","onload"]);this._buffer=new xt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return qt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=Nn(e,this._loopStart):e=Nn(e,0);const n=this.toSeconds(e),r=s;s=Nn(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new Bn({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(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&ke(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}qe([ks(0)],zi.prototype,"fadeIn",void 0);qe([ks(0)],zi.prototype,"fadeOut",void 0);class d1 extends ps{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new cn({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Pe extends rt{constructor(){super($(Pe.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Pe.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(rt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(fs(t))return t;{let s;for(s in Ar)if(Ar[s][e]===t)return s;return t}}_setCurve(t,e,s){if(fs(s)&&Reflect.has(Ar,s)){const n=Ar[s];Js(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(je(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(un.getDefaults(),arguments);this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(rt.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 t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),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(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class ms extends un{constructor(){super($(ms.getDefaults(),arguments));const t=$(ms.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(un.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ae?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}qe([ks(0)],ms.prototype,"portamento",void 0);class Mo extends Pe{constructor(){super($(Mo.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({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 Bi extends ms{constructor(){super($(Bi.getDefaults(),arguments)),this.name="Synth";const t=$(Bi.getDefaults(),arguments);this.oscillator=new ln(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Mo(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(An(ln.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class qi extends rt{constructor(){super($(qi.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(qi.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new kt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new kt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new kt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new kt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(rt.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ps(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),rc(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class Wi extends Pe{constructor(){super($(Wi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(Wi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Ni({context:this.context,value:t.exponent}),this._scale=this.output=new eo({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(Pe.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);Be(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class Hi extends ms{constructor(){super($(Hi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(Hi.getDefaults(),arguments);this.oscillator=new ln(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Wn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new Wi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Mo(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(An(Wn.getDefaults(),Object.keys(rt.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(An(Wi.getDefaults(),Object.keys(rt.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(An(ln.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Gi extends Bi{constructor(){super($(Gi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Gi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return In(ms.getDefaults(),Bi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ae?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}qe([_h(0)],Gi.prototype,"octaves",void 0);qe([ks(0)],Gi.prototype,"pitchDecay",void 0);const gh=new Set;function dc(i){gh.add(i)}function yh(i,t){const e=`registerProcessor("${i}", ${t})`;gh.add(e)}const f1=` /** * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. */ @@ -180,7 +180,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a }; } } -`;hc(l1);const u1=` +`;dc(f1);const p1=` /** * Abstract class for a single input/output processor. * has a 'generate' function which processes one sample at a time @@ -247,7 +247,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a return !this.disposed; } }; -`;hc(u1);const h1=` +`;dc(p1);const m1=` /** * A multichannel buffer for use within an AudioWorkletProcessor as a delay line */ @@ -291,7 +291,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a return this.buffer[channel][readHead]; } } -`;hc(h1);const d1="feedback-comb-filter",f1=` +`;dc(m1);const _1="feedback-comb-filter",g1=` class FeedbackCombFilterWorklet extends SingleIOProcessor { constructor(options) { @@ -321,7 +321,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a return delayedSample; } } -`;gh(d1,f1);class Gi extends un{constructor(){super($(Gi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Gi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(Cr(s)||Ps(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),Cr(s)){const r=new Ae(this.context,s).toMidi();e[r]=t.urls[s]}else Ps(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new cc({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(un.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=ph(new Ae(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=fh(c+a),d=new Bn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),je(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ae(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),je(e)?(ut(je(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(Cr(t)||isFinite(t),`note must be a pitch or midi: ${t}`),Cr(t)){const n=new Ae(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}qe([ks(0)],Gi.prototype,"attack",void 0);qe([ks(0)],Gi.prototype,"release",void 0);class Jr extends rt{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new c1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(Jr.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Is(this._split,this.a.gain,0),Is(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(rt.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 Sl extends rt{constructor(t){super(t),this.name="Effect",this._dryWet=new Jr({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(rt.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class to extends rt{constructor(){super(Object.assign($(to.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(to.getDefaults(),arguments,["pan"]);this.pan=new kt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const p1="bit-crusher",m1=` +`;yh(_1,g1);class Yi extends un{constructor(){super($(Yi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Yi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(Or(s)||Ps(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),Or(s)){const r=new Ae(this.context,s).toMidi();e[r]=t.urls[s]}else Ps(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new lc({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(un.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=mh(new Ae(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=ph(c+a),d=new Bn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),je(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ae(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),je(e)?(ut(je(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(Or(t)||isFinite(t),`note must be a pitch or midi: ${t}`),Or(t)){const n=new Ae(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}qe([ks(0)],Yi.prototype,"attack",void 0);qe([ks(0)],Yi.prototype,"release",void 0);class so extends rt{constructor(){super(Object.assign($(so.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new d1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(so.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Is(this._split,this.a.gain,0),Is(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(rt.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 Sl extends rt{constructor(t){super(t),this.name="Effect",this._dryWet=new so({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(rt.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class no extends rt{constructor(){super(Object.assign($(no.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(no.getDefaults(),arguments,["pan"]);this.pan=new kt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const y1="bit-crusher",v1=` class BitCrusherWorklet extends SingleIOProcessor { static get parameterDescriptors() { @@ -340,7 +340,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a return val; } } -`;gh(p1,m1);class eo extends rt{constructor(){super($(eo.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(eo.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(rt.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class so extends Sl{constructor(){super($(so.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(so.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Sl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),Be(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),Be(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new Eo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ri({context:e}),n=new Ri({context:e}),r=new eo({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class jt extends rt{constructor(){super($(jt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(jt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),jt._allSolos.has(this.context)||jt._allSolos.set(this.context,new Set),jt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(rt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),jt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){jt._soloed.has(this.context)||jt._soloed.set(this.context,new Set),jt._soloed.get(this.context).add(this)}_removeSolo(){jt._soloed.has(this.context)&&jt._soloed.get(this.context).delete(this)}_isSoloed(){return jt._soloed.has(this.context)&&jt._soloed.get(this.context).has(this)}_noSolos(){return!jt._soloed.has(this.context)||jt._soloed.has(this.context)&&jt._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(),jt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}jt._allSolos=new Map;jt._soloed=new Map;class no extends rt{constructor(){super($(no.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(no.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new to({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Zs extends rt{constructor(){super($(Zs.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$(Zs.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new jt({solo:t.solo,context:this.context}),this._panVol=this.output=new no({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return Zs.buses.has(t)||Zs.buses.set(t,new St({context:this.context})),Zs.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Zs.buses=new Map;class _1 extends rt{constructor(){super(...arguments),this.name="Listener",this.positionX=new kt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new kt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new kt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new kt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new kt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new kt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new kt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new kt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new kt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(rt.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}}Co(i=>{i.listener=new _1({context:i})});So(i=>{i.listener.dispose()});Ve().transport;const dc=Ve().destination;Ve().destination;Ve().listener;Ve().draw;Ve();const fc=new Wn(900,"highpass"),yh=new Ns(-6);yh.chain(fc,dc);const g1=new so(3).connect(yh),Mo=new Wi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Mo.oscillator.type="triangle2";Mo.volume.value=-6;Mo.chain(fc,dc);const Do=new Wi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(g1);Do.oscillator.type="triangle";Do.volume.value=-6;Do.chain(fc,dc);function y1(){return Math.floor((Math.random()-.5)*20)}let El=!1;const v1=async(i=0)=>{El||(await Yy(),El=!0);try{if(i>2e3)Do.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=y1(),Mo.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Er=1800,x1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),k1=(i,t,e,s,n)=>{const r=new su,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new If(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Dr(c,2)),a};k1(10,10,10,2,10);const Ol=new Pf(10,10,10),T1=500,w1=800,b1=new at(0,0,0),C1=16777215,S1=20,E1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let _i=null;const O1=500,vh=(i,t)=>{if(_i)return null;_i=setTimeout(()=>{_i&&(clearTimeout(_i),_i=null)},O1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(b1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,T1).map(n=>n.id)};let bn,gi;const A1=1e3,M1=2e3,D1=i=>{const t=We(),e=Os(x=>x.isUserDragging),s=Os(x=>x.isUserScrolling),n=Os(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=oe(x=>x),{camera:h}=It(),[d,p]=D.useState(!1),[_,f]=D.useState(!1),[m,v]=D.useState(il),b=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(I=>I.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new at(0,0,C);if(x&&r){const I=r==null?void 0:r.nodes.filter(G=>{var z;return(z=x.children)==null?void 0:z.find(j=>j===G.id)}),M=new at(x.x,x.y,x.z);let U=new at(0,0,0);I.map(G=>(U=U.add(new at(G.x,G.y,G.z).normalize()),G));const W=x.scale?1-1/(x.scale+10):1,Y=M.sub(U).multiplyScalar(.8*W);O=M.add(Y)}return O},[a,t,r,u]),w=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new at((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);D.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Go.x,Go.y,Go.z,0,0,0,!1)),g()},[a]),D.useEffect(()=>{a?v(T0):(t==null?void 0:t.node_type)==="topic"?v(k0):v(il)},[t,v,a]),D.useEffect(()=>{y()},[l]),D.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),D.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new at),C=x1(w,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else bn&&clearTimeout(bn),bn=setTimeout(()=>{f(!0),clearTimeout(bn)},M1),g();return()=>{bn&&clearTimeout(bn),gi&&clearTimeout(gi)}},[t]),be(x=>{i.current&&(d||k(b,x.camera),_||T(w,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(b);v1(x)}y()},y=()=>{p(!1),f(!1),n(!1),gi&&clearTimeout(gi),gi=setTimeout(()=>{p(!0),f(!0)},A1)},k=(x,C)=>{if(C.position.distanceTo(x){var O;(O=i==null?void 0:i.current)==null||O.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},P1=1;let Or=null;const I1=(i,{enabled:t})=>{const e=We();D1(i);const s=Os(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=oe(a=>a);return D.useEffect(()=>{t||(Or==null||Or.kill(),Or=null)},[t]),D.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),D.useEffect(()=>{!e&&i.current&&i.current.setLookAt(wi.x,wi.y,r,0,0,0,!0)},[e,r]),be((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=P1*c*Nf.DEG2RAD),i.current.update(c))}),null},N1=({disableAnimations:i})=>{const t=D.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=oe(h=>h),[r]=D.useState(.8),{camera:o}=It(),[a,c,l,u]=Os(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return I1(t,{enabled:!i&&!l&&!a}),D.useEffect(()=>{if(!a){const h=vh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),D.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(t0,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function us(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function xh(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! +`;yh(y1,v1);class io extends rt{constructor(){super($(io.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(io.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(rt.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class ro extends Sl{constructor(){super($(ro.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(ro.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Sl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),Be(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),Be(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new Oo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Fi({context:e}),n=new Fi({context:e}),r=new io({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class jt extends rt{constructor(){super($(jt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(jt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),jt._allSolos.has(this.context)||jt._allSolos.set(this.context,new Set),jt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(rt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),jt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){jt._soloed.has(this.context)||jt._soloed.set(this.context,new Set),jt._soloed.get(this.context).add(this)}_removeSolo(){jt._soloed.has(this.context)&&jt._soloed.get(this.context).delete(this)}_isSoloed(){return jt._soloed.has(this.context)&&jt._soloed.get(this.context).has(this)}_noSolos(){return!jt._soloed.has(this.context)||jt._soloed.has(this.context)&&jt._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(),jt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}jt._allSolos=new Map;jt._soloed=new Map;class oo extends rt{constructor(){super($(oo.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(oo.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new no({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Zs extends rt{constructor(){super($(Zs.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$(Zs.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new jt({solo:t.solo,context:this.context}),this._panVol=this.output=new oo({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return Zs.buses.has(t)||Zs.buses.set(t,new St({context:this.context})),Zs.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Zs.buses=new Map;class x1 extends rt{constructor(){super(...arguments),this.name="Listener",this.positionX=new kt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new kt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new kt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new kt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new kt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new kt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new kt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new kt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new kt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(rt.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}}So(i=>{i.listener=new x1({context:i})});Eo(i=>{i.listener.dispose()});Ve().transport;const fc=Ve().destination;Ve().destination;Ve().listener;Ve().draw;Ve();const pc=new Wn(900,"highpass"),vh=new Ns(-6);vh.chain(pc,fc);const k1=new ro(3).connect(vh),Do=new Hi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Do.oscillator.type="triangle2";Do.volume.value=-6;Do.chain(pc,fc);const Po=new Hi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(k1);Po.oscillator.type="triangle";Po.volume.value=-6;Po.chain(pc,fc);function T1(){return Math.floor((Math.random()-.5)*20)}let El=!1;const w1=async(i=0)=>{El||(await Qy(),El=!0);try{if(i>2e3)Po.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=T1(),Do.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Mr=1800,b1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),C1=(i,t,e,s,n)=>{const r=new nu,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new Lf(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Nr(c,2)),a};C1(10,10,10,2,10);const Ol=new Ff(10,10,10),S1=500,E1=800,O1=new at(0,0,0),A1=16777215,M1=20,D1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let gi=null;const P1=500,xh=(i,t)=>{if(gi)return null;gi=setTimeout(()=>{gi&&(clearTimeout(gi),gi=null)},P1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(O1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,S1).map(n=>n.id)};let bn,yi;const I1=1e3,N1=2e3,R1=i=>{const t=We(),e=Os(x=>x.isUserDragging),s=Os(x=>x.isUserScrolling),n=Os(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=oe(x=>x),{camera:h}=It(),[d,p]=D.useState(!1),[_,f]=D.useState(!1),[m,v]=D.useState(il),b=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(P=>P.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new at(0,0,C);if(x&&r){const P=r==null?void 0:r.nodes.filter(G=>{var z;return(z=x.children)==null?void 0:z.find(j=>j===G.id)}),M=new at(x.x,x.y,x.z);let V=new at(0,0,0);P.map(G=>(V=V.add(new at(G.x,G.y,G.z).normalize()),G));const B=x.scale?1-1/(x.scale+10):1,Y=M.sub(V).multiplyScalar(.8*B);O=M.add(Y)}return O},[a,t,r,u]),w=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new at((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);D.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Yo.x,Yo.y,Yo.z,0,0,0,!1)),g()},[a]),D.useEffect(()=>{a?v(S0):(t==null?void 0:t.node_type)==="topic"?v(C0):v(il)},[t,v,a]),D.useEffect(()=>{y()},[l]),D.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),D.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new at),C=b1(w,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else bn&&clearTimeout(bn),bn=setTimeout(()=>{f(!0),clearTimeout(bn)},N1),g();return()=>{bn&&clearTimeout(bn),yi&&clearTimeout(yi)}},[t]),be(x=>{i.current&&(d||k(b,x.camera),_||T(w,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(b);w1(x)}y()},y=()=>{p(!1),f(!1),n(!1),yi&&clearTimeout(yi),yi=setTimeout(()=>{p(!0),f(!0)},I1)},k=(x,C)=>{if(C.position.distanceTo(x){var O;(O=i==null?void 0:i.current)==null||O.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},F1=1;let Dr=null;const L1=(i,{enabled:t})=>{const e=We();R1(i);const s=Os(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=oe(a=>a);return D.useEffect(()=>{t||(Dr==null||Dr.kill(),Dr=null)},[t]),D.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),D.useEffect(()=>{!e&&i.current&&i.current.setLookAt(bi.x,bi.y,r,0,0,0,!0)},[e,r]),be((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=F1*c*Vf.DEG2RAD),i.current.update(c))}),null},V1=({disableAnimations:i})=>{const t=D.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=oe(h=>h),[r]=D.useState(.8),{camera:o}=It(),[a,c,l,u]=Os(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return L1(t,{enabled:!i&&!l&&!a}),D.useEffect(()=>{if(!a){const h=xh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),D.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(i0,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function us(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function kh(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! * GSAP 3.12.4 * https://gsap.com * @@ -348,7 +348,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a * 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 Te={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hn={duration:.5,overwrite:!1,delay:0},pc,Jt,Lt,Me=1e8,Ct=1/Me,va=Math.PI*2,R1=va/4,F1=0,kh=Math.sqrt,L1=Math.cos,V1=Math.sin,Xt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},_s=function(t){return typeof t=="number"},mc=function(t){return typeof t>"u"},es=function(t){return typeof t=="object"},he=function(t){return t!==!1},_c=function(){return typeof window<"u"},Ar=function(t){return Vt(t)||Xt(t)},Th=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,xa=/(?:-?\.?\d|\.)+/gi,wh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Dn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Zo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,bh=/[+-]=-?[.\d]+/,Ch=/[^,'"\[\]\s]+/gi,U1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ee,ka,gc,we={},io={},Sh,Eh=function(t){return(io=hn(t,we))&&_e},yc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Yi=function(t,e){return!e&&console.warn(t)},Oh=function(t,e){return t&&(we[t]=e)&&io&&(io[t]=e)||we},$i=function(){return 0},j1={suppressEvents:!0,isStart:!0,kill:!1},Nr={suppressEvents:!0,kill:!1},z1={suppressEvents:!0},vc={},Ms=[],Ta={},Ah,ye={},Xo={},Al=30,Rr=[],xc="",kc=function(t){var e=t[0],s,n;if(es(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Rr.length;n--&&!Rr[n].targetTest(e););s=Rr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Jh(t[n],s)))||t.splice(n,1);return t},en=function(t){return t._gsap||kc(De(t))[0]._gsap},Mh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():mc(s)&&t.getAttribute&&t.getAttribute(e)||s},de=function(t,e){return(t=t.split(",")).forEach(e)||t},zt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Rn=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},B1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Po=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Ls=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},sn=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},H1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},wa=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Nr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},G1=function i(t){return!t||t._ts&&i(t.parent)},Dl=function(t){return t._repeat?Gn(t._tTime,t=t.duration()+t._rDelay)*t:0},Gn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},ao=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Io=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},No=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Io(t),s._dirty||sn(s,t)),t},Rh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),sn(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},Xe=function(t,e,s,n){return e.parent&&Ls(e),e._start=$t((_s(s)?s:s||t!==Nt?Se(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Nh(t,e,"_first","_last",t._sort?"_start":0),ba(e)||(t._recent=e),n||Rh(t,e),t._ts<0&&No(t,t._tTime),t},Fh=function(t,e){return(we.ScrollTrigger||yc("scrollTrigger",e))&&we.ScrollTrigger.create(e,t)},Lh=function(t,e,s,n,r){if(wc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ah!==ve.frame)return Ms.push(t),t._lazy=[r,n],1},Y1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},ba=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},$1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&Y1(t)&&!(!t._initted&&ba(t))||(t._ts<0||t._dp._ts<0)&&!ba(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=dr(0,t._tDur,e),u=Gn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Gn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Lh(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&wa(t,e,s,!0),t._onUpdate&&!s&&xe(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&xe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Ls(t,1),!s&&!Jt&&(xe(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Z1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&No(t,t._tTime=t._tDur*a),t.parent&&Io(t),s||sn(t.parent,t),t},Pl=function(t){return t instanceof ie?sn(t):Yn(t,t._dur)},X1={_start:0,endTime:$i,totalDuration:$i},Se=function i(t,e,s){var n=t.labels,r=t._recent||X1,o=t.duration()>=Me?r.endTime(!1):t._dur,a,c,l;return Xt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Si=function(t,e,s){var n=_s(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=he(c.vars.inherit)&&c.parent;o.immediateRender=he(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},Bs=function(t,e){return t||t===0?e(t):e},dr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Xt(t)||!(e=U1.exec(t))?"":e[1]},Q1=function(t,e,s){return Bs(s,function(n){return dr(t,e,n)})},Ca=[].slice,Vh=function(t,e){return t&&es(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&es(t[0]))&&!t.nodeType&&t!==Ee},K1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Xt(n)&&!e||Vh(n,1)?(r=s).push.apply(r,De(n)):s.push(n)})||s},De=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Xt(t)&&!s&&(ka||!$n())?Ca.call((e||gc).querySelectorAll(t),0):te(t)?K1(t,s):Vh(t)?Ca.call(t,0):t?[t]:[]},Sa=function(t){return t=De(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return De(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||gc.createElement("div"):t)}},Uh=function(t){return t.sort(function(){return .5-Math.random()})},jh=function(t){if(Vt(t))return t;var e=es(t)?t:{each:t},s=nn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Xt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,b,w,g,y,k,T,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Me])[1],!C){for(T=-Me;T<(T=_[C++].getBoundingClientRect().left)&&CT&&(T=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?Xh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},Ea=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(_s(s)?0:Kt(s))}},zh=function(t,e){var s=te(t),n,r;return!s&&es(t)&&(n=s=t.radius||Me,t.values?(t=De(t.values),(r=!_s(t[0]))&&(n*=n)):t=Ea(t.increment)),Bs(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Me,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},Zi=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?Ch:xa),s+=t.substr(e,n-e)+Bh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},Wh=function(t,e,s,n,r){var o=e-t,a=n-s;return Bs(r,function(c){return s+((c-t)/o*a||0)})},iv=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Xt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},xe=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&Ms.length&&ro(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},xi=function(t){return Ls(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&xe(t,"onInterrupt"),t},Pn,Hh=[],Gh=function(t){if(_c()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:$i,render:Sc,add:Tc,kill:xv,modifier:vv,rawVars:0},o={targetTest:0,get:0,getSetter:Cc,aliases:{},register:0};if($n(),t!==n){if(ye[e])return;Ie(n,Ie(oo(t,r),o)),hn(n.prototype,hn(r,oo(t,o))),ye[n.prop=e]=n,t.targetTest&&(Rr.push(n),vc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Oh(e,n),t.register&&t.register(_e,n,fe)}else t&&Hh.push(t)},bt=255,ki={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Qo=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},Yh=function(t,e,s){var n=t?_s(t)?[t>>16,t>>8&bt,t&bt]:0:ki.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ki[t])n=ki[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(xa),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Qo(c+1/3,r,o),n[1]=Qo(c,r,o),n[2]=Qo(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(wh),s&&n.length<4&&(n[3]=1),n}else n=t.match(xa)||ki.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,w=y-o,(w>0||b)&&(k=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=r?4:r-w),g=1),b||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),$n=function(){return!Xi&&ve.wake()},ft={},ov=/^[\d.\-M][\d.\-,\s]/,av=/["']/g,cv=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[cv(e[1])]:lv(t).split(",").map(Ph)):ft._CE&&ov.test(t)?ft._CE("",t):s},Xh=function(t){return function(e){return 1-t(1-e)}},Qh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},nn=function(t,e){return t&&(Vt(t)?t:ft[t]||uv(t))||e},_n=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return de(t,function(a){ft[a]=we[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},Kh=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Ko=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/va*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*V1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Kh(a);return r=va/r,c.config=function(l,u){return i(t,l,u)},c},Jo=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:Kh(s);return n.config=function(r){return i(t,r)},n};de("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;_n(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;_n("Elastic",Ko("in"),Ko("out"),Ko());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if($n(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(No(this,s),!r._dp||r.parent||Rh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&Xe(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Dh(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Dl(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Dl(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Gn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?ao(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(dr(-Math.abs(this._delay),this._tDur,r),n!==!1),Io(this),H1(this)},t.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):($n(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Xe(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(he(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ao(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=z1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Pl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Pl(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(Se(this,s),he(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,he(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Ih,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){xi(this)},i}();Ie(Qi.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:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){xh(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=he(s.sortChildren),Nt&&Xe(s.parent||Nt,us(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Fh(us(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Si(0,arguments,this),this},e.from=function(n,r,o){return Si(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Si(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,Ci(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,Se(this,o),1),this},e.call=function(n,r,o){return Xe(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,Se(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,Ci(o).immediateRender=he(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,Ci(a).immediateRender=he(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,b,w,g,y,k,T;if(this!==Nt&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,w=this._ts,v=!w,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Gn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),k&&f&1&&(d=l-d,T=1),f!==y&&!this._lock){var x=k&&y&1,C=x===(k&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var O=n<0?n:d;p;){if(_=p._prev,(p._act||O<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(O-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(O-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(b&&!r&&(this.pause(),b.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Io(this),this.render(n,r,o);this._onUpdate&&!r&&xe(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ls(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(xe(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(_s(r)||(r=Se(this,r,n)),!(n instanceof Qi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Xt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?Xe(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Me);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Xt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Po(this,n),n===this._recent&&(this._recent=this._last),sn(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ve.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=Se(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||$i,o);return a.data="isPause",this._hasPause=1,Xe(this,a,Se(this,n))},e.removePause=function(n){var r=this._first;for(n=Se(this,n);r;)r._start===n&&r.data==="isPause"&&Ls(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)Cs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=De(n),c=this._first,l=_s(r),u;c;)c instanceof Ht?B1(c._targets,a)&&(l?(!Cs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=Se(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,Ie({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,Ie({startAt:{time:Se(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return sn(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),sn(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Me,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));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,Xe(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=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>r&&a._ts&&(r=a._end),a=l;Yn(o,o===Nt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(Nt._ts&&(Dh(Nt,ao(n,Nt)),Ah=ve.frame),ve.frame>=Al){Al+=Te.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&Te.autoSleep&&ve._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ve.sleep()}}},t}(Qi);Ie(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var hv=function(t,e,s,n,r,o,a){var c=new fe(this._pt,t,e,0,1,rd,null,r),l=0,u=0,h,d,p,_,f,m,v,b;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=Zi(n)),o&&(b=[s,n],o(b,t,e),s=b[0],n=b[1]),d=s.match(Zo)||[];h=Zo.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?Rn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Zo.lastIndex);return c.c=l")}),g.duration();else{k={};for(x in _)x==="ease"||x==="easeEach"||mv(x,_[x],k,_.easeEach);for(x in k)for(U=k[x].sort(function(G,z){return G.t-z.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Gn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(w&&this._yEase&&Qh(w,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Lh(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(g||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!a&&!r&&!_&&(xe(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;w&&w.render(n<0?n:!d&&v?-Ct:w._dur*w._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&wa(this,n,r,o),xe(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&xe(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&wa(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ls(this,1),!r&&!(u&&!a)&&(h||a||v)&&(xe(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Xi||ve.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||wc(this,l),u=this._ease(l/this._dur),fv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(No(this,0),this.parent||Nh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?xi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,Cs&&Cs.vars.overwrite!==!0)._first||xi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?De(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&W1(a,c))return r==="all"&&(this._pt=0),xi(this);for(h=this._op=this._op||[],r!=="all"&&(Xt(r)&&(f={},de(r,function(b){return f[b]=1}),r=f),r=pv(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Po(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&xi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Si(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Si(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return Nt.killTweensOf(n,r,o)},t}(Qi);Ie(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});de("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=Ca.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var bc=function(t,e,s){return t[e]=s},nd=function(t,e,s){return t[e](s)},_v=function(t,e,s,n){return t[e](n.fp,s)},gv=function(t,e,s){return t.setAttribute(e,s)},Cc=function(t,e){return Vt(t[e])?nd:mc(t[e])&&t.setAttribute?gv:bc},id=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},yv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},rd=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Sc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},vv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},xv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Po(this,e,"_pt"):e.dep||(s=1),e=n;return!s},kv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},od=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},fe=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||id,this.d=c||this,this.set=l||bc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=kv,this.m=s,this.mt=r,this.tween=n},i}();de(xc+"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(i){return vc[i]=1});we.TweenMax=we.TweenLite=Ht;we.TimelineLite=we.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Hn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Te.stringFilter=Zh;var rn=[],Fr={},Tv=[],Rl=0,wv=0,ta=function(t){return(Fr[t]||Tv).map(function(e){return e()})},Aa=function(){var t=Date.now(),e=[];t-Rl>2&&(ta("matchMediaInit"),rn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ee.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),ta("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Rl=t,ta("matchMedia"))},ad=function(){function i(e,s){this.selector=s&&Sa(s),this.data=[],this._r=[],this.isReverted=!1,this.id=wv++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Sa(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.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=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=rn.length;o--;)rn[o].id===this.id&&rn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),bv=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){es(s)||(s={matches:s});var o=new ad(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ee.matchMedia(s[l]),c&&(rn.indexOf(o)<0&&rn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Aa):c.addEventListener("change",Aa)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),co={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ye[e],a=en(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Pn._pt=0,h.init(t,s?u+s:u,Pn,0,[t]),h.render(1,h),Pn._pt&&Sc(1,Pn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,hn((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=nn(t.ease,Hn.ease)),Ml(Hn,t||{})},config:function(t){return Ml(Te,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ye[a]&&!we[a]&&Yi(e+" effect requires "+a+" plugin.")}),Xo[e]=function(a,c,l){return s(De(a),Ie(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Xo[e](a,es(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=nn(e)},parseEase:function(t,e){return arguments.length?nn(t,e):ft},getById:function(t){return Nt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=he(t.smoothChildTiming),Nt.remove(s),s._dp=0,s._time=s._tTime=Nt._time,n=Nt._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&Xe(s,n,n._start-n._delay),n=r;return Xe(Nt,s,0),s},context:function(t,e){return t?new ad(t,e):Lt},matchMedia:function(t){return new bv(t)},matchMediaRefresh:function(){return rn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Aa()},addEventListener:function(t,e){var s=Fr[t]||(Fr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Fr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:sv,wrapYoyo:nv,distribute:jh,random:Bh,snap:zh,normalize:ev,getUnit:Kt,clamp:Q1,splitColor:Yh,toArray:De,selector:Sa,mapRange:Wh,pipe:J1,unitize:tv,interpolate:iv,shuffle:Uh},install:Eh,effects:Xo,ticker:ve,updateRoot:ie.updateRoot,plugins:ye,globalTimeline:Nt,core:{PropTween:fe,globals:Oh,Tween:Ht,Timeline:ie,Animation:Qi,getCache:en,_removeLinkedListItem:Po,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return pc=t}}};de("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return co[i]=Ht[i]});ve.add(ie.updateRoot);Pn=co.to({},{duration:0});var Cv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},Sv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=Cv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},ea=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Xt(r)&&(c={},de(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}Sv(a,r)}}}},_e=co.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},ea("roundProps",Ea),ea("modifiers"),ea("snap",zh))||co;Ht.version=ie.version=_e.version="3.12.4";Sh=1;_c()&&$n();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! +*/var Te={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hn={duration:.5,overwrite:!1,delay:0},mc,Jt,Lt,Me=1e8,Ct=1/Me,xa=Math.PI*2,U1=xa/4,j1=0,Th=Math.sqrt,z1=Math.cos,B1=Math.sin,Xt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},_s=function(t){return typeof t=="number"},_c=function(t){return typeof t>"u"},es=function(t){return typeof t=="object"},he=function(t){return t!==!1},gc=function(){return typeof window<"u"},Pr=function(t){return Vt(t)||Xt(t)},wh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,ka=/(?:-?\.?\d|\.)+/gi,bh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Dn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Xo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ch=/[+-]=-?[.\d]+/,Sh=/[^,'"\[\]\s]+/gi,q1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ee,Ta,yc,we={},ao={},Eh,Oh=function(t){return(ao=hn(t,we))&&_e},vc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},$i=function(t,e){return!e&&console.warn(t)},Ah=function(t,e){return t&&(we[t]=e)&&ao&&(ao[t]=e)||we},Zi=function(){return 0},W1={suppressEvents:!0,isStart:!0,kill:!1},Lr={suppressEvents:!0,kill:!1},H1={suppressEvents:!0},xc={},Ms=[],wa={},Mh,ye={},Qo={},Al=30,Vr=[],kc="",Tc=function(t){var e=t[0],s,n;if(es(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Vr.length;n--&&!Vr[n].targetTest(e););s=Vr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new td(t[n],s)))||t.splice(n,1);return t},en=function(t){return t._gsap||Tc(De(t))[0]._gsap},Dh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():_c(s)&&t.getAttribute&&t.getAttribute(e)||s},de=function(t,e){return(t=t.split(",")).forEach(e)||t},zt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Rn=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},G1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Io=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Ls=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},sn=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},Z1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},ba=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Lr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},X1=function i(t){return!t||t._ts&&i(t.parent)},Dl=function(t){return t._repeat?Gn(t._tTime,t=t.duration()+t._rDelay)*t:0},Gn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},uo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},No=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},Ro=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),No(t),s._dirty||sn(s,t)),t},Fh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),sn(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},Xe=function(t,e,s,n){return e.parent&&Ls(e),e._start=$t((_s(s)?s:s||t!==Nt?Se(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Rh(t,e,"_first","_last",t._sort?"_start":0),Ca(e)||(t._recent=e),n||Fh(t,e),t._ts<0&&Ro(t,t._tTime),t},Lh=function(t,e){return(we.ScrollTrigger||vc("scrollTrigger",e))&&we.ScrollTrigger.create(e,t)},Vh=function(t,e,s,n,r){if(bc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Mh!==ve.frame)return Ms.push(t),t._lazy=[r,n],1},Q1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},Ca=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},K1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&Q1(t)&&!(!t._initted&&Ca(t))||(t._ts<0||t._dp._ts<0)&&!Ca(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=pr(0,t._tDur,e),u=Gn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Gn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Vh(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&ba(t,e,s,!0),t._onUpdate&&!s&&xe(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&xe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Ls(t,1),!s&&!Jt&&(xe(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},J1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&Ro(t,t._tTime=t._tDur*a),t.parent&&No(t),s||sn(t.parent,t),t},Pl=function(t){return t instanceof ie?sn(t):Yn(t,t._dur)},tv={_start:0,endTime:Zi,totalDuration:Zi},Se=function i(t,e,s){var n=t.labels,r=t._recent||tv,o=t.duration()>=Me?r.endTime(!1):t._dur,a,c,l;return Xt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Ei=function(t,e,s){var n=_s(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=he(c.vars.inherit)&&c.parent;o.immediateRender=he(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},Bs=function(t,e){return t||t===0?e(t):e},pr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Xt(t)||!(e=q1.exec(t))?"":e[1]},ev=function(t,e,s){return Bs(s,function(n){return pr(t,e,n)})},Sa=[].slice,Uh=function(t,e){return t&&es(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&es(t[0]))&&!t.nodeType&&t!==Ee},sv=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Xt(n)&&!e||Uh(n,1)?(r=s).push.apply(r,De(n)):s.push(n)})||s},De=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Xt(t)&&!s&&(Ta||!$n())?Sa.call((e||yc).querySelectorAll(t),0):te(t)?sv(t,s):Uh(t)?Sa.call(t,0):t?[t]:[]},Ea=function(t){return t=De(t)[0]||$i("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return De(e,s.querySelectorAll?s:s===t?$i("Invalid scope")||yc.createElement("div"):t)}},jh=function(t){return t.sort(function(){return .5-Math.random()})},zh=function(t){if(Vt(t))return t;var e=es(t)?t:{each:t},s=nn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Xt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,b,w,g,y,k,T,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Me])[1],!C){for(T=-Me;T<(T=_[C++].getBoundingClientRect().left)&&CT&&(T=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?Qh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},Oa=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(_s(s)?0:Kt(s))}},Bh=function(t,e){var s=te(t),n,r;return!s&&es(t)&&(n=s=t.radius||Me,t.values?(t=De(t.values),(r=!_s(t[0]))&&(n*=n)):t=Oa(t.increment)),Bs(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Me,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},Xi=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?Sh:ka),s+=t.substr(e,n-e)+qh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},Hh=function(t,e,s,n,r){var o=e-t,a=n-s;return Bs(r,function(c){return s+((c-t)/o*a||0)})},cv=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Xt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},xe=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&Ms.length&&co(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},ki=function(t){return Ls(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&xe(t,"onInterrupt"),t},Pn,Gh=[],Yh=function(t){if(gc()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:Zi,render:Ec,add:wc,kill:bv,modifier:wv,rawVars:0},o={targetTest:0,get:0,getSetter:Sc,aliases:{},register:0};if($n(),t!==n){if(ye[e])return;Ie(n,Ie(lo(t,r),o)),hn(n.prototype,hn(r,lo(t,o))),ye[n.prop=e]=n,t.targetTest&&(Vr.push(n),xc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Ah(e,n),t.register&&t.register(_e,n,fe)}else t&&Gh.push(t)},bt=255,Ti={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Ko=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},$h=function(t,e,s){var n=t?_s(t)?[t>>16,t>>8&bt,t&bt]:0:Ti.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Ti[t])n=Ti[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(ka),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Ko(c+1/3,r,o),n[1]=Ko(c,r,o),n[2]=Ko(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(bh),s&&n.length<4&&(n[3]=1),n}else n=t.match(ka)||Ti.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,w=y-o,(w>0||b)&&(k=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=r?4:r-w),g=1),b||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),$n=function(){return!Qi&&ve.wake()},ft={},uv=/^[\d.\-M][\d.\-,\s]/,hv=/["']/g,dv=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[dv(e[1])]:fv(t).split(",").map(Ih)):ft._CE&&uv.test(t)?ft._CE("",t):s},Qh=function(t){return function(e){return 1-t(1-e)}},Kh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},nn=function(t,e){return t&&(Vt(t)?t:ft[t]||pv(t))||e},_n=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return de(t,function(a){ft[a]=we[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},Jh=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Jo=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/xa*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*B1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Jh(a);return r=xa/r,c.config=function(l,u){return i(t,l,u)},c},ta=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:Jh(s);return n.config=function(r){return i(t,r)},n};de("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;_n(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;_n("Elastic",Jo("in"),Jo("out"),Jo());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if($n(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ro(this,s),!r._dp||r.parent||Fh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&Xe(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Ph(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Dl(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Dl(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Gn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?uo(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(pr(-Math.abs(this._delay),this._tDur,r),n!==!1),No(this),Z1(this)},t.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):($n(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Xe(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(he(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?uo(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=H1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Pl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Pl(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(Se(this,s),he(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,he(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Nh,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){ki(this)},i}();Ie(Ki.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:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){kh(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=he(s.sortChildren),Nt&&Xe(s.parent||Nt,us(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Lh(us(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Ei(0,arguments,this),this},e.from=function(n,r,o){return Ei(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Ei(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,Si(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,Se(this,o),1),this},e.call=function(n,r,o){return Xe(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,Se(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,Si(o).immediateRender=he(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,Si(a).immediateRender=he(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,b,w,g,y,k,T;if(this!==Nt&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,w=this._ts,v=!w,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Gn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),k&&f&1&&(d=l-d,T=1),f!==y&&!this._lock){var x=k&&y&1,C=x===(k&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var O=n<0?n:d;p;){if(_=p._prev,(p._act||O<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(O-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(O-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(b&&!r&&(this.pause(),b.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,No(this),this.render(n,r,o);this._onUpdate&&!r&&xe(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ls(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(xe(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(_s(r)||(r=Se(this,r,n)),!(n instanceof Ki)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Xt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?Xe(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Me);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Xt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Io(this,n),n===this._recent&&(this._recent=this._last),sn(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ve.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=Se(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||Zi,o);return a.data="isPause",this._hasPause=1,Xe(this,a,Se(this,n))},e.removePause=function(n){var r=this._first;for(n=Se(this,n);r;)r._start===n&&r.data==="isPause"&&Ls(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)Cs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=De(n),c=this._first,l=_s(r),u;c;)c instanceof Ht?G1(c._targets,a)&&(l?(!Cs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=Se(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,Ie({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,Ie({startAt:{time:Se(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return sn(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),sn(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Me,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));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,Xe(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=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>r&&a._ts&&(r=a._end),a=l;Yn(o,o===Nt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(Nt._ts&&(Ph(Nt,uo(n,Nt)),Mh=ve.frame),ve.frame>=Al){Al+=Te.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&Te.autoSleep&&ve._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ve.sleep()}}},t}(Ki);Ie(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var mv=function(t,e,s,n,r,o,a){var c=new fe(this._pt,t,e,0,1,od,null,r),l=0,u=0,h,d,p,_,f,m,v,b;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=Xi(n)),o&&(b=[s,n],o(b,t,e),s=b[0],n=b[1]),d=s.match(Xo)||[];h=Xo.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?Rn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Xo.lastIndex);return c.c=l")}),g.duration();else{k={};for(x in _)x==="ease"||x==="easeEach"||vv(x,_[x],k,_.easeEach);for(x in k)for(V=k[x].sort(function(G,z){return G.t-z.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Gn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(w&&this._yEase&&Kh(w,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Vh(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(g||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!a&&!r&&!_&&(xe(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;w&&w.render(n<0?n:!d&&v?-Ct:w._dur*w._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&ba(this,n,r,o),xe(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&xe(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&ba(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ls(this,1),!r&&!(u&&!a)&&(h||a||v)&&(xe(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Qi||ve.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||bc(this,l),u=this._ease(l/this._dur),gv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(Ro(this,0),this.parent||Rh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?ki(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,Cs&&Cs.vars.overwrite!==!0)._first||ki(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?De(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&$1(a,c))return r==="all"&&(this._pt=0),ki(this);for(h=this._op=this._op||[],r!=="all"&&(Xt(r)&&(f={},de(r,function(b){return f[b]=1}),r=f),r=yv(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Io(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&ki(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Ei(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Ei(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return Nt.killTweensOf(n,r,o)},t}(Ki);Ie(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});de("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=Sa.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var Cc=function(t,e,s){return t[e]=s},id=function(t,e,s){return t[e](s)},xv=function(t,e,s,n){return t[e](n.fp,s)},kv=function(t,e,s){return t.setAttribute(e,s)},Sc=function(t,e){return Vt(t[e])?id:_c(t[e])&&t.setAttribute?kv:Cc},rd=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Tv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},od=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Ec=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},wv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},bv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Io(this,e,"_pt"):e.dep||(s=1),e=n;return!s},Cv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},ad=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},fe=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||rd,this.d=c||this,this.set=l||Cc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=Cv,this.m=s,this.mt=r,this.tween=n},i}();de(kc+"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(i){return xc[i]=1});we.TweenMax=we.TweenLite=Ht;we.TimelineLite=we.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Hn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Te.stringFilter=Xh;var rn=[],Ur={},Sv=[],Rl=0,Ev=0,ea=function(t){return(Ur[t]||Sv).map(function(e){return e()})},Ma=function(){var t=Date.now(),e=[];t-Rl>2&&(ea("matchMediaInit"),rn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ee.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),ea("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Rl=t,ea("matchMedia"))},cd=function(){function i(e,s){this.selector=s&&Ea(s),this.data=[],this._r=[],this.isReverted=!1,this.id=Ev++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Ea(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.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=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=rn.length;o--;)rn[o].id===this.id&&rn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),Ov=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){es(s)||(s={matches:s});var o=new cd(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ee.matchMedia(s[l]),c&&(rn.indexOf(o)<0&&rn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Ma):c.addEventListener("change",Ma)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),ho={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ye[e],a=en(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Pn._pt=0,h.init(t,s?u+s:u,Pn,0,[t]),h.render(1,h),Pn._pt&&Ec(1,Pn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,hn((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=nn(t.ease,Hn.ease)),Ml(Hn,t||{})},config:function(t){return Ml(Te,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ye[a]&&!we[a]&&$i(e+" effect requires "+a+" plugin.")}),Qo[e]=function(a,c,l){return s(De(a),Ie(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Qo[e](a,es(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=nn(e)},parseEase:function(t,e){return arguments.length?nn(t,e):ft},getById:function(t){return Nt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=he(t.smoothChildTiming),Nt.remove(s),s._dp=0,s._time=s._tTime=Nt._time,n=Nt._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&Xe(s,n,n._start-n._delay),n=r;return Xe(Nt,s,0),s},context:function(t,e){return t?new cd(t,e):Lt},matchMedia:function(t){return new Ov(t)},matchMediaRefresh:function(){return rn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Ma()},addEventListener:function(t,e){var s=Ur[t]||(Ur[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Ur[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:ov,wrapYoyo:av,distribute:zh,random:qh,snap:Bh,normalize:rv,getUnit:Kt,clamp:ev,splitColor:$h,toArray:De,selector:Ea,mapRange:Hh,pipe:nv,unitize:iv,interpolate:cv,shuffle:jh},install:Oh,effects:Qo,ticker:ve,updateRoot:ie.updateRoot,plugins:ye,globalTimeline:Nt,core:{PropTween:fe,globals:Ah,Tween:Ht,Timeline:ie,Animation:Ki,getCache:en,_removeLinkedListItem:Io,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return mc=t}}};de("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return ho[i]=Ht[i]});ve.add(ie.updateRoot);Pn=ho.to({},{duration:0});var Av=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},Mv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=Av(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},sa=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Xt(r)&&(c={},de(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}Mv(a,r)}}}},_e=ho.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},sa("roundProps",Oa),sa("modifiers"),sa("snap",Bh))||ho;Ht.version=ie.version=_e.version="3.12.4";Eh=1;gc()&&$n();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! * CSSPlugin 3.12.4 * https://gsap.com * @@ -356,7 +356,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a * 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 Fl,Ss,Fn,Ec,Qs,Ll,Oc,Ev=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Ln=Math.PI/180,Cn=Math.atan2,Vl=1e8,Ac=/([A-Z])/g,Ov=/(left|right|width|margin|padding|x)/i,Av=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ma=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Mv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Dv=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Pv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},cd=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ld=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Iv=function(t,e,s){return t.style[e]=s},Nv=function(t,e,s){return t.style.setProperty(e,s)},Rv=function(t,e,s){return t._gsap[e]=s},Fv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Lv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Vv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",Uv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},ud=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},jv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ul[o]:"")+t},Pa=function(){Ev()&&window.document&&(Fl=window,Ss=Fl.document,Fn=Ss.documentElement,Qs=Da("div")||{style:{}},Da("div"),Rt=Zn(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",dd=!!Zn("perspective"),Oc=_e.core.reverting,Ec=1)},sa=function i(t){var e=Da("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Fn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Fn.removeChild(e),this.style.cssText=r,o},jl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},fd=function(t){var e;try{e=t.getBBox()}catch{e=sa.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===sa||(e=sa.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+jl(t,["x","cx","x1"])||0,y:+jl(t,["y","cy","y1"])||0,width:0,height:0}:e},pd=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&fd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Ac,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ld:cd);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},zl={deg:1,rad:1,turn:1},zv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=Ov.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||zl[n]||zl[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&pd(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!zv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Ec||Pa(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=Ji(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:uo(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=lo[e]&&lo[e](t,e,s)||Je(t,e)||Mh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Bv=function(t,e,s,n){if(!s||s==="none"){var r=Zn(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,rd),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Zh(u),s=u[0],n=u[1],d=s.match(Dn)||[],y=n.match(Dn)||[],y.length){for(;h=Dn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=Rn(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Dn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ji(s,1),o.uncache=1,ud(n)))}},lo={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,Wv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Ki=[1,0,0,1,0,0],md={},_d=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ql=function(t){var e=Je(t,Rt);return _d(e)?Ki:e.substr(7).match(wh).map(zt)},Mc=function(t,e){var s=t._gsap||en(t),n=t.style,r=ql(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Ki:r):(r===Ki&&!t.offsetParent&&t!==Fn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Fn.appendChild(t)),r=ql(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Fn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Ia=function(t,e,s,n,r,o){var a=t._gsap,c=r||Mc(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,k,T,x,C;s?c!==Ki&&(T=p*m-_*f)&&(x=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=x,y=C):(k=fd(t),g=k.x+(~w[0].indexOf("%")?g/100*k.width:g),y=k.y+(~(w[1]||w[0]).indexOf("%")?y/100*k.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ji=function(t,e){var s=t._gsap||new Jh(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,k,T,x,C,O,I,M,U,W,Y,G,z,j,Z,Q,et,R,F,S,P;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&pd(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(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[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Mc(t,s.svg),s.svg&&(s.uncache?(j=t.getBBox(),l=s.xOrigin-j.x+"px "+(s.yOrigin-j.y)+"px",z=""):z=!e&&t.getAttribute("data-svg-origin"),Ia(t,z||l,!!z||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,k=s.yOrigin||0,T!==Ki&&(I=T[0],M=T[1],U=T[2],W=T[3],u=Y=T[4],h=G=T[5],T.length===6?(p=Math.sqrt(I*I+M*M),_=Math.sqrt(W*W+U*U),f=I||M?Cn(M,I)*$s:0,b=U||W?Cn(U,W)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Ln))),s.svg&&(u-=y-(y*I+k*U),h-=k-(y*M+k*W))):(P=T[6],F=T[7],Q=T[8],et=T[9],R=T[10],S=T[11],u=T[12],h=T[13],d=T[14],x=Cn(P,R),m=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=Y*C+Q*O,j=G*C+et*O,Z=P*C+R*O,Q=Y*-O+Q*C,et=G*-O+et*C,R=P*-O+R*C,S=F*-O+S*C,Y=z,G=j,P=Z),x=Cn(-U,R),v=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=I*C-Q*O,j=M*C-et*O,Z=U*C-R*O,S=W*O+S*C,I=z,M=j,U=Z),x=Cn(M,I),f=x*$s,x&&(C=Math.cos(x),O=Math.sin(x),z=I*C+M*O,j=Y*C+G*O,M=M*C-I*O,G=G*C-Y*O,I=z,Y=j),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(I*I+M*M+U*U)),_=zt(Math.sqrt(G*G+P*P)),x=Cn(Y,G),b=Math.abs(x)>2e-4?x*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(z=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!_d(Je(t,Rt)),z&&t.setAttribute("transform",z))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=uo(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Gv:dd?gd:Hv,s.uncache=0,s},uo=function(t){return(t=t.split(" "))[0]+" "+t[1]},na=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},Hv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,gd(t,e)},Gs="0deg",yi="0px",Ys=") ",gd=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Gs||u!==Gs)){var k=parseFloat(u)*Ln,T=Math.sin(k),x=Math.cos(k),C;k=parseFloat(h)*Ln,C=Math.cos(k),o=na(b,o,T*C*-w),a=na(b,a,-Math.sin(k)*-w),c=na(b,c,x*C*-w+w)}m!==yi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==yi||a!==yi||c!==yi)&&(g+=c!==yi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Gs&&(g+="rotate("+l+Ys),u!==Gs&&(g+="rotateY("+u+Ys),h!==Gs&&(g+="rotateX("+h+Ys),(d!==Gs||p!==Gs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),b.style[Rt]=g||"translate(0, 0)"},Gv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,k,T,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Ln,l*=Ln,y=Math.cos(c)*h,k=Math.sin(c)*h,T=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Ln,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,k*=C)),y=zt(y),k=zt(k),T=zt(T),x=zt(x)):(y=h,x=d,k=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*k+f*x)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+k+","+T+","+x+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},Yv=function(t,e,s,n,r){var o=360,a=Xt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Vl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Vl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Mv),d.e=u,d.u="deg",t._props.push(s),d},Wl=function(t,e){for(var s in e)t[s]=e[s];return t},$v=function(t,e,s){var n=Wl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=Ji(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ji(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Ma),t._pt.u=_||0,t._props.push(c));Wl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});lo[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var yd={name:"css",register:Pa,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,k,T,x;Ec||Pa(),this.styles=this.styles||hd(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&td(f,e,s,n,t,r)))){if(p=typeof u,_=lo[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=Zi(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),x.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Xt(l)&&~l.indexOf("random(")&&(l=Zi(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ji(t,e.parseTransform),k=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?Rn(y.scaleY,b+h):h)-y.scaleY||0,Ma),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(pe,0,a[pe]),u=qv(u),y.svg?Ia(t,u,0,k,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,uo(l),uo(u)));continue}else if(f==="svgOrigin"){Ia(t,u,1,k,0,this);continue}else if(f in md){Yv(this,y,f,d,b?Rn(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){$v(this,u,t);continue}}else f in a||(f=Zn(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Av.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?Rn(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Pv:Ma),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Dv);else if(f in a)Bv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){yc(f,u);continue}w||(f in a?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}T&&od(this)},render:function(t,e){if(e.tween._time||!Oc())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Ll===s?e==="scale"?Fv:Rv:(Ll=s||{})&&(e==="scale"?Lv:Vv):t.style&&!mc(t.style[e])?Iv:~e.indexOf("-")?Nv:Cc(t,e)},core:{_removeProperty:dn,_getMatrix:Mc}};_e.utils.checkPrefix=Zn;_e.core.getStyleSaver=hd;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",md[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[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");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(yd);var vd=_e.registerPlugin(yd)||_e;vd.core.Tween;const Hl=new at(0,0,0),xd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=D.useRef(null);D.useEffect(()=>{const o=n.current;o&&vd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new go(16711680);return L.jsx(Wd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[Hl,Hl],visible:s})};xd.displayName="LineComponent";const Zv=D.memo(xd),kd=D.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:1;return L.jsx(Zv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});kd.displayName="Connections";const Xv=({color:i,scale:t})=>L.jsx(L.Fragment,{children:L.jsx(iu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(cu,{color:i,scale:t})})}),Qv=["#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"],Kv=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Na(r=>r),s=Kl(),n=D.useMemo(()=>new Rf(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(n0,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(Qv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Xv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Jv=D.memo(Kv),tx=Ut(ys)` +*/var Fl,Ss,Fn,Oc,Qs,Ll,Ac,Dv=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Ln=Math.PI/180,Cn=Math.atan2,Vl=1e8,Mc=/([A-Z])/g,Pv=/(left|right|width|margin|padding|x)/i,Iv=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Da=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Nv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Rv=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Fv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},ld=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ud=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Lv=function(t,e,s){return t.style[e]=s},Vv=function(t,e,s){return t.style.setProperty(e,s)},Uv=function(t,e,s){return t._gsap[e]=s},jv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},zv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Bv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",qv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},hd=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Wv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ul[o]:"")+t},Ia=function(){Dv()&&window.document&&(Fl=window,Ss=Fl.document,Fn=Ss.documentElement,Qs=Pa("div")||{style:{}},Pa("div"),Rt=Zn(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",fd=!!Zn("perspective"),Ac=_e.core.reverting,Oc=1)},na=function i(t){var e=Pa("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Fn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Fn.removeChild(e),this.style.cssText=r,o},jl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},pd=function(t){var e;try{e=t.getBBox()}catch{e=na.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===na||(e=na.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+jl(t,["x","cx","x1"])||0,y:+jl(t,["y","cy","y1"])||0,width:0,height:0}:e},md=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&pd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Mc,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ud:ld);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},zl={deg:1,rad:1,turn:1},Hv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=Pv.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||zl[n]||zl[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&md(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!Hv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Oc||Ia(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=tr(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:po(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=fo[e]&&fo[e](t,e,s)||Je(t,e)||Dh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Gv=function(t,e,s,n){if(!s||s==="none"){var r=Zn(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,od),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Xh(u),s=u[0],n=u[1],d=s.match(Dn)||[],y=n.match(Dn)||[],y.length){for(;h=Dn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=Rn(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Dn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),tr(s,1),o.uncache=1,hd(n)))}},fo={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,$v);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Ji=[1,0,0,1,0,0],_d={},gd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ql=function(t){var e=Je(t,Rt);return gd(e)?Ji:e.substr(7).match(bh).map(zt)},Dc=function(t,e){var s=t._gsap||en(t),n=t.style,r=ql(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Ji:r):(r===Ji&&!t.offsetParent&&t!==Fn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Fn.appendChild(t)),r=ql(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Fn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Na=function(t,e,s,n,r,o){var a=t._gsap,c=r||Dc(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,k,T,x,C;s?c!==Ji&&(T=p*m-_*f)&&(x=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=x,y=C):(k=pd(t),g=k.x+(~w[0].indexOf("%")?g/100*k.width:g),y=k.y+(~(w[1]||w[0]).indexOf("%")?y/100*k.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},tr=function(t,e){var s=t._gsap||new td(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,k,T,x,C,O,P,M,V,B,Y,G,z,j,Z,Q,et,R,F,S,I;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&md(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(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[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Dc(t,s.svg),s.svg&&(s.uncache?(j=t.getBBox(),l=s.xOrigin-j.x+"px "+(s.yOrigin-j.y)+"px",z=""):z=!e&&t.getAttribute("data-svg-origin"),Na(t,z||l,!!z||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,k=s.yOrigin||0,T!==Ji&&(P=T[0],M=T[1],V=T[2],B=T[3],u=Y=T[4],h=G=T[5],T.length===6?(p=Math.sqrt(P*P+M*M),_=Math.sqrt(B*B+V*V),f=P||M?Cn(M,P)*$s:0,b=V||B?Cn(V,B)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Ln))),s.svg&&(u-=y-(y*P+k*V),h-=k-(y*M+k*B))):(I=T[6],F=T[7],Q=T[8],et=T[9],R=T[10],S=T[11],u=T[12],h=T[13],d=T[14],x=Cn(I,R),m=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=Y*C+Q*O,j=G*C+et*O,Z=I*C+R*O,Q=Y*-O+Q*C,et=G*-O+et*C,R=I*-O+R*C,S=F*-O+S*C,Y=z,G=j,I=Z),x=Cn(-V,R),v=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=P*C-Q*O,j=M*C-et*O,Z=V*C-R*O,S=B*O+S*C,P=z,M=j,V=Z),x=Cn(M,P),f=x*$s,x&&(C=Math.cos(x),O=Math.sin(x),z=P*C+M*O,j=Y*C+G*O,M=M*C-P*O,G=G*C-Y*O,P=z,Y=j),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(P*P+M*M+V*V)),_=zt(Math.sqrt(G*G+I*I)),x=Cn(Y,G),b=Math.abs(x)>2e-4?x*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(z=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!gd(Je(t,Rt)),z&&t.setAttribute("transform",z))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=po(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Xv:fd?yd:Zv,s.uncache=0,s},po=function(t){return(t=t.split(" "))[0]+" "+t[1]},ia=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},Zv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,yd(t,e)},Gs="0deg",vi="0px",Ys=") ",yd=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Gs||u!==Gs)){var k=parseFloat(u)*Ln,T=Math.sin(k),x=Math.cos(k),C;k=parseFloat(h)*Ln,C=Math.cos(k),o=ia(b,o,T*C*-w),a=ia(b,a,-Math.sin(k)*-w),c=ia(b,c,x*C*-w+w)}m!==vi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==vi||a!==vi||c!==vi)&&(g+=c!==vi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Gs&&(g+="rotate("+l+Ys),u!==Gs&&(g+="rotateY("+u+Ys),h!==Gs&&(g+="rotateX("+h+Ys),(d!==Gs||p!==Gs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),b.style[Rt]=g||"translate(0, 0)"},Xv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,k,T,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Ln,l*=Ln,y=Math.cos(c)*h,k=Math.sin(c)*h,T=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Ln,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,k*=C)),y=zt(y),k=zt(k),T=zt(T),x=zt(x)):(y=h,x=d,k=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*k+f*x)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+k+","+T+","+x+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},Qv=function(t,e,s,n,r){var o=360,a=Xt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Vl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Vl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Nv),d.e=u,d.u="deg",t._props.push(s),d},Wl=function(t,e){for(var s in e)t[s]=e[s];return t},Kv=function(t,e,s){var n=Wl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=tr(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=tr(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Da),t._pt.u=_||0,t._props.push(c));Wl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});fo[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var vd={name:"css",register:Ia,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,k,T,x;Oc||Ia(),this.styles=this.styles||dd(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&ed(f,e,s,n,t,r)))){if(p=typeof u,_=fo[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=Xi(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),x.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Xt(l)&&~l.indexOf("random(")&&(l=Xi(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||tr(t,e.parseTransform),k=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?Rn(y.scaleY,b+h):h)-y.scaleY||0,Da),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(pe,0,a[pe]),u=Yv(u),y.svg?Na(t,u,0,k,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,po(l),po(u)));continue}else if(f==="svgOrigin"){Na(t,u,1,k,0,this);continue}else if(f in _d){Qv(this,y,f,d,b?Rn(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){Kv(this,u,t);continue}}else f in a||(f=Zn(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Iv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?Rn(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Fv:Da),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Rv);else if(f in a)Gv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){vc(f,u);continue}w||(f in a?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}T&&ad(this)},render:function(t,e){if(e.tween._time||!Ac())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Ll===s?e==="scale"?jv:Uv:(Ll=s||{})&&(e==="scale"?zv:Bv):t.style&&!_c(t.style[e])?Lv:~e.indexOf("-")?Vv:Sc(t,e)},core:{_removeProperty:dn,_getMatrix:Dc}};_e.utils.checkPrefix=Zn;_e.core.getStyleSaver=dd;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",_d[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[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");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(vd);var xd=_e.registerPlugin(vd)||_e;xd.core.Tween;const Hl=new at(0,0,0),kd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=D.useRef(null);D.useEffect(()=>{const o=n.current;o&&xd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new vo(16711680);return L.jsx(Yd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[Hl,Hl],visible:s})};kd.displayName="LineComponent";const Jv=D.memo(kd),Td=D.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:1;return L.jsx(Jv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});Td.displayName="Connections";const tx=({color:i,scale:t})=>L.jsx(ru,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(lu,{color:i,scale:t})}),ex=["#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"],sx=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Ra(r=>r),s=Jl(),n=D.useMemo(()=>new Uf(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(a0,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(ex[s.indexOf(r.node_type)]||Tt.white);return L.jsx(tx,{color:a,scale:r.scale||1},r.ref_id)})]})})},nx=D.memo(sx),ix=Ut(ys)` text-align: center; width: ${i=>i.type==="topic"?"auto":`${i.size}px`}; height: ${i=>i.type==="topic"?"auto":`${i.size}px`}; @@ -410,7 +410,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a top: -7px; left: -14px; } -`,ex=Ut(ys)` +`,rx=Ut(ys)` text-align: center; outline: 1px solid ${Tt.white}; outline-offset: 0px; @@ -510,7 +510,7 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a font-weight: 500; border-radius: 6px; margin-right: 5px; -`;const sx=new at,nx=({position:i,userData:t,color:e})=>{const s=D.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=oe(Fa(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";be(()=>{if(o&&s.current){const p=sx.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),D.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=D.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(er,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(ex,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}),eu(t==null?void 0:t.name,20)]}):L.jsxs(tx,{className:Jl(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Jd,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},Td=D.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=oe(Fa(o=>o)),n=mo(),r=D.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,S1).map(u=>{const h=tu(u.node_type||"",!0),d=new at((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&E1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(nx,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(D.Fragment,{children:r.length?r:null},"node-badges")});Td.displayName="RelevanceBadges";const Gl=tf().stop(),ge={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:i=>(i.edge_count||1)*6+200,forceLinkDistanceMethod:i=>{const t=i.source.node_type;let e=50;switch(t){case"topic":e=30;break;case"guest":e=30;break;case"clip":e=10;break;case"episode":e=15;break}return e*2/50}},ix=(i,t,{numDimensions:e=ge.numDimensions,velocityDecay:s=ge.velocityDecay,forceChargeStrength:n=ge.forceChargeStrength,forceChargeMinDistance:r=ge.forceChargeMinDistance,forceChargeMaxDistance:o=ge.forceChargeMaxDistance,forceLinkStrength:a=ge.forceLinkStrength,forceCenterStrength:c=ge.forceCenterStrength,forceLinkDistanceMethod:l=ge.forceLinkDistanceMethod,forceCollideRadiusMethod:u=ge.forceCollideRadiusMethod,disableCollide:h=ge.disableCollide,disableCenter:d=ge.disableCenter,disableLink:p=ge.disableLink,disableCharge:_=ge.disableCharge})=>(Gl.alpha(1).stop().numDimensions(e).velocityDecay(s).force("collide",h?null:ef().radius(u).iterations(1)).force("center",d?null:sf().strength(c)).force("charge",_?null:nf().strength(n).distanceMin(r).distanceMax(o)).nodes(i).force("link",p?null:rf(t).id(f=>f.ref_id).distance(l).strength(a)).alpha(1).restart(),Gl),rx=({link:i,animated:t})=>{const e=D.useRef(null),s=We(),[n,r]=D.useState(new at(0,0,0)),[o,a]=D.useState(new at(0,0,0)),[c,l]=D.useState(8947848),u=oe(h=>h.selectionGraphData);return D.useEffect(()=>{var p,_,f,m,v,b;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new at(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new at(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((b=i.targetPosition)==null?void 0:b.z)||0))):(r(new at(0,0,0)),a(new at(0,0,0))),l(d?i.color||Pd.children.segmentColor:s?5592405:8947848)},[s,i]),be(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(o0,{ref:e,color:"0xFFFFFF",end:o,start:n})})},ox=({links:i,simulation:t})=>{const e=D.useRef(null);return D.useEffect(()=>function(){e.current&&e.current.clear()},[e]),be(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(er,{center:!0,sprite:!0,children:L.jsxs(ax,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(ys,{className:"icon",children:L.jsx(of,{})})]})})},s.ref_id))}):null},ax=Ut(ys)` +`;const ox=new at,ax=({position:i,userData:t,color:e})=>{const s=D.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=oe(La(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";be(()=>{if(o&&s.current){const p=ox.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),D.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=D.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(sr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(rx,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}),su(t==null?void 0:t.name,20)]}):L.jsxs(ix,{className:tu(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(nf,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},wd=D.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=oe(La(o=>o)),n=yo(),r=D.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,M1).map(u=>{const h=eu(u.node_type||"",!0),d=new at((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&D1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(ax,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(D.Fragment,{children:r.length?r:null},"node-badges")});wd.displayName="RelevanceBadges";const Gl=rf().stop(),ge={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:i=>(i.edge_count||1)*6+200,forceLinkDistanceMethod:i=>{const t=i.source.node_type;let e=50;switch(t){case"topic":e=30;break;case"guest":e=30;break;case"clip":e=10;break;case"episode":e=15;break}return e*2/50}},cx=(i,t,{numDimensions:e=ge.numDimensions,velocityDecay:s=ge.velocityDecay,forceChargeStrength:n=ge.forceChargeStrength,forceChargeMinDistance:r=ge.forceChargeMinDistance,forceChargeMaxDistance:o=ge.forceChargeMaxDistance,forceLinkStrength:a=ge.forceLinkStrength,forceCenterStrength:c=ge.forceCenterStrength,forceLinkDistanceMethod:l=ge.forceLinkDistanceMethod,forceCollideRadiusMethod:u=ge.forceCollideRadiusMethod,disableCollide:h=ge.disableCollide,disableCenter:d=ge.disableCenter,disableLink:p=ge.disableLink,disableCharge:_=ge.disableCharge})=>(Gl.alpha(1).stop().numDimensions(e).velocityDecay(s).force("collide",h?null:of().radius(u).iterations(1)).force("center",d?null:af().strength(c)).force("charge",_?null:cf().strength(n).distanceMin(r).distanceMax(o)).nodes(i).force("link",p?null:lf(t).id(f=>f.ref_id).distance(l).strength(a)).alpha(1).restart(),Gl),lx=({link:i,animated:t})=>{const e=D.useRef(null),s=We(),[n,r]=D.useState(new at(0,0,0)),[o,a]=D.useState(new at(0,0,0)),[c,l]=D.useState(8947848),u=oe(h=>h.selectionGraphData);return D.useEffect(()=>{var p,_,f,m,v,b;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new at(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new at(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((b=i.targetPosition)==null?void 0:b.z)||0))):(r(new at(0,0,0)),a(new at(0,0,0))),l(d?i.color||Rd.children.segmentColor:s?5592405:8947848)},[s,i]),be(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(u0,{ref:e,color:"0xFFFFFF",end:o,start:n})})},ux=({links:i,simulation:t})=>{const e=D.useRef(null);return D.useEffect(()=>function(){e.current&&e.current.clear()},[e]),be(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(sr,{center:!0,sprite:!0,children:L.jsxs(hx,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(ys,{className:"icon",children:L.jsx(uf,{})})]})})},s.ref_id))}):null},hx=Ut(ys)` text-align: center; outline-offset: 0px; @@ -561,9 +561,29 @@ import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E a top: -7px; left: -14px; } -`,Dc={metalness:.9,roughness:0},wd=new _o,ho=wd.load("noimage.jpeg"),Yl=new yo({...Dc,map:ho}),bd=.4,cx=new yo({...Dc,map:ho,transparent:!0,opacity:bd}),Mr={},lx=(i,t)=>{const[e,s]=D.useState(ho),[n,r]=D.useState(Yl);return D.useEffect(()=>{const o=`${i}${t&&"-transparent"}`;if(Mr[o]){s(Mr[o].texture),r(Mr[o].material);return}wd.load(i,a=>{const c=new yo({map:a,transparent:t,opacity:t?bd:1,...Dc});Mr[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(ho),r(t?cx:Yl)})},[i,t]),D.useEffect(()=>function(){e.dispose(),n.dispose()},[e,n]),n},Cd=D.memo(({node:i,hide:t,animated:e})=>{const s=D.useRef(null),[n]=D.useState(Ol),r=We(),{showSelectionGraph:o}=oe(u=>u),a=!!r&&i.ref_id===r.ref_id,c=lx(i.image_url||"noimage.jpeg",!1);be((u,h)=>{e&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),D.useEffect(()=>function(){n.dispose()},[n]);const l=D.useMemo(()=>o&&a?20:a?(i.scale||1)*1.2:i.scale,[i,a,o]);return L.jsx(h0,{enabled:!!a,children:L.jsx("mesh",{ref:s,geometry:Ol,material:c,name:i.id,scale:l,userData:i,visible:!t})})});Cd.displayName="Cube";const ux=i=>{const t=/(?:[\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 i.replace(t,e=>/^[\d*#]$/.test(e)?e:"")},hx=["#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"];function dx(i){const t=eu(i,30),e=t.split(" ");if(e.length<=5)return t;const s=Math.ceil(e.length/3),n=s*2,r=e.slice(0,s).join(" "),o=e.slice(s,n).join(" "),a=e.slice(n).join(" ");return`${r} +`,mr={metalness:.9,roughness:0},bd=new nr,mo=bd.load("noimage.jpeg"),Yl=new Xn({...mr,map:mo}),Cd=.4,dx=new Xn({...mr,map:mo,transparent:!0,opacity:Cd}),Ir={},fx=(i,t)=>{const[e,s]=D.useState(mo),[n,r]=D.useState(Yl);return D.useEffect(()=>{const o=`${i}${t&&"-transparent"}`;if(Ir[o]){s(Ir[o].texture),r(Ir[o].material);return}bd.load(i,a=>{const c=new Xn({map:a,transparent:t,opacity:t?Cd:1,...mr});Ir[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(mo),r(t?dx:Yl)})},[i,t]),D.useEffect(()=>function(){e.dispose(),n.dispose()},[e,n]),{material:n,texture:e}},Sd=D.memo(({node:i,hide:t,animated:e})=>{const s=D.useRef(null),[n]=D.useState(Ol),r=We(),{showSelectionGraph:o}=oe(u=>u),a=!!r&&i.ref_id===r.ref_id,{material:c}=fx(i.image_url||"noimage.jpeg",!1);be((u,h)=>{e&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),D.useEffect(()=>function(){n.dispose()},[n]);const l=D.useMemo(()=>o&&a?20:a?(i.scale||1)*1.2:i.scale,[i,a,o]);return L.jsx(m0,{enabled:!!a,children:L.jsx("mesh",{ref:s,geometry:Ol,material:c,name:i.id,scale:l,userData:i,visible:!t})})});Sd.displayName="Cube";const px=i=>{const t=/(?:[\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 i.replace(t,e=>/^[\d*#]$/.test(e)?e:"")},Ed=new nr,Od=Ed.load("noimage.jpeg");new Xn({...mr,map:Od});const mx=.4;new Xn({...mr,map:Od,transparent:!0,opacity:mx});const $l={},_x=i=>{const[t,e]=D.useState(null);return D.useEffect(()=>{if(!i){e(null);return}const s=i;if($l[s]){e($l[s].texture);return}Ed.load(i,n=>{e(n)},void 0,()=>{e(null)})},[i]),D.useEffect(()=>function(){t&&t.dispose()},[t]),{texture:t}},gx=["#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"];function yx(i){const t=su(i,30),e=t.split(" ");if(e.length<=5)return t;const s=Math.ceil(e.length/3),n=s*2,r=e.slice(0,s).join(" "),o=e.slice(s,n).join(" "),a=e.slice(n).join(" ");return`${r} ${o} -${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(null),n=D.useRef(null),r=We(),o=D.useRef(new at),c=mo().includes((i==null?void 0:i.ref_id)||""),l=!!r&&(r==null?void 0:r.ref_id)===i.ref_id,u=oe(k=>k.showSelectionGraph),{normalizedSchemasByType:h}=Na(k=>k);be(({camera:k})=>{(()=>{const x=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=x.distanceTo(k.position)<2500)})()});const d=Kl(),p=D.useMemo(()=>{if(!i.name)return 0;let k=(i.edge_count||1)*20;u&&l?k=40:!l&&c&&(k=0);const T=k/Math.sqrt(i.name.length);return Math.min(Math.max(T,20),30)},[i.edge_count,i.name,l,c,u]);D.useMemo(()=>r&&!l||!e?.2:1,[l,r,e]);const _=(g=h[i.node_type])==null?void 0:g.primary_color,f=(y=h[i.node_type])==null?void 0:y.icon,m=_??(hx[d.indexOf(i.node_type)]||Tt.white),b=(f?af[f]:null)?f:"NodesIcon",w=ux(String(i.name));return L.jsx(iu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[L.jsx(Zf,{ref:s,name:"svg",onUpdate:k=>{k.traverse(T=>{T instanceof nu&&(T.material=new Ff({color:m}))})},position:[-15,15,0],scale:2,src:`svg-icons/${b}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(Hd,{color:m,fillOpacity:1,name:"text",position:[0,-40,0],scale:p,userData:i,...Gd,children:dx(w)})]})})});Pc.displayName="TextNode";const Sd=D.memo(()=>{const[i,t]=D.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=D.useRef(null),r=mo(),o=Yd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(Fa(l=>l));return D.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),D.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=ix(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),D.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),D.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Pc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(Cd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(i0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(rx,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(ox,{links:a.links,simulation:i})]})});Sd.displayName="SelectionDataNodes";const fx=200,Ed=D.memo(()=>{const i=We(),t=cf(),e=mo(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=tr(f=>f.setTranscriptOpen),l=D.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=D.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=D.useRef(null),d=D.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=D.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},fx))}},[r,l,o]),_=n&&!!i;return L.jsxs($f,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(Td,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",scale:f.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Pc,{hide:_||m,isHovered:!!t&&t.id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Jv,{})}),_&&L.jsx(Sd,{})]})});Ed.displayName="Cubes";const px={earthRef:null},mx=Zl(i=>({...px,setEarthRef:t=>i({earthRef:t})})),_x=new at(0,0,0),gx=()=>{const i=D.useRef(null),t=D.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=mx(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(_x))}),D.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Er,200,200]}),L.jsx(yx,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:oa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Er*3]})]})},yx=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=D.useMemo(()=>new yo({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},vx="C",xx=256,kx=256,Tx={g:"LottieFiles AE 0.1.20"},wx=[{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}],bx="5.5.7",Cx=60,Sx=104,Ex=0,Ox=[{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}]}],Ax={nm:vx,h:xx,w:kx,meta:Tx,layers:wx,v:bx,fr:Cx,op:Sx,ip:Ex,assets:Ox},Mx=({meshId:i})=>{const t=D.useRef(null);return D.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Id.loadAnimation({container:e,animationData:Ax,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ia=()=>Math.floor(Math.random()*2001)-1e3,Dx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ia(),e=ia(),s=ia();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(er,{center:!0,sprite:!0,children:L.jsx(Px,{children:L.jsx(Mx,{meshId:i})})})},i)})}),Px=Ut.div` +${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var T,x,C,O;const s=D.useRef(null),n=D.useRef(null),r=D.useRef(null),o=We(),a=D.useRef(new at),{texture:c}=_x(((T=i.properties)==null?void 0:T.image_url)||""),u=yo().includes((i==null?void 0:i.ref_id)||""),h=!!o&&(o==null?void 0:o.ref_id)===i.ref_id,d=oe(P=>P.showSelectionGraph),{normalizedSchemasByType:p}=Ra(P=>P);be(({camera:P,clock:M})=>{const V=()=>{const B=a.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=B.distanceTo(P.position)<2500)};if(e){n.current&&(n.current.visible=!0);const B=1+.2*Math.sin(M.getElapsedTime()*2);r.current&&r.current.scale.set(B,B,B);return}V()});const _=Jl(),f=D.useMemo(()=>{if(!i.name)return 0;let P=(i.edge_count||1)*20;d&&h?P=40:!h&&u&&(P=0);const M=P/Math.sqrt(i.name.length);return Math.min(Math.max(M,20),30)},[i.edge_count,i.name,h,u,d]);D.useMemo(()=>o&&!h||!e?.2:1,[h,o,e]);const m=(x=p[i.node_type])==null?void 0:x.primary_color,v=(C=p[i.node_type])==null?void 0:C.icon,b=m??(gx[_.indexOf(i.node_type)]||Tt.white),g=(v?hf[v]:null)?v:"NodesIcon",y=px(String(i.name)),k={u_texture:{value:c},u_radius:{value:.5}};return L.jsx(ru,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[e?L.jsxs("mesh",{ref:r,position:[0,0,-2],children:[L.jsx("circleGeometry",{args:[30,32]}),L.jsx("meshBasicMaterial",{color:b,opacity:.5,transparent:!0})]}):null,(O=i.properties)!=null&&O.image_url&&i.node_type==="Person"&&c?L.jsx($d,{args:[10*2,10*2],scale:2,children:L.jsx("shaderMaterial",{fragmentShader:` + uniform sampler2D u_texture; + uniform float u_radius; + varying vec2 vUv; + + void main() { + vec2 center = vec2(0.5, 0.5); // Center of the circle + float dist = distance(vUv, center); + if (dist < u_radius) { + gl_FragColor = texture2D(u_texture, vUv); + } else { + discard; // Discard pixels outside the circle + } + } + `,uniforms:k,vertexShader:` + varying vec2 vUv; + void main() { + vUv = uv; + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); + } + `})}):L.jsx(Jf,{ref:s,name:"svg",onUpdate:P=>{P.traverse(M=>{M instanceof iu&&(M.material=new jf({color:b}))})},position:[-15,15,0],scale:2,src:`svg-icons/${g}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(Zd,{color:b,fillOpacity:1,name:"text",position:[0,-40,0],scale:f,userData:i,...Xd,children:yx(y)})]})})});Pc.displayName="TextNode";const Ad=D.memo(()=>{const[i,t]=D.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=D.useRef(null),r=yo(),o=Qd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(La(l=>l));return D.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),D.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=cx(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),D.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),D.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Pc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(Sd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(c0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(lx,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(ux,{links:a.links,simulation:i})]})});Ad.displayName="SelectionDataNodes";const vx=200,Md=D.memo(()=>{const i=We(),t=df(),e=yo(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=er(f=>f.setTranscriptOpen),l=D.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=D.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=D.useRef(null),d=D.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=D.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},vx))}},[r,l,o]),_=n&&!!i;return L.jsxs(Kf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(wd,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",scale:f.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Pc,{hide:_||m,isHovered:!!t&&t.ref_id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(nx,{})}),_&&L.jsx(Ad,{})]})});Md.displayName="Cubes";const xx={earthRef:null},kx=Xl(i=>({...xx,setEarthRef:t=>i({earthRef:t})})),Tx=new at(0,0,0),wx=()=>{const i=D.useRef(null),t=D.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=kx(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(Tx))}),D.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Mr,200,200]}),L.jsx(bx,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Mr+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Mr*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:aa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Mr*3]})]})},bx=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=D.useMemo(()=>new Xn({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},Cx="C",Sx=256,Ex=256,Ox={g:"LottieFiles AE 0.1.20"},Ax=[{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}],Mx="5.5.7",Dx=60,Px=104,Ix=0,Nx=[{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}]}],Rx={nm:Cx,h:Sx,w:Ex,meta:Ox,layers:Ax,v:Mx,fr:Dx,op:Px,ip:Ix,assets:Nx},Fx=({meshId:i})=>{const t=D.useRef(null);return D.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Fd.loadAnimation({container:e,animationData:Rx,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ra=()=>Math.floor(Math.random()*2001)-1e3,Lx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ra(),e=ra(),s=ra();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(sr,{center:!0,sprite:!0,children:L.jsx(Vx,{children:L.jsx(Fx,{meshId:i})})})},i)})}),Vx=Ut.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -571,7 +591,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n justify-content: center; color: white; font-size: 20px; -`,vi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),Ix=new at,Od=D.memo(()=>{var x,C;const i=D.useRef(null),t=tr(O=>O.setSidebarOpen),[e,s]=Nd.useState(null),{open:n}=pr("editNodeName"),{open:r}=pr("addEdgeToNode"),{open:o}=pr("mergeToNode"),{open:a}=pr("createBounty"),[c]=Ql(O=>[O.isAdmin]),[l]=Us(O=>[O.addNewNode]),u=We(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=oe(O=>O),f=Lf(),m=D.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Rd(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.log(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);be(()=>{v()});const v=D.useCallback(()=>{const O=h?d:f;if(i.current){const I=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(I){const M=Ix.set(I==null?void 0:I.x,I==null?void 0:I.y,I==null?void 0:I.z);i.current.position.copy(M)}}},[u,h,d,f]),b=D.useMemo(()=>{const O=c?[{key:"control-key-1",colors:vi(h).focus,icon:L.jsx(ff,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:vi(h).focus,icon:L.jsx(pf,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],I=[{key:"control-key-4",colors:vi(h).focus,icon:L.jsx(Fd,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:vi(!0).close,icon:L.jsx(mf,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:vi(!0).close,icon:L.jsx(Ld,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...I].map((M,U)=>({...M,left:-80+U*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const w=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,k=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",T=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(er,{center:!0,className:"control-panel",onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),onPointerDown:O=>O.stopPropagation(),onPointerOut:O=>O.stopPropagation(),onPointerOver:O=>O.stopPropagation(),onPointerUp:O=>O.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[b.map(O=>L.jsx(Nx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:I=>{I.stopPropagation(),O.onClick(I)},children:O.icon},O.key)),T&&L.jsx(Fx,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(Rx,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:k?L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"generate_tests",onClick:()=>{w()},children:[L.jsx($l,{children:L.jsx(Fc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Sn,{"data-testid":"add_comments",onClick:()=>{w()},children:[L.jsxs($l,{children:[L.jsx(uf,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Sn,{"data-testid":"review_bugs",onClick:()=>{w()},children:[L.jsx(hf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Sn,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[L.jsx(df,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"merge",onClick:()=>{o(),w()},children:[L.jsx(lf,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Sn,{"data-testid":"add_edge",onClick:()=>{r(),w()},children:[L.jsx(Fc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});Od.displayName="NodeControls";const Nx=Ut.div` +`,xi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),Ux=new at,Dd=D.memo(()=>{var x,C;const i=D.useRef(null),t=er(O=>O.setSidebarOpen),[e,s]=Ld.useState(null),{open:n}=gr("editNodeName"),{open:r}=gr("addEdgeToNode"),{open:o}=gr("mergeToNode"),{open:a}=gr("createBounty"),[c]=Kl(O=>[O.isAdmin]),[l]=Us(O=>[O.addNewNode]),u=We(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=oe(O=>O),f=zf(),m=D.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Vd(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.log(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);be(()=>{v()});const v=D.useCallback(()=>{const O=h?d:f;if(i.current){const P=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(P){const M=Ux.set(P==null?void 0:P.x,P==null?void 0:P.y,P==null?void 0:P.z);i.current.position.copy(M)}}},[u,h,d,f]),b=D.useMemo(()=>{const O=c?[{key:"control-key-1",colors:xi(h).focus,icon:L.jsx(gf,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:xi(h).focus,icon:L.jsx(yf,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],P=[{key:"control-key-4",colors:xi(h).focus,icon:L.jsx(Ud,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:xi(!0).close,icon:L.jsx(vf,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:xi(!0).close,icon:L.jsx(jd,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...P].map((M,V)=>({...M,left:-80+V*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const w=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,k=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",T=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(sr,{center:!0,className:"control-panel",onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),onPointerDown:O=>O.stopPropagation(),onPointerOut:O=>O.stopPropagation(),onPointerOver:O=>O.stopPropagation(),onPointerUp:O=>O.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[b.map(O=>L.jsx(jx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:P=>{P.stopPropagation(),O.onClick(P)},children:O.icon},O.key)),T&&L.jsx(Bx,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(zx,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:k?L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"generate_tests",onClick:()=>{w()},children:[L.jsx(Zl,{children:L.jsx(Fc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Sn,{"data-testid":"add_comments",onClick:()=>{w()},children:[L.jsxs(Zl,{children:[L.jsx(pf,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Sn,{"data-testid":"review_bugs",onClick:()=>{w()},children:[L.jsx(mf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Sn,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[L.jsx(_f,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"merge",onClick:()=>{o(),w()},children:[L.jsx(ff,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Sn,{"data-testid":"add_edge",onClick:()=>{r(),w()},children:[L.jsx(Fc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});Dd.displayName="NodeControls";const jx=Ut.div` position: fixed; top: -60px; left: ${i=>-7+i.left}px; @@ -602,7 +622,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n background: ${Tt.BUTTON1_HOVER}; color: ${Tt.GRAY3}; } -`,Rx=Ut(_f)` +`,zx=Ut(xf)` && { z-index: 9999; } @@ -618,7 +638,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n background-color: transparent !important; margin: 2px; } -`,$l=Ut.div` +`,Zl=Ut.div` display: flex; align-items: center; justify-content: start; @@ -628,7 +648,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n width: 12px; height: 12px; } -`,Fx=Ut.div` +`,Bx=Ut.div` position: fixed; top: 40px; left: ${i=>-53+i.left}px; @@ -647,7 +667,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n &:hover { transform: scale(1.05); } -`,Ad=D.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Od,{})}));Ad.displayName="NodeDetailsPanel";const Lx=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=D.useRef(null),o=D.useRef(!1),a=D.useRef([]),{normalizedSchemasByType:c}=Na(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return D.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=Vd.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),D.useEffect(()=>{u&&d.setForces()},[p,d,u]),D.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var k;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(z=>z.ref_id===g.source),x=u.nodes().find(z=>z.ref_id===g.target),{x:C,y:O,z:I}=T,{x:M,y:U,z:W}=x;a.current[w]={sx:C,sy:O,sz:I,tx:M,ty:U,tz:W};const Y=((k=c[T.node_type])==null?void 0:k.primary_color)||"white";y.geometry.setPositions([C,O,I,M,U,W]);const{material:G}=y;G.color=new go(Y),G.transparent=!0,G.opacity=.5}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Ed,{}),p==="earth"&&L.jsx(gx,{}),(t||e)&&L.jsx(Dx,{}),p!=="earth"&&L.jsx(kd,{}),L.jsx(Ad,{})]}):null},Vx=({fullSize:i=!0})=>{const t=tr(e=>e.sidebarIsOpen);return L.jsx(Ux,{align:"center",className:Jl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Vf,{color:Tt.SECONDARY_BLUE,size:64})})},Ux=Ut(ys)` +`,Pd=D.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Dd,{})}));Pd.displayName="NodeDetailsPanel";const qx=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=D.useRef(null),o=D.useRef(!1),a=D.useRef([]),{normalizedSchemasByType:c}=Ra(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return D.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=zd.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),D.useEffect(()=>{u&&d.setForces()},[p,d,u]),D.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var k;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(z=>z.ref_id===g.source),x=u.nodes().find(z=>z.ref_id===g.target),{x:C,y:O,z:P}=T,{x:M,y:V,z:B}=x;a.current[w]={sx:C,sy:O,sz:P,tx:M,ty:V,tz:B};const Y=((k=c[T.node_type])==null?void 0:k.primary_color)||"white";y.geometry.setPositions([C,O,P,M,V,B]);const{material:G}=y;G.color=new vo(Y),G.transparent=!0,G.opacity=.3}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Md,{}),p==="earth"&&L.jsx(wx,{}),(t||e)&&L.jsx(Lx,{}),p!=="earth"&&L.jsx(Td,{}),L.jsx(Pd,{})]}):null},Wx=({fullSize:i=!0})=>{const t=er(e=>e.sidebarIsOpen);return L.jsx(Hx,{align:"center",className:tu({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Bf,{color:Tt.SECONDARY_BLUE,size:64})})},Hx=Ut(ys)` position: absolute; left: 0; right: 0; @@ -655,7 +675,7 @@ ${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(n top: 0; background-color: ${Tt.black}; z-index: 1; -`,jx=()=>L.jsx(er,{children:L.jsx(Wf,{})}),zx=()=>{const{universeColor:i}=yf("universe",{universeColor:Tt.black}),t=We();return D.useMemo(()=>t!=null&&t.node_type?tu(t.node_type):C1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Xd,{}),L.jsx(N1,{}),L.jsxs(u0,{children:[!1,L.jsx(Lx,{})]})]})};let ra=null;const Bx={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[wi.x,wi.y,wi.z]},qx=()=>{const[i,t,e]=[Os(a=>a.setIsUserScrollingOnHtmlPanel),Os(a=>a.setIsUserScrolling),Os(a=>a.setUserMovedCamera)],s=Us(a=>a.isFetching),n=tr(a=>a.universeQuestionIsOpen),r=D.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ra&&clearTimeout(ra),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=D.useCallback(a=>Ud(a,"threeState"),[]);return L.jsxs(Wx,{children:[L.jsx(D.Suspense,{fallback:null,children:L.jsxs($d,{camera:Bx,id:"universe-canvas",onCreated:o,onWheel:r,children:[jd&&L.jsx(Zd,{position:"top-right",style:{top:"80px"}}),L.jsxs(D.Suspense,{fallback:L.jsx(jx,{}),children:[L.jsx(a0,{}),L.jsx(c0,{}),L.jsx(l0,{}),L.jsx(zx,{})]})]})}),n&&L.jsx(f0,{}),s&&L.jsx(Vx,{fullSize:!1}),L.jsx(gf,{})]})},Wx=Ut(ys)` +`,Gx=()=>L.jsx(sr,{children:L.jsx($f,{})}),Yx=()=>{const{universeColor:i}=Tf("universe",{universeColor:Tt.black}),t=We();return D.useMemo(()=>t!=null&&t.node_type?eu(t.node_type):A1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(tf,{}),L.jsx(V1,{}),L.jsxs(p0,{children:[!1,L.jsx(qx,{})]})]})};let oa=null;const $x={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[bi.x,bi.y,bi.z]},Zx=()=>{const[i,t,e]=[Os(a=>a.setIsUserScrollingOnHtmlPanel),Os(a=>a.setIsUserScrolling),Os(a=>a.setUserMovedCamera)],s=Us(a=>a.isFetching),n=er(a=>a.universeQuestionIsOpen),r=D.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;oa&&clearTimeout(oa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=D.useCallback(a=>Bd(a,"threeState"),[]);return L.jsxs(Xx,{children:[L.jsx(D.Suspense,{fallback:null,children:L.jsxs(Kd,{camera:$x,id:"universe-canvas",onCreated:o,onWheel:r,children:[qd&&L.jsx(Jd,{position:"top-right",style:{top:"80px"}}),L.jsxs(D.Suspense,{fallback:L.jsx(Gx,{}),children:[L.jsx(h0,{}),L.jsx(d0,{}),L.jsx(f0,{}),L.jsx(Yx,{})]})]})}),n&&L.jsx(g0,{}),s&&L.jsx(Wx,{fullSize:!1}),L.jsx(kf,{})]})},Xx=Ut(ys)` flex: 1 1 100%; position: relative; -`,Sk=D.memo(qx);export{Sk as Universe}; +`,Pk=D.memo(Zx);export{Pk as Universe}; diff --git a/build/assets/index-569ae916.js b/build/assets/index-c8ae45d4.js similarity index 97% rename from build/assets/index-569ae916.js rename to build/assets/index-c8ae45d4.js index 3d893ff24..6399486bc 100644 --- a/build/assets/index-569ae916.js +++ b/build/assets/index-c8ae45d4.js @@ -1,4 +1,4 @@ -import{ac as Z,w as g,x as b,F as t,H as T,E as V,r as y,j as e,z as C,aX as ee,b4 as te,al as se,aV as L,aW as F,b9 as B,ba as ne,a0 as oe,bb as re,bc as ie,bd as ae,M as O,a1 as ce,v as le,aT as de,aU as I,at as pe,a3 as xe,ae as ue,ad as me,b7 as he}from"./index-bde6e5ef.js";import{aD as fe,ab as ye,e as ge}from"./index-5c574277.js";import{C as U}from"./ClipLoader-2c26140d.js";import{p as R}from"./index-c0853f89.js";import{A as je}from"./index-bf769610.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,u,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:u,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const u=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:[fe(u)," 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"})` +import{ac as Z,w as g,x as b,F as t,H as T,E as V,r as y,j as e,z as C,aX as ee,b4 as te,al as se,aV as L,aW as F,b9 as B,ba as ne,a0 as oe,bb as re,bc as ie,bd as ae,M as O,a1 as ce,v as le,aT as de,aU as I,at as pe,a3 as xe,ae as ue,ad as me,b7 as he}from"./index-10403053.js";import{aD as fe,ab as ye,e as ge}from"./index-067fb061.js";import{C as U}from"./ClipLoader-1133ece3.js";import{p as R}from"./index-c0853f89.js";import{A as je}from"./index-7a81ddcc.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,u,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:u,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const u=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:[fe(u)," 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}; diff --git a/build/assets/index-746c11fc.js b/build/assets/index-e3a56368.js similarity index 98% rename from build/assets/index-746c11fc.js rename to build/assets/index-e3a56368.js index d21ceff4d..3ca74c660 100644 --- a/build/assets/index-746c11fc.js +++ b/build/assets/index-e3a56368.js @@ -1,4 +1,4 @@ -import{r as h,c as q,d as X,s as F,e as I,u as K,a as Z,j as e,h as J,i as ee,k as D,ah as gt,f as ne,ai as ft,w as c,x,H as N,z as W,F as g,M as E,be as mt,ak as se,b as re,v as le,bf as bt,bg as jt,ad as yt,bh as wt,bi as Ve,y as ae,bj as Qe,Q as we,aY as _e,aZ as Ne,a_ as ze,bk as Ct,bl as vt,aa as Tt,bm as $t,E as qe,C as te,bn as St,bc as Xe,bo as Ke,a1 as Ce,at as ce,a3 as ve,bp as kt,aV as _t,aW as Nt,bq as de,br as zt,D as Lt,a0 as It,a5 as Rt}from"./index-bde6e5ef.js";import{aE as Bt,s as Et,v as Te,aF as je,ap as Q,aG as Mt,D as At,t as Ft,X as Ze,aH as Je,aI as et,aJ as tt,ab as st,aK as Ot,aL as Wt,aM as Ht,aN as Le,aO as Ie,o as Re,aP as ge,aQ as Pt,p as Dt}from"./index-5c574277.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-a3da365e.js";import{C as z}from"./ClipLoader-2c26140d.js";import{I as Vt,A as Se,T as lt}from"./index-bf769610.js";import{u as R}from"./index-bd13c6c5.js";import{T as Ee}from"./Typography-0d19ae0d.js";import{T as Qt,a as qt}from"./Tabs-07181cd3.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,c as q,d as X,s as F,e as I,u as K,a as Z,j as e,h as J,i as ee,k as D,ah as gt,f as ne,ai as ft,w as c,x,H as N,z as W,F as g,M as E,be as mt,ak as se,b as re,v as le,bf as bt,bg as jt,ad as yt,bh as wt,bi as Ve,y as ae,bj as Qe,Q as we,aY as _e,aZ as Ne,a_ as ze,bk as Ct,bl as vt,aa as Tt,bm as $t,E as qe,C as te,bn as St,bc as Xe,bo as Ke,a1 as Ce,at as ce,a3 as ve,bp as kt,aV as _t,aW as Nt,bq as de,br as zt,D as Lt,a0 as It,a5 as Rt}from"./index-10403053.js";import{aE as Bt,s as Et,v as Te,aF as je,ap as Q,aG as Mt,D as At,t as Ft,X as Ze,aH as Je,aI as et,aJ as tt,ab as st,aK as Ot,aL as Wt,aM as Ht,aN as Le,aO as Ie,o as Re,aP as ge,aQ as Pt,p as Dt}from"./index-067fb061.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-4d05840e.js";import{C as z}from"./ClipLoader-1133ece3.js";import{I as Vt,A as Se,T as lt}from"./index-7a81ddcc.js";import{u as R}from"./index-57e1aba8.js";import{T as Ee}from"./Typography-efec7f9a.js";import{T as Qt,a as qt}from"./Tabs-fb6d3947.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${xs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return q("MuiTableRow",t)}const $s=X("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=F("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` && { color: ${x.white}; diff --git a/build/assets/index-59e95d3e.js b/build/assets/index-e7533f23.js similarity index 92% rename from build/assets/index-59e95d3e.js rename to build/assets/index-e7533f23.js index 38d9f868e..79722c5ea 100644 --- a/build/assets/index-59e95d3e.js +++ b/build/assets/index-e7533f23.js @@ -1,4 +1,4 @@ -import{r as p,Q as I,j as e,F as x,C as T,bc as _,bo as L,w as n,H as C,M as A,a1 as E,at as F,a3 as M,x as B,br as N,z as k}from"./index-bde6e5ef.js";import{aH as z,aI as O,aJ as D,u as H}from"./index-5c574277.js";import{u as w}from"./index-bd13c6c5.js";import{S as P,A as Y,I as R}from"./constants-a3da365e.js";import{A as X,T as W}from"./index-bf769610.js";import{C as J}from"./ClipLoader-2c26140d.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const Q=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:Y,search:i,skip:"0",limit:"1000"};f(!0);try{const v=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(v)}catch{h([])}finally{f(!1)}};return I.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(g=>g.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(P,{onClick:()=>a(null),size:"medium",children:e.jsx(T,{})})]}):e.jsx(X,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},U=({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(q,{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(Q,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),$=n(C)` +import{r as p,Q as I,j as e,F as x,C as T,bc as _,bo as L,w as n,H as C,M as A,a1 as E,at as F,a3 as M,x as B,br as N,z as k}from"./index-10403053.js";import{aH as z,aI as O,aJ as D,u as H}from"./index-067fb061.js";import{u as w}from"./index-57e1aba8.js";import{S as P,A as Y,I as R}from"./constants-4d05840e.js";import{A as X,T as W}from"./index-7a81ddcc.js";import{C as J}from"./ClipLoader-1133ece3.js";import"./Stack-522c22e1.js";import"./createSvgIcon-6e5d30bd.js";import"./TextareaAutosize-d45e3579.js";const Q=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:Y,search:i,skip:"0",limit:"1000"};f(!0);try{const v=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(v)}catch{h([])}finally{f(!1)}};return I.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(g=>g.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(P,{onClick:()=>a(null),size:"medium",children:e.jsx(T,{})})]}):e.jsx(X,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},U=({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(q,{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(Q,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),$=n(C)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-0f75a7d3.js b/build/assets/index-f0bfe2ee.js similarity index 97% rename from build/assets/index-0f75a7d3.js rename to build/assets/index-f0bfe2ee.js index 18e27aeaf..a2755125a 100644 --- a/build/assets/index-0f75a7d3.js +++ b/build/assets/index-f0bfe2ee.js @@ -1,4 +1,4 @@ -import{w as a,j as e,F as s,aV as g,aW as j,z as w,H as i,x as n,M as S,a1 as y,r as m,aT as k,at as F,a3 as v,ac as T}from"./index-bde6e5ef.js";import{aX as B}from"./index-5c574277.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` +import{w as a,j as e,F as s,aV as g,aW as j,z as w,H as i,x as n,M as S,a1 as y,r as m,aT as k,at as F,a3 as v,ac as T}from"./index-10403053.js";import{aX as B}from"./index-067fb061.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/map-3259c6de.js b/build/assets/map-5327e6bd.js similarity index 98% rename from build/assets/map-3259c6de.js rename to build/assets/map-5327e6bd.js index 036e7769a..66b27ef0f 100644 --- a/build/assets/map-3259c6de.js +++ b/build/assets/map-5327e6bd.js @@ -1 +1 @@ -import{c as de,d as pe,s as M,B as Ne,e as S,ag as Ge,r as U,a as ge,j as E,h as H,k as K,i as be,u as Ue,g as z,au as k,aB as T,av as B,aL as he,bM as He,bN as ve,az as ye,bO as Ke,aF as ze,bP as ke,bQ as _e,bR as Xe,bS as Ye,bT as Ze,aI as Qe,aA as Je,aH as We,bU as je,aG as me}from"./index-bde6e5ef.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-06c1211e.js";import{T as W}from"./Typography-0d19ae0d.js";function ar(e){return de("PrivateSwitchBase",e)}pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tr=e=>{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=k,hr=T,vr=B,yr="[object String]";function _r(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var mr=_r;const os=z(mr);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Lr=wr;function Er(e){return e}var Ir=Er,Fr=k,Rr=He,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const ls=z(Ur);function Hr(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&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=k,hr=T,vr=B,yr="[object String]";function _r(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var mr=_r;const os=z(mr);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Lr=wr;function Er(e){return e}var Ir=Er,Fr=k,Rr=He,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const ls=z(Ur);function Hr(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&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - +